未处理的异常:System.TypeLoadException:无法使用令牌 0100003b 解析类型 [英] Unhandled Exception: System.TypeLoadException: Could not resolve type with token 0100003b
问题描述
为什么会引发此异常.如何解决异常
why this exception raised. how to solve the exception
未处理的异常:
09-15 15:00:05.973 E/单声道 (5985):System.TypeLoadException:无法使用令牌 0100003b 解析类型(来自 typeref,类/程序集 Xamarin.Forms.Xaml.IReferenceProvider,Xamarin.Forms.Core,版本=2.0.0.0,文化=中性,PublicKeyToken=null) 09-15 15:00:05.973 E/mono (5985): at(包装器动态方法) System.Object.7(intptr,intptr,intptr) 09-1515:00:05.974 E/mono-rt (5985):[错误] 致命的未处理异常:System.TypeLoadException:无法使用令牌 0100003b 解析类型(来自 typeref,类/程序集 Xamarin.Forms.Xaml.IReferenceProvider,Xamarin.Forms.Core,版本=2.0.0.0,文化=中性,PublicKeyToken=null) 09-15 15:00:05.974 E/mono-rt(5985):在(包装器动态方法) System.Object.7(intptr,intptr,intptr)
09-15 15:00:05.973 E/mono ( 5985): System.TypeLoadException: Could not resolve type with token 0100003b (from typeref, class/assembly Xamarin.Forms.Xaml.IReferenceProvider, Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null) 09-15 15:00:05.973 E/mono ( 5985): at (wrapper dynamic-method) System.Object.7(intptr,intptr,intptr) 09-15 15:00:05.974 E/mono-rt ( 5985): [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not resolve type with token 0100003b (from typeref, class/assembly Xamarin.Forms.Xaml.IReferenceProvider, Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null) 09-15 15:00:05.974 E/mono-rt ( 5985): at (wrapper dynamic-method) System.Object.7(intptr,intptr,intptr)
public partial class MenuPage : MasterDetailPage
{
public MenuPage()
{
InitializeComponent();
}
}
推荐答案
试试这个:
- 全部清理
- 退出 IDE
- 删除所有 bin/obj 文件夹
- 如果在 VS PC 上,请删除链接的 MAC 文件夹 ~/Library/Caches/Xamarin/builds
这篇关于未处理的异常:System.TypeLoadException:无法使用令牌 0100003b 解析类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!