Search code examples
xamarinf#package

Installing F# NuGet packages on Xamarin for Mac OS X


I am used to Visual Studio 2015 when developing in F#. I just bought a new iMac and installed Xamarin fine as suggested.

I would like to install the NuGet library called Spreads.

It seems I failed to do it. I don't know if it’s my poor handling of this issue or if that library is not available for Mac OS X (I installed it OK on my laptop running on Windows 8.1 and Visual Studio 2015).

When I am in Xamarin Studio, if I click on Project, I see the scrolling bar with "Update NuGet Packages" and "Restore NuGet Packages" but the button "Install NuGet Packages" is greyed and cannot be used.

Screenshot

Is there a tutorial on how to install packages?

Bonus question: Where are the files of the solutions saved?


Solution

  • I was able to add a copy of Spreads to an F# console application, using the latest Alpha version of Xamarin Studio (6.x) and Mono (4.4). These versions introduce far greater support of F#.

    If you are attempting to add the package to a mobile project, such as iOS or Android, this will fail as Spreads does not offer a version that targets the mobile framework.

    If you want to test version 6.x of Xamarin, I suggest upgrading to the Alpha channel via:

    Change the Updates Channel in Visual Studio for Mac