Skip to content

Mismatch version Oxyplot.Xamarin.Forms targetting Oxyplot.Core 2.0.0 #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TrsGianni opened this issue Jun 13, 2022 · 5 comments · Fixed by #142
Closed

Mismatch version Oxyplot.Xamarin.Forms targetting Oxyplot.Core 2.0.0 #124

TrsGianni opened this issue Jun 13, 2022 · 5 comments · Fixed by #142

Comments

@TrsGianni
Copy link

Hello,
I'm generating a model using Oxyplot.Core 2.1.0 in a seperate project and want to add this model to a view with WPF and Xamarin.Forms, there's no problem with WPF but but because of the mismatch in versions between Oxyplot.Xamarin and my project generating the model (Oxyplot.Xamarin targetting Oxyplot.Core 2.0.0) I'm getting the following error:

System.TypeLoadException
Message=Type OxyPlot.Xamarin.Android.CanvasRenderContext has invalid vtable method slot 7 with method OxyPlot.RenderContextBase:DrawLine (System.Collections.Generic.IList`1<OxyPlot.ScreenPoint>,OxyPlot.OxyColor,double,OxyPlot.EdgeRenderingMode,double[],OxyPlot.LineJoin)

Is there any news regarding the update to 2.1.0? Or is there a work-around? I tried setting the Oxyplot.Core target of the Oxyplot.xamarin projects to version 2.1.0 but I'm getting a lot of errors (not implemented methods etc.)

@janusw
Copy link
Member

janusw commented Dec 4, 2022

Is there any news regarding the update to 2.1.0? Or is there a work-around?

The only workaround for now would be using OxyPlot 2.0.0 in your project (unless you need any features from 2.1.0).

In fact I plan to update Oxyplot.Xamarin.Forms to OxyPlot 2.1.0 eventually, but I don't know much work it will be and if there are any major obstacles, so I don't have any timeline for you ...

@VisualMelon
Copy link

@janusw porting to 2.1 should be trivial: there is one important API change you'd need to worry about, but it's easy to update.

@janusw
Copy link
Member

janusw commented Dec 4, 2022

@janusw porting to 2.1 should be trivial: there is one important API change you'd need to worry about, but it's easy to update.

Thanks for the comment. I'll look into that soon (once I'm done with the cleanup and updating for 2.0).

@janusw
Copy link
Member

janusw commented Dec 4, 2022

Btw, @TrsGianni, which OxyPlot.Xamarin.Forms version did you use? You could try if the 2.0.0-beta.1 package that we published recently works any better, or if it still gives you the same error message.

@janusw
Copy link
Member

janusw commented Jan 8, 2023

#142 is merged by now and should fix this issue. You can try the nupkg from https://github.com/oxyplot/oxyplot-xamarin/actions/runs/3869117717#artifacts. I will prepare a 2.1.0 release soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants