Xamarin.Android.Common.targets(1831,2): error XA2002: Can not resolve reference: `System.Memory`, referenced对于Xamarin.iOS,应用程序在模拟器上成功启动,但是调试输出显示应用程序在运行时无法找到System.Memory:
Could not find `System.Memory` referencedCould not find `System.Memory` referenced by assembl
当我尝试在VS2017中构建应用程序时,它显示以下构建错误 Error XA2002: Can not resolve reference: `System.Memory`, referenced byPlease add a NuGet package or assembly reference for `System.Memory`, or remove the reference to `System.Collections.Immutable在添加了对System.Memory的引用之后,错误就解决了。 请让我知道这背后的实际原因,
但是,当试图加载映像时,会弹出运行时错误:
FileNotFoundException: Could not load file or assembly 'System.Memory, Version=在使用ImageSharp的项目中,安装了一个System.Memory引用,属性表示它是4.0.1.0。但是当编译和检查DLL的细节时,它说是4.6.28619.1。试图重新安装不同的可用版本的System.Memory,但这不起作用。还搜索了GitHub回购上的问题,但没有提到这一点。这一次使用System.Memory
(Could not load file or assembly 'System.Memory, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51Pipelines.Sockets.Unofficial: Could not load file or assembly 'System.Memory, Version=4.2.0.0, Culture我已经将System.Memory nuget软件包V4.5.3安装到项目中,但没有帮助。在N
MimeKit.MimeMessage来实例化对象,则会得到一个错误Exception calling ".ctor" with "0" arguments": could not load file or assembly 'System.Memory接下来的步骤是尝试使用System.Memory安装NuGet,然后使用LoadFrom将程序集导入到当前会话中。导入System.Memory后,我再次尝试实例化Mimekit.MimeMessage并接收相同的错误,但它不能加载
我试图添加对System.Memory的引用
#r "C:/Program Files/dotnet/shared/Microsoft.NETCore.App/2.1.5/System.Memory.dll当我尝试使用open System.Memory时,它说是The namespace 'Memory' is not defined。有办法这样做吗?