O'Reilly logo

Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build by William Bartholomew, Sayed Ibrahim Hashimi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required