I am using MsBuild on a 4 core machine. I am giving the following command line to build 4 projects belonging to a big VC++ solution ( having more than 4 projects ALL with no mutual dependencies ). I am using Visual Studio 2008.
To speed up the build time I am trying to take advantage of the maxcpucount
options but it seems not working.
I was expecting that each core would build each of the 4 projects I am providing at command line. Unfortunately I measured the time of building and with or without the maxcpucount
option I have the same exact result.
C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe MyVCppSolution.sln /t:ProjA;ProjB;ProjC;ProjD /m
Do you know what I am doing wrong here?
Is a correct way to say "builds 4 projects of MyVCppSolution.sln solution at once" or should I run manually 4 processes each building a single project of the solution up to 4?