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