Multiprocessor Support

MSBuild 3.5 now supports using multiple processors (cores) to execute the build process when available. This feature must explicitly be turned on in order to be used. You can turn it on by passing the /maxcpucount (/m) switch when invoking msbuild.exe. When you use this switch you can pass a specific number of concurrent processes that MSBuild can use by using the format /m:N where N is the number of processes to use. If N is not provided then it will default to the number of processors that are available on the machine. Typically using /m alone is ideal; however, if you want to try to optimize the build performance of a large solution, you could experiment with values of N that are a little different from the number of ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.