microcharts-dotnet / Microcharts

Create cross-platform (Xamarin, Windows, ...) simple charts.
MIT License
2.03k stars 360 forks source link

Visualization Error: Non-Static method requires a target #91

Open jgartner1 opened 6 years ago

jgartner1 commented 6 years ago

I was following the Instruction from this Video: https://www.youtube.com/watch?v=tmymWdmf1y4 (as mentioned in the readme). But I wasn't able to reproduce the outcome. When I typed in the same code at first it hasn't found any classes like BarChart(),RadialGaugeChart() or anything like that. So I installed next to Microcharts.Forms Microcharts itself. Maybe that's the issue, because these two packages conflict in some way. And at the beginning of the Video he doesn't create a shared project but a Portable Class Libary (PCL) im my Version this is called .NET Standard the other one isn't even available and I'm not quite sure whether they just renamed it or also changed some of the behavior. So and after these slight little changes I get the error

Visualization Error: Non-Static method requires a target

and

Visualization Error: Type must be a runtime object. Argument Exception

when starting my Xamarin app in live-view. Do you have any Idea how I can solve this error? If you need any further information feel free to ask.

DharmilAsawla commented 6 years ago

Similar to #58. “I had the exact same issue. However, I think this is due to some limitations of the Xamarin Live player as described here https://docs.microsoft.com/en-us/xamarin/tools/live-player/limitations?tabs=android

jgartner1 commented 6 years ago

@DharmilAsawla so do you think if I'm compiling the app the error goes away?