VS2012 在一个解决方案中发布多个项目
问题描述:
我们使用的是 VS2012.我们有一个包含多个 Web 项目的解决方案,并且正在使用发布来部署项目.解决方案中已经有相当多的项目.一次发布所有这些是非常耗时的.有没有办法一次性发布所有项目?
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?
答
我发现我可以在命令行中使用 msbuild 来发布多个项目.
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