I'm having an issue with VS2019 profesional 16.5.5 and 16.5.4 with my C# multi-project solution. It compiles, tests and executes correcly, but in the background I have the constant restore of nuget packages, completing once every few seconds. The CPU is close to 100%.
I have tried Update-Package -reinstall
, nuget locals all --clear
(from: How do I fix this NuGet Restart loop in Visual Studio 2017?), updating VS, removing my .vs
folder, cleaning the solution, checking out the project again from git and even restarting. Nothing seems to help.
The project has a few main projects: two console, one AspNetCore, one WPF. They use common libs in Standard 2.0 or shared C# projects.
The Package Manager log in Output window has hundereds of entries like:
Time Elapsed: 00:00:00.7441577
========== Finished ==========
Time Elapsed: 00:00:00.8448774
========== Finished ==========
Time Elapsed: 00:00:00.8410551
========== Finished ==========
Time Elapsed: 00:00:00.7351174
========== Finished ==========
Time Elapsed: 00:00:00.7997720
========== Finished ==========
Time Elapsed: 00:00:00.9367757
========== Finished ==========
Unloading some projects helps a bit, but only temporarily - until I load them again.
How can I fix the constant Nuget package restore issue?