Forum Cross Platform with Xamarin
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.

The type 'Object' is defined in an assembly that is not referenced.

When trying to build Android part of a PCL project, I receive the following error message:

Error CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

So I have tried to add this reference manually, although I thought it was added automatically, then I received another error message:

Can someone please tell me what is going on? This started appearing after I added a few NuGet packages, and affects only the Android part of my project.

Btw, I am using Monodroid v7.1

Best Answer

Answers

Sign In or Register to comment.