Xamarin表单错误LoadApplication(new App());[副本]

xfb7svmp  于 2022-12-07  发布在  其他
关注(0)|答案(1)|浏览(88)

此问题在此处已有答案

Updating Nuget caused Exception Unhandled: System.TypeLoadException(3个答案)
三年前就关门了。
我刚刚创建了一个新的跨平台项目,并运行该应用程序,没有编写任何代码或更改任何配置,我得到了以下错误:
未行程的例外状况:
System.TypeLoadException:无法加载字段“Xamarin.Forms.Platform.Android.RendererPool:_freeRenderers”(0)的类型,原因是:无法从typeref解析带有标记0100027b的类型(应为类'System.Collections.Generic.Stack 1' in assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e') assembly:mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e type:System.Collections.Generic.Stack 1成员:出现(null)
我厌倦了更新Nuget软件包,删除bin和obj,然后重建。仍然发生错误。

esbemjvw

esbemjvw1#

您的问题被跟踪到on the Xamarin Forms Github Issues page,并且似乎很常见。解决方案似乎是确保您安装了最新版本的Visual Studio。如果这不起作用,请告诉我。

相关问题