Visual Studio 2019: where can I switch off "shared compilation"

Viewed 798

I updated VS to the last version (16.8.1) and compilation process is very slow (10+ minutes, which got 20 sec before). I see on log and see that it delays on

Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Roslyn

it pulls 100% CPU and all 16 Gb of memory. How to fix it and switch off this shared compilation feature?

ADDED 11/17/2020

I added

<UseSharedCompilation>False</UseSharedCompilation>

to every <PropertyGroup> for every project in my solution, but problem is not solved!

1 Answers

I had the exact same problem after upgrading to VS 16.8.1. And while dotnet build continued to work, I couldn't compile my solution anymore: the compiler started by VS would eat up all the available memory (RAM) before finishing its job (see my comments on the question).

Setting <UseSharedCompilation>False</UseSharedCompilation> did not help either.

So I had to "downgrade" Visual Studio back to 16.7.8 by following these instructions. This helped me to have a working IDE back in place.

Related