【问题标题】:C# Six Labors ImageSharp runtime error System.Memory 4.0.1.0 Visual Studio 2019C# 六工 ImageSharp 运行时错误 System.Memory 4.0.1.0 Visual Studio 2019
【发布时间】:2020-07-21 21:48:35
【问题描述】:

在 Visual Studio 2019 中加载的需要图像处理的项目中,使用了 Six Labors ImageSharp 库。但是在尝试加载图片时,会弹出运行时错误:

FileNotFoundException: Could not load file or assembly 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

在使用 ImageSharp 的项目中,安装了 System.Memory 引用,并且属性说它是 4.0.1.0。但是在编译并检查 DLL 的详细信息时,它会显示 4.6.28619.1

我尝试删除引用并使用 NuGet 重新安装,但版本差异相同。 NuGet 包也不显示“以前的版本”部分下列出的版本 4.0.1.0

尝试重新安装 System.Memory 的不同可用版本,但没有成功。也搜索了GitHub repo上的issues,但是没有提到这个。

ImageSharp 是否链接到4.0.1.0 并且无论您安装什么版本,它都会显示4.0.1.0

如何解决这个问题,使运行时错误不显示并且我可以使用 ImageSharp?

更新: 安装每晚构建“解决”了这个问题。这个使用 System.Memory >= 4.5.3

【问题讨论】:

    标签: c# imagesharp system.memory


    【解决方案1】:

    安装最新的1.0.0-rc0001 版本。

    在 NET Framework 上工作时,有时会出现由网络标准时髦引起的绑定重定向问题。我们现在参考一个更高的版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-22
      • 2019-08-31
      • 1970-01-01
      • 1970-01-01
      • 2010-11-18
      • 2021-09-02
      • 2021-04-16
      • 2022-10-14
      相关资源
      最近更新 更多