开发者

MSBuild.exe not building projects in parallel

开发者 https://www.devze.com 2023-02-19 15:50 出处:网络
I use MSBuild.exe to build my Visual C++ Sol开发者_高级运维ution.One project in the solution compiles to a static library (let\'s called it MyLib.lib), and the many other projects are small tools whic

I use MSBuild.exe to build my Visual C++ Sol开发者_高级运维ution. One project in the solution compiles to a static library (let's called it MyLib.lib), and the many other projects are small tools which link to MyLib.lib.

I compile it like this: msbuild MySolution.sln /p:Configuration=Release /p:Platform="Win32" /maxcpucount:4

However I can see that each project is build sequentially. There is always only one MSBuild.exe running.

Am I doing anything wrong?

[edit: I'm using Visual Studio 2008]


Only projects that don't depend on each other can be built in parallel. Clearly that's not your case, can't build the tool until the .lib is available.

EDIT: you are not using VS2010. For VS2008 you should use vcbuild.exe. Enable concurrent builds with /M4


Projects have to be compiled one-by-one, since there are dependencies. Anyway MSBuild is not performing the compilation in parallel.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号