0
我有一个简单的“Hello World”mvc web应用程序,我试图在VSTS中构建。我的步骤是:VSTS msbuild:如何使用参数代替配置文件?错误:无法找到__。dll
- 获取源代码
- 运行的MSBuild一个项目
- 发布神器(发布目录),每当我用一个配置文件的MSBuild
一切工作正常,但我会而不是仅仅传递参数命令。当我这样做时,我得到以下错误:
Error : Copying file bin\WebApp01.dll to obj\Release\Package\PackageTmp\bin\WebApp01.dll failed. Could not find file 'bin\WebApp01.dll'.
我用我的msbuild参数犯了什么错误?如何正确复制简单的文件系统配置文件?
参数(error'ing):
/p:DeployOnBuild=true /p:Configuration="Release" /p:Platform="Any CPU" /t:WebPublish /p:WebPublishMethod=FileSystem /p:publishUrl=PublishToOctopus
简介(作品):
<?xml version="1.0" encoding="utf-8"?>
<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>PublishToOctopus</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>