Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2012 publish multiple projects in a solution

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?

like image 404
StefanHa Avatar asked Nov 30 '12 14:11

StefanHa


2 Answers

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
like image 95
StefanHa Avatar answered Nov 08 '22 20:11

StefanHa


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.

like image 29
Konrad Kokosa Avatar answered Nov 08 '22 19:11

Konrad Kokosa