MSBuild未从解决方案文件中获取订单 [英] MSBuild is not taking the order from solution file

查看:52
本文介绍了MSBuild未从解决方案文件中获取订单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们已将并行执行计数设置为1,以便所有项目将一个接一个地构建。在Visual Studio设置中。

We have set the parallel execution count to 1 so that all the projects will build one after other.In the Visual Studio settings.


使用Devenv.exe的以下命令,我们能够正确编译解决方案。

With below command from Devenv.exe we are able to compile the solution correctly.


call vcvarsall.bat x86_amd64

devenv /Build "Release|x64" "w:/Frameworks/Frameworks.sln"








但是对于MSBuild,使用以下命令,解决方案无法编译,当我交叉检查日志时,项目编译的顺序不正确,不从解决方案文件中获取。

But with MSBuild, with below command, the solution is failing to compile, when I cross check the log, the order of compilation of projects is not correct, not taking from solution file.

call vcvarsall.bat x86_amd64


"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "W:\Frameworks\Frameworks.sln" /t:build /fl /flp:logfile=Frameworks.log;verbosity=normal /p:Configuration=Release;Platform=x64 /m:1







任何建议,如何修复设置msbuild只能从解决方案文件中提到的顺序进行编译。

Any suggestion, how to fix set msbuild to compile only from order mentioned in solution file.

推荐答案

我们已将并行执行计数设置为1,以便所有项目将一个接一个地构建。在Visual Studio设置中。

We have set the parallel execution count to 1 so that all the projects will build one after other.In the Visual Studio settings.

使用以下命令从Devenv.exe我们能够正确编译解决方案。

With below command from Devenv.exe we are able to compile the solution correctly.

call vcvarsall.bat x86_amd64

devenv /Build "Release|x64" "w:/Frameworks/Frameworks.sln"




但是使用MSBuild,使用以下命令,解决方案无法编译,当我交叉检查日志时,顺序为项目编译不正确,不从解决方案文件中获取。

But with MSBuild, with below command, the solution is failing to compile, when I cross check the log, the order of compilation of projects is not correct, not taking from solution file.

call vcvarsall.bat x86_amd64


"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "W:\Frameworks\Frameworks.sln" /t:build /fl /flp:logfile=Frameworks.log;verbosity=normal /p:Configuration=Release;Platform=x64 /m:1

任何建议,如何修复设置msbuild只能从解决方案文件中提到的订单进行编译。

Any suggestion, how to fix set msbuild to compile only from order mentioned in solution file.





这篇关于MSBuild未从解决方案文件中获取订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆