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.
精彩评论