in Visual Studio 2019, randomly, multiple times a day, I will get this error along with
namespace name 'example' could not be found for every namespace I'm importing. This is what it looks like:
dotnet restorein the PM console.
Reinstalling all nuget packages removes the
Predefined type 'System.Object' is not defined or imported error until I try building the project again.