How to build a solution from the command line with

2019-06-14 10:38发布

问题:

How to build a VC++ solution from the command line with Visual C++ 2012 Express ?

回答1:

Open a "Developer Command Prompt for VS2012", located in the "Microsoft Visual Studio 2012 --> Visual Studio Tools" in "All Programs".

Type msbuild /help to have documentation.

Example: cd to your solution folder. type MSBuild MyApp.sln /t:Rebuild /p:Configuration=Release /p:Platform=Win32