Predefined type 'System.Object' is not defined or imported ERROR. RRS feed

  • Question

  • User393145 posted

    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:

    I've tried: * cleaning & rebuilding the project. * deleting the bin & obj folders. * running dotnet restore in the PM console. * updating VS. * reinstalling all nuget packages.

    Reinstalling all nuget packages removes the Predefined type 'System.Object' is not defined or imported error until I try building the project again.

    Wednesday, March 25, 2020 10:24 AM

All replies

  • User351103 posted

    Which version of VS2019 is this? I have similar errors in my XF/iOS project, but I have other problems as well after upgrading to latest VS2019 16.5.3- so cannot confirm yet. Upgrading XF/VS is always multiple days project :/

    Wednesday, April 8, 2020 3:04 PM