Xamarin forms UWP: Exception thrown: 'System.TypeLoadException' in System.Private.CoreLib.ni.dll

↘锁芯ラ 提交于 2019-12-24 01:09:15

问题


Getting the following exception after updating xamarin forms.

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'.

I have this problem after installing xamarin forms 3.1.0.912540 from 2.5.0.121934.

Screenshot adding below:


回答1:


The issue is already reported in the xamarin forums and the solution is to

  • Clean all projects in solution
  • close Visual Studio
  • Remove all bin and obj folders from all projects (shared and device (Android, iOS, UWP) specific)
  • Restart IDE, build the solution.


来源:https://stackoverflow.com/questions/53044549/xamarin-forms-uwp-exception-thrown-system-typeloadexception-in-system-privat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!