oxyplot / oxyplot-xamarin

OxyPlot for Xamarin.Mac and Xamarin.Forms
MIT License
64 stars 59 forks source link

OxyPlot.Xamarin.Forms can't install in .macOS project #104

Closed ekrogh closed 1 year ago

ekrogh commented 4 years ago

I have installed OxyPlot.Xamarin.Mac (2.0.Q-preview0001) in the .macOS project, but when I try to install OxyPlot.Xamarin.Forms to the ,macOS project I get the error messages

Retrieving package 'OxyPlot.Xamarin.Forms 1.1.0-unstable0011' from 'nuget.org'.
For adding package 'OxyPlot.Xamarin.Forms.1.1.0-unstable0011' to project 'oxyPlotTst.macOS' that targets 'xamarinmac20'.
Install failed. Rolling back...
Package 'OxyPlot.Xamarin.Forms.1.1.0-unstable0011 : OxyPlot.Core [2.0.0-unstable0956, ), Xamarin.Forms [2.3.3.180, )' does not exist in project 'oxyPlotTst.macOS'
Package 'OxyPlot.Xamarin.Forms.1.1.0-unstable0011 : OxyPlot.Core [2.0.0-unstable0956, ), Xamarin.Forms [2.3.3.180, )' does not exist in folder '/Users/eks/projects/xamarinProjs/OxyPlotTst/packages'
Executing nuget actions took 61 ms
Could not install package 'OxyPlot.Xamarin.Forms 1.1.0-unstable0011'. You are trying to install this package into a project that targets 'Xamarin.Mac,Version=v2.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

How do I solve that problem ? -- Eigil

objorke commented 4 years ago

The NuGet packages are outdated, see #84. I suggest to use git submodules and include the Xamarin.Mac project in your solution!

janusw commented 1 year ago

We just published a new package that includes Mac support (https://www.nuget.org/packages/OxyPlot.Xamarin.Forms/2.0.0-beta.1), which should fix this issue.