【发布时间】:2017-07-05 12:38:14
【问题描述】:
我是 Xamarin、C# 和 VisualStudio 的新手 在我的项目中,我尝试使用 Html Label 在标签中显示 HTML 内容
按照android中的步骤可以正常工作,但在ios中我有这个错误:
这是我在 appdelegate 中完成的启动
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
//Call HtmlLabelRenderer.Initialize() before Xamarin.Forms.Forms.Init() in AppDelegate.cs
HtmlLabelRenderer.Initialize();
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
在“global::Xamarin.Forms.Forms.Init() 启动时向我显示此错误;
System.TypeLoadException 解码自定义属性时无法加载类型 Plugin.HtmlLabel.HtmlLabel、Plugin.HtmlLabel、Version=1.0.0.0、Culture=neutral、PublicKeyToken=null:(null)
我尝试清理和重建,删除 obj 和 bin 文件夹但不起作用,我想我错过了一些步骤
感谢帮助
【问题讨论】:
-
您是否在 PCL 项目和平台项目中都安装了插件?
-
@GeraldVersluis 是的,我会安装在项目和 android/ios 平台中,正如我所说,如果我使用 android 运行一切正常
-
只使用WebView
-
@YuriS 不,我想做一个从 joomla 导入新闻的列表视图,WebView 不是我的解决方案
标签: xamarin.forms nuget