如何使用VS2012 Express从命令行构建解决方案?

如何使用VS2012 Express从命令行构建解决方案?

问题描述:

如何使用Visual C ++ 2012 Express从命令行构建VC ++解决方案?

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

打开开发人员命令提示符 VS2012,位于所有程序的 Microsoft Visual Studio 2012-> Visual Studio工具中。

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

键入 msbuild / help 以获取文档。

示例:
cd 到您的解决方案文件夹。
类型 MSBuild MyApp.sln / t:重建/ p:配置=发布/ p:平台= Win32

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