【发布时间】:2017-02-06 06:16:03
【问题描述】:
我正在尝试使用 Bamboo 将 .Net 项目部署到远程服务器。 我是竹子新手 我已经使用了 msbuild 任务
msbuild <solution file> /p:DeployOnBuild=true /p:PublishProfile="publishXMLFile"
发布XML文件:
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>\\<server.IP.Address>\Path\To\Publish\Folder</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
</PropertyGroup>
</Project>
当前登录的用户在服务器中具有管理员权限,并且该文件夹也是共享的。 我仍然收到以下错误:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Deploy\Microsoft.Web.Publishing.Deploy.FileSystem.targets(93,5): error MSB3191: Unable to create directory "\\<server.IP.Address>\Path\To\Publish\Folder". Access to the path '\\<server.IP.Address>\Path\To\Publish\Folder' is denied. [C:\bamboo\bamboo-agent-home\xml-data\build-dir\132710426-132546751\Project\Path\ProjectName.csproj]
我不明白我错过了什么。
我是竹子新手。
【问题讨论】:
标签: .net msbuild msdeploy bamboo msbuild-task