c# - 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)
我把这个链接闲置了:教程和两个月前这个方法完美地工作。
所以当我尝试改变时:
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)
那么微图发生了什么变化,我该如何解决这个错误?
解决方案
推荐阅读
- symfony - symfony 4 - 表单选择后重定向
- android - 如何使用双簧管正确播放解码的内存 PCM?
- python - 无法创建循环以从网页中获取所有标题
- c# - 枚举从“a”到“zzz”的字母表
- python - 将 PyTorch 的张量形状从 (C, B, H) 更改为 (B, C*H)
- node.js - Google Cloud App Engine 上的 Nodejs 应用程序未启动
- angular - 如何在 Angular 6 导出功能中使用依赖注入
- c# - 将数学运算符存储在变量中
- postgresql - 使用 MeteorJS 和 PostgreSQL 数据库
- javascript - .Net Core 中的自定义属性未显示验证消息