启动注册期间无法加载程序集“System.Buffers" [英] Could not load assembly 'System.Buffers' during startup registration

查看:33
本文介绍了启动注册期间无法加载程序集“System.Buffers"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Xamarin 表单应用程序在 5 分钟前运行,然后突然停止工作.应用程序启动后立即关闭.下面显示了 Visual Studio 输出中的消息显示,

My Xamarin form apps was running like 5 minutes ago then all of sudden it stop working. The apps close instantly after it started. Below shows message display at Visual studio output,

Assembly Loader probing location: 'System.Buffers'.
Could not load assembly 'System.Buffers' during startup registration.
This might be due to an invalid debug installation.
 A common cause is to 'adb install' the app directly instead of doing from the IDE.

我尝试过但未能解决问题的事情,

Things that I tried but failed to resolve the problem,

  1. 从 Nuget 包重新安装 System.Buffer.
  2. 清理android的bin和obj文件夹
  3. 在 Android 选项中未选中使用共享运行时
  4. 清洁解决方案和重建解决方案

我提到的论坛

  1. https://forums.xamarin.com/discussion/115983/stuck-on-error-could-not-load-assembly-system-buffers-during-startup-registration
  2. https:///forums.xamarin.com/discussion/63584/android-could-not-load-assembly-xxx-during-startup-registration
  3. https://bugzilla.xamarin.com/show_bug.cgi?id=44518

谁能帮帮我?提前致谢

推荐答案

我从 论坛.

卸载 System.Buffer 并使用 NuGet 包安装 System.Memory 到您的项目并完成.希望能帮到你.

Uninstall System.Buffer and install System.Memory using NuGet package to your project and its done. Hope it helps you.

这篇关于启动注册期间无法加载程序集“System.Buffers"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆