Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable multi-processor builds in Visual Studio

I have a C# solution that has a very high build time. This article suggests analysing it using msbuild switches.

How can I add those command line switches to my solution so visual studio adds them when starting the build?

I would like to run msbuild using these switches:

/tv:4.0 /m:4 /ds /t:ParallelBuild
like image 738
Johannes Avatar asked Mar 12 '26 01:03

Johannes


1 Answers

Go to Tools -> Options -> Projects and Solutions -> Build and Run.

Then enter a number for the "maximum number of parallel project builds".

However, it is likely that this is already set to a value greater than 1, so this might not be much use.

This is equivalent to the /m switch - the other switches you mention are of no significance for enabling multiprocessor builds.

like image 66
Matthew Watson Avatar answered Mar 14 '26 13:03

Matthew Watson