Xamarin 表单:System.TypeLoadException - 清理、删除 bin 和 obj 文件夹并且构建不起作用 [英] Xamarin forms: System.TypeLoadException - Clean, remove bin and obj folders and build not working
问题描述
我已经在
在将 xamarin 表单从 2.5.0.121934 更新到 3.4.0.1008975 后,我遇到了这个问题.问题仅在 UWP 部分.Android 和 IOS 应用运行良好,有什么解决方案?
我通过以下方式解决了这个问题.
我刚刚更新了我项目中的所有其他 NuGet 包,并清理、删除 bin 和 obj 文件夹并重建.也卸载和重新加载项目,在完成这些事情之后,异常从我的项目中消失了.在 StackOverflow 的某个地方,我有了更新所有其他 NuGet 包的想法.
I already asked a question about this issue on here. But the solution I got there is not working now. The solution was clean, remove bin and obj folders and rebuild.
Exception details:
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'.
Screenshot:
I have this problem after updating xamarin forms to 3.4.0.1008975 from 2.5.0.121934. Problem is only on the UWP part. Android and IOS apps are working fine, what is the solution for this?
I solved this problem in the following way.
I just updated all the other NuGet packages in my project and do clean, delete bin and obj folders and rebuild. Also unload and reload projects, after doing these things that exception vanished away from my project. Somewhere in StackOverflow, I got that the idea of updating all the other NuGet packages.
这篇关于Xamarin 表单:System.TypeLoadException - 清理、删除 bin 和 obj 文件夹并且构建不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!