运行时复制异常

This article was translated from English: Does it need improvement?
Translated
View the article in English

在某些罕见的情况下,我们的特殊 ML 模型的动态链接库没有正确复制过来,就会出现这个错误。在下面的解决方案中,您可以解决这个一次性错误。

IronQrDetection.Exceptions.IronQrRuntimesCopyException : Machine learning DLLs were not successfully automatically copied from the runtimes directory. This may occur on various operating systems or frameworks. Please follow the steps in the following article to resolve this issue: https://ironsoftware.com/csharp/qr/troubleshooting/runtimes-copy-exception/

解决方案

1.解决这个问题的方法是首先导航到 runtimes 文件夹。在您的解决方案中,该文件夹位于 /bin/Debug/net6.0/runtimes 下。 (调试是一个示例,请按照您设置的配置进行调试) (如果使用不同的目标框架,请替换 "net6.0).

2.您将在 /runtimes/中看到所有支持的平台和操作系统目录,进入适用于您的目录,然后手动将文件复制到输出的 /bin/Debug/net6.0/目录中。