How to build some project configurations with msbuild

prosseek picture prosseek · Jan 12, 2011 · Viewed 37.6k times · Source

The gtest's msvc directory has the gtest project file, and opening it with Visual Studio enables me to select the build out of 8 configurations(gtest/gtest_main/gtest_prod_test/gtest_unittest x release/debug) with Batch Build.

How can I do the same thing with msbuild tool? For example, how can I tell msbuild to build gtest/Debug or gtest_unittest/Release?

Answer

Kyle Alons picture Kyle Alons · Jan 12, 2011
MSBuild projectfile /property:Configuration=Debug

http://msdn.microsoft.com/en-us/library/ms171452%28v=vs.80%29.aspx