Xamarin.ios 无法加载程序集“;System.Xaml.Hosting“;

Xamarin.ios 无法加载程序集“;System.Xaml.Hosting“;,xamarin.ios,xamarin.android,Xamarin.ios,Xamarin.android,我从VisualStudio为我的Android应用程序安装了两个库。 安装软件包Newtonsoft.Json 安装软件包modernhttpclient 这个错误已经发生了,这里可能有兼容性问题,我还没有找到解决方法 System.IO.FileNotFoundException:无法加载程序集'System.Xaml.Hosting,版本=4.0.0.0,区域性=neutral,PublicKeyToken=31bf3856ad364e35'。也许它不存在于Mono for Android

我从VisualStudio为我的Android应用程序安装了两个库。 安装软件包Newtonsoft.Json 安装软件包modernhttpclient

这个错误已经发生了,这里可能有兼容性问题,我还没有找到解决方法

System.IO.FileNotFoundException:无法加载程序集'System.Xaml.Hosting,版本=4.0.0.0,区域性=neutral,PublicKeyToken=31bf3856ad364e35'。也许它不存在于Mono for Android配置文件中? 文件名:“System.Xaml.Hosting.dll”

关于为什么会出现此错误以及如何修复此错误,有什么建议吗?

从文件夹C:\Windows\Microsoft.NET\assembly\GAC\U MSIL\System.Xaml.Hosting复制DLL“System.Xaml.DLL” 在文件夹bin/Debug中,从文件夹C:\Windows\Microsoft.NET\assembly\GAC\u MSIL\System.Xaml.Hosting.DLL复制DLL“System.Xaml.Hosting.DLL” 在您的文件夹bin/Debug中