运行时复制异常
2023年十月5日
更新 2024年十月20日
This article was translated from English: Does it need improvement?
TranslatedView the article in English
此错误在少数情况下会发生,原因是我们的特殊 ML 模型的 DLLs 没有被正确复制。 在下面的解决方案中,您可以解决这个一次性错误。
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/
解决方案
解决此问题的方案是首先导航到
runtimes
文件夹。 在您的解决方案中,这将位于/bin/Debug/net6.0/runtimes
(Debug是一个示例,请遵循您设置的配置)(如果您使用不同的目标框架,请替换net6.0
)。- 您将在
/runtimes/
中看到所有支持的平台和操作系统作为目录,进入适合您的目录,并手动将文件复制到输出/bin/Debug/net6.0/
目录中。