Forum Visual Studio
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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

KesWalkerKesWalker Member ✭✭

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.

Answers

  • ZoliZoli NLMember ✭✭✭
    edited April 8

    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 :/

Sign In or Register to comment.