1
我们有视觉Studio.sln设置的构建配置亚军类型从的csproj与发布配置(/P:PublishProfile=%env.Configuration%.pubxml)读来创建Web部署包然后我们在另一个构建步骤中使用MSDeploy进行部署。Publish和WebPublish目标有什么区别?
在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”之间的差异。
具体来说,'Publish'会调用'WebPublish'如果你通过'DeployTarget = WebPublish'或者如果你通过了'PublishProfile'的值。请参阅'Microsoft.Web.Publishing.targets:137'。 – Mitch