title: MSBuild to build all defined configurations
body: <p>I'm looking for a way to call MSBuild with all possible configurations/platforms defined in the solution file.</p>
  
  <p>I've looked here:
  <a href="https://stackoverflow.com/questions/5511274/using-msbuild-to-build-multiple-configurations">Using MSBuild to Build Multiple Configurations</a></p>
  
  <p>which requires explicit knowledge of the configurations, as you must enumerate them on the command line,</p>
  
  <p>and here:
  <a href="http://social.msdn.microsoft.com/Forums/vstudio/en-US/066c9dbf-d191-4b8c-8ee1-b9709b56c500/msbuild-for-visual-studio-2010-build-all-configurations-of-a-vcxproj-file?forum=msbuild" rel="nofollow noreferrer">http://social.msdn.microsoft.com/Forums/vstudio/en-US/066c9dbf-d191-4b8c-8ee1-b9709b56c500/msbuild-for-visual-studio-2010-build-all-configurations-of-a-vcxproj-file?forum=msbuild</a></p>
  
  <p>which leads to another page that suggests defining another project file to encapsulate the msbuild calls. Unfortunately, it too requires explicit knowledge of the configurations.</p>
  
  <p>So then, is there any way to obtain through the command line, the list of configurations/platforms availalbe to a given project? (It must be the same list that is modified in Visual Studio. ie: adding/removing a configuration in Visual Studio, saving, exiting, and getting the list, would reflect the changes.) </p>
  
  <p>Parsing the solution file as XML is not an option, as it wouldn't be stable if Microsoft decided to change how it is formatted.</p>