How to do a parallel build in Visual Studio 2013?

Ivan P. picture Ivan P. · May 7, 2014 · Viewed 16.1k times · Source

According to this MSDN article:

http://msdn.microsoft.com/en-us/library/cyz1h6zd.aspx

one "can run multi-processor builds for C++ and C# projects." using the IDE. My solution contains only C# projects, but when I do "Build Solution" I can only see one MSBuild process in task manager and one csc.exe process.

In Tools -> Options -> Projects and Solutions -> Build and Run I have "maximum number of parallel project builds" set to 4 and my computer has 4 cores.

Is it possible to setup VS2013 to build my solution projects in parallel?

Answer

BlueM picture BlueM · May 7, 2014

I tested the option you mentioned on my larger solution with lot of independend projects in VS2013 and it builds these projects in 4 newly spawned build processors.

enter image description here

If your projects depend on each other the build will have difficulty to run concurrently. But it basically does work in VS2013.

For reference this is the setting: enter image description here

Putting 8 in there spawned 8 build processors.