1

I'm using the VS For Mac Community (v7.2.2) and my Xamarin Project have as target .NET Standard 2.0. I'm having this error while trying to build the project.

Error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard,

I was try to set up the referenced, but does not works.The project that presents error is iOS. How can I solve this problem? Would anyone like to help me, please?

  • Here's a similar case, you can refer to: https://stackoverflow.com/questions/24257471/cs0012-system-enum-is-defined-in-an-assembly-not-referenced-on-build-server-targ – Kevin Li Nov 09 '17 at 09:00

1 Answers1

0

Have you installed the .NET Core SDK? You will need this installed to build .NET standard apps.

You can download the installer from:

https://www.microsoft.com/net/learn/get-started/macos

JimBobBennett
  • 2,149
  • 14
  • 11