OGeek|极客世界-中国程序员成长平台

标题: android - 使用 RectangleF 时出现 Xamarin.forms 错误 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 11:32
标题: android - 使用 RectangleF 时出现 Xamarin.forms 错误

我使用 Xamarin.forms 。请为我修复该错误。太感谢了 !

 RectangleF imageRect = new RectangleF(0, 0, width, height);

严重性代码描述项目文件行抑制状态 错误 CS0433 类型“RectangleF”同时存在于“Mono.Android,版本=0.0.0.0,Culture=neutral,PublicKeyToken=84e04ff9cfb79065”和“Xamarin.iOS,版本=0.0.0.0,Culture=neutral,PublicKeyToken=84e04ff9cfb79065”MedlatecService C:\Users\Administrator\Documents\Visual Studio 2015\Projects\MedlatecService\MedlatecService\MedlatecService\Views\AskQuestion\AskQuestionPage.xaml.cs 128 Activity



Best Answer-推荐答案


有趣的是,我也遇到了同样的问题。

我不知道它是怎么发生的,但不知怎的,我在我的 iOS 项目中添加了对 Mono.Android 的引用;因此错误。

我删除了引用,错误消失了。

关于android - 使用 RectangleF 时出现 Xamarin.forms 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37630268/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4