[英]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"
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.