運行時複製異常

2023年10月5日
已更新 2024年10月20日
分享:
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(Debug 是一個例子,請按照您設定的配置)(如果您使用的是不同的目標框架,請替換net6.0)。

  2. 您將看到所有支援的平台和操作系統作為/runtimes/中的目錄,進入適用於您的目錄,並將檔案手動複製到輸出/bin/Debug/net6.0/目錄中。