What is the difference between a Publish and a WebPublish target?

We have a build configuration runner type of Visual Studio.sln setup to read from a csproj with a Publish Profile (/P:PublishProfile=%env.Configuration%.pubxml) to create a Web Deploy Package that we then use in another build step to deploy using MSDeploy.

On TeamCity the Targets options states that

Enter targets separated by space or semicolon. Build, Rebuild, Clean, Publish targets are supported by default

Looking at some other StackOverflow threads, it mentions that using WebPublish as a target works but doesn't say why it works.

TeamCity: How tell MSBuild to take into account publish profile parameters?

I am not sure what the difference between a "Publish" and a "WebPublish" is.


“发布”Visual Studio目标使用WebDeploy / WebPublish进行发布。

链接地址: http://www.djcxy.com/p/81648.html

上一篇: MsBuild数据库项目发布配置文件

下一篇: 发布和WebPublish目标有什么区别?