visual-studiovisual-studio-2022roslyn-code-analysis

VS 2022: High RAM and CPU issue with Roslyn Code Analysis


We have a huge solution (ASP.NET MVC, C#) in Visual Studio 2022 (v.17.2.2 64bit).

Roslyn Code Analysis is always using high CPU and RAM. Is there a way to prevent this issue? A configuration or something else?

Task manager


Solution

  • In Visual Studio 2022, I've resolved it by disabling these two checks:

    enter image description here

    after that, Visual Studio works well.