In Visual Studio, can I prevent some projects from being created in parallel in a solution?

I have multiple kernels on my machine and I think by default Visual studio will run build on each of those kernels. I'm happy to use side-by-side builds, but unfortunately some projects have some build errors that I know are related to concurrent access to some shared files.

Is there a way to specify for these specific projects that when they are built it is not done in parallel?

(For the record, at least some of the errors are caused by multiple instances of wix light linker having file conflicts.)

+3


source to share


2 answers


This is not supported by MSBuild at this time.



You can trick MSBuild into doing this as suggested in user Joe's comment . For example, if you have one project that you do not want to build in parallel, make sure that all other projects either depend on it or depend on it.

+3


source


I don't know if you can do this for every single project, but you can tell visual studio how many assemblies are running at the same time ...

Go to menu: Tools -> Options -> Projects and Solutions -> Build and Run



There will be a text box where you can specify the number of parallel projects.

+2


source







All Articles