简体   繁体   English

如何从命令行使用 MSBuild VS2015 构建所有配置?

[英]How can I build all configurations with MSBuild VS2015 from the command line?

In previous versions of MSBUILD you can build all configurations in a solution using the following command line arguments:在以前版本的 MSBUILD 中,您可以使用以下命令行参数在解决方案中构建所有配置:

msbuild /t:BuildAll /Configuration:"Debug;Release;ContinuousIntegration"

as shown here如图所示这里

However this does not work with MSBUILD VS2015 and gives the following error:但是,这不适用于 MSBUILD VS2015 并给出以下错误:

MSBUILD : error MSB1006: Property is not valid.
Switch: Release

This is a similar question to the one here however I am not using cmake just simply straight MSBUILD这是一个与这里的问题类似的问题,但是我没有使用 cmake 只是简单地直接使用 MSBUILD

For example:例如:

C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe"Uninstaller.vcxproj /property:Configuration=Release'

Sometimes you need run this for setting environment有时你需要运行它来设置环境

"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat"' 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从命令行使用MSBuild构建所有内容? - How can I build all with MSBuild from the command line? 在生成/触发事件上动态确定所有解决方案,项目和配置,并通过命令行/脚本使用MSBuild进行调用 - Dynamically determine all solutions, projects and configurations on a build/trigger event and call them all with MSBuild from command line/script 如何在命令行上构建Visual Studio 2008 C ++项目的所有配置? - How do I build all configurations of a Visual Studio 2008 C++ project on the command line? 如何在 VS2015 中的 windows 10 上构建 snappy? - How to build snappy on windows 10 in VS2015? 使用VS2010的msbuild进行构建时,是否可以从命令行设置平台工具集? - Can I set the platform toolset from the command line when building with VS2010's msbuild? 如何使用Bullet Physics SDK清除VS2015中的错误LNK2001? - How can I clear error LNK2001 in VS2015 with Bullet Physics SDK? 如何使用VS2015获取语言环境名称? - How do I get the locale name using VS2015? 如何更改“ msbuild”命令行的build参数 - how to change the build parameter of `msbuild` command line VS2015 cl 在命令行上构建时找不到 CRT 库(stdio.h、ctype.h 等) - VS2015 cl Can't find CRT libs (stdio.h, ctype.h etc.) when building on command line 如何在VS2015项目中包含libcds? - How to include libcds in VS2015 project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM