【发布时间】:2016-10-07 18:22:23
【问题描述】:
我们有一个构建配置运行器类型的 Visual Studio.sln 设置来从具有发布配置文件 (/P:PublishProfile=%env) 的 csproj 中读取.Configuration%.pubxml) 创建一个 Web 部署包,然后我们在另一个构建步骤中使用它来使用 MSDeploy 进行部署。
在 TeamCity 上,目标选项表明
Enter targets separated by space or semicolon. Build, Rebuild, Clean, Publish targets are supported by default
查看其他一些 StackOverflow 线程,它提到使用 WebPublish 作为目标有效,但没有说明为什么有效。
TeamCity: How tell MSBuild to take into account publish profile parameters?
我不确定“发布”和“WebPublish”之间的区别。
【问题讨论】: