Is there way to issue one command line to build a solution with all it's configurations?
Currently we have 5 configurations, so we need to issue the 5 commands in the following format:
C:\Program Files\Microsoft Visual Studio 10.0\VC>devenv /Rebuild [configuration name] C:\Solutions\SolutionName.sln
such as:
devenv /Rebuild Debug C:\Solutions\SolutionName.sln
devenv /Rebuild DEV C:\Solutions\SolutionName.sln
devenv /Rebuild SIT C:\Solutions\SolutionName.sln
devenv /Rebuild BAT C:\Solutions\SolutionName.sln
devenv /Rebuild PROD C:\Solutions\SolutionName.sln
Ideally just have one command line. I tried unsuccessfully putting all the configuration names together, space delimited.
There is no syntax (that I know of, and that I could discover through testing) to build more than one configuration at a time. The configuration property in MSBuild doesn't appear to support multiple values, either.
Why not just put the commands you need into a batch file, powershell script, or even another MSBuild file and launch that?