運行時複製異常

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

在一些罕見的情況下,這個錯誤是由於我們的特殊ML模型的DLL未正確複製所引起的。按照下面的解決方案,你可以解決這個一次性錯誤。

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/