When executing the solution build as follows, multiple worker nodes are created and the process finishes in 2 mins.
MSBuild.exe path\to.sln /p:OutDir=C:\out\ -m:4 /p:Configuration=QA /p:Platform="Any CPU"
However, when attempting to execute the SLN with specific targets (T1,T2,T3), these are built in series rather than parallel. Only the main msbuild.exe node is created; no workers
MSBuild.exe -target:Deployment\T1 -target:Deployment\T2 -target:Deployment\T3 path\to.sln /p:OutDir=C:\out\ -m:6 /p:Configuration=QA /p:Platform="Any CPU"
Despite the -m:6 parameter, only a single worker node is created; the process takes 2.5* longer to do the same thing.
- Is there some limitation when specifying targets that prevent them being executed in parallel?
- Any workarounds?