Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why I get this error when I try to open my Xamarin.Mac project "MonoDevelop.MonoMac.XamMac2ProjectFlavor"?

When I try to open my Xamarin.Mac project I receive this error, any ideas?

Error while trying to load the project '/Users/eduardo/Desktop/MyProject/MyProject.MacOs/MyProject.MacOs.csproj': The type initializer for 'MonoDevelop.MonoMac.XamMac2ProjectFlavor' threw an exception.

like image 794
Led Machine Avatar asked Nov 05 '25 05:11

Led Machine


1 Answers

I just released that I need to have installed Xamarin.Mac with Visual Studio enter image description here

  • Open your Visual Studio for Mac Installer
  • Make sure that the macOs (Cocoa) option is checked
like image 193
Led Machine Avatar answered Nov 08 '25 00:11

Led Machine