Forum Visual Studio

VS4Mac can't find Xamarin.Mac

I'm converting a project from MonoMac to Xamarin.Mac but I cannot add the Xamarin.Mac assembly to my "References" - it never appears in the list of assemblies available. If I manually edit the csproj file and add

<Reference Include="Xamarin.Mac" />

The build fails with

...etc.../Helpers.cs(7,7): Error CS0246: The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Livedrive.Mac)

Yet I can see that it has been installed:

$ ls /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/reference/full
OpenTK.dll OpenTK.pdb Xamarin.Mac.dll Xamarin.Mac.pdb

I'm using VS4Mac 8.7.6 (build 2) that was d/l'ed today.

What am I missing?

Tagged:

Answers

  • sakwsakw Member

    Sorry, I should add that I'm using the original csproj file that used to reference "MonoMac". I deleted the reference to MonoMac but it won't let me add "Xamarin.Mac". But if I create a new project, it auto-adds Xamarin.Mac for me with no issues. Yet the older csproj cannot seem to find it.

Sign In or Register to comment.