VS2012 publish multiple projects in a solution

て烟熏妆下的殇ゞ 提交于 2019-11-29 17:19:32

问题


We are using VS2012. We have a solution with mulitple web projects and are using publish to deploy a project. There are already quite a few projects in the solution. To publish all of them at once it is pretty time consuming. Is there a way to publish all the projects at once?


回答1:


I found out I can use msbuild at the command line to publish multiple projects.

msbuild example.sln /p:Configuration=Test;DeployOnBuild=true;PublishProfile=Test.example.pubxml /MaxCpuCount:8



回答2:


You might be interested in publishing from command line:

msbuild YourSolution.sln /property:Configuration=Release;DeployOnBuild=true;PublishProfile=Production

You can find further reading on Scott Hanselman's blog for example.



来源:https://stackoverflow.com/questions/13647129/vs2012-publish-multiple-projects-in-a-solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!