首页 > 解决方案 > Xamarin Microcharts 错误:命名空间“Microcharts”中不存在类型或命名空间名称“Entry”

问题描述

我尝试显示来自 Microcharts 的图表,但收到此错误:

/Users/pizhev/Documents/WeatherLocationInfo 1.6.8/WeatherLocationInfo/MainPage.xaml.cs(27,27): Error CS0234: The type or namespace name 'Entry' does not exist in the namespace 'Microcharts' (are you missing an assembly reference?) (CS0234) (WeatherLocationInfo)

Xamarin 微图错误

我把这个链接闲置了:教程和两个月前这个方法完美地工作。

所以当我尝试改变时:

using Entry = Microcharts.Entry;

using Entry = Microcharts.ChartEntry;

我收到很多这样的错误:

/Users/pizhev/Documents/WeatherLocationInfo 1.6.8/WeatherLocationInfo/MainPage.xaml.cs(243,243): Error CS1503: Argument 2: cannot convert from 'Xamarin.Forms.Entry' to 'Microcharts.ChartEntry' (CS1503) (WeatherLocationInfo)

和这个:

/Users/pizhev/Documents/WeatherLocationInfo 1.6.8/WeatherLocationInfo/MainPage.xaml.cs(44,44): Error CS1061: 'ChartEntry' does not contain a definition for 'Text' and no accessible extension method 'Text' accepting a first argument of type 'ChartEntry' could be found (are you missing a using directive or an assembly reference?) (CS1061) (WeatherLocationInfo)

微图错误

那么微图发生了什么变化,我该如何解决这个错误?

标签: c#iosxamarinxamarin.forms

解决方案


推荐阅读