xamarin.forms - Xamarin 表单 UWP : Exception thrown: 'System.TypeLoadException' in System. Private.CoreLib.ni.dll

标签 xamarin.forms typeloadexception

更新 xamarin 表单后出现以下异常。

Exception thrown: 'System.TypeLoadException' in System.Private.CoreLib.ni.dll An exception of type 'System.TypeLoadException' occurred in System.Private.CoreLib.ni.dll but was not handled in user code Could not load type 'Xamarin.Forms.Xaml.XamlResourceIdAttribute' from assembly 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.

我在从 2.5.0.121934 安装 xamarin forms 3.1.0.912540 后遇到了这个问题。

截图如下:

enter image description here

最佳答案

该问题已在 xamarin 论坛和 the solution 中报告是为了

  • 清理解决方案中的所有项目
  • 关闭 Visual Studio
  • 从所有项目(共享和设备(Android、iOS、UWP)特定)中删除所有 binobj 文件夹
  • 重启 IDE,构建解决方案。

关于xamarin.forms - Xamarin 表单 UWP : Exception thrown: 'System.TypeLoadException' in System. Private.CoreLib.ni.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53044549/

相关文章:

c# - CarouselView 仅在 Load 时显示绑定(bind)项

android - Xamarin 形成自定义启动屏幕

.net - 关于 TypeLoadException 的帮助

c# - "System.TypeLoadException: Internal limitation: too many fields."具有大型静态数据结构

c# - 系统.TypeLoadException : Method 'get_xxx' does not have an implementation

android - AppCenter Xamarin.Android 在设备上成功构建和安装但未运行

c# - Xamarin Forms 嵌入资源图像作为 XAML 中 ContentPage 的背景

android - 将 ActionBar 标题对齐 Xamarin

c# - 为什么泛型结构不能具有在 C# 中指定泛型类型的静态成员?

c# - TypeLoadException的解决方法