我需要设置哪些MSBuild参数以使这项工作能够进行?

时间:2019-01-18 16:21:57

标签: tfs msbuild tfvc

我有一个具有网站(而不是Web应用程序)的解决方案,但无法设置Visual Studio Build任务。

通常我像这样设置我的MSBuild参数

/p:DeployOnBuild=true

然后在我的复制发布工件中,我e

$(build.sourcesDirectory)/AppSolution/Website/obj/$(BuildConfiguration)/Package/PackageTmp

我需要设置哪些MSBuild参数才能使上述工作正常进行?

文件不会复制到obj / $ BuildConfiguration)/ Package / PackageTmp文件夹中。因此,当我查看输出文件夹时,它看起来就像代码文件。不是二进制文件 enter image description here

1 个答案:

答案 0 :(得分:0)

Use the MSBuild argument /p:PackageLocation=$(Build.ArtifactStagingDirectory), then publish $(Build.ArtifactStagingDirectory) as an artifact.