実行時コピー例外
このエラーは、特殊な機械学習モデルの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/
ソリューション
-
この問題の解決策は、まず
runtimes
フォルダーに移動することです。 このソリューションでは、/bin/Debug/net6.0/runtimes
に配置されます(Debugは例ですので、設定したConfigurationに従ってください)(別のターゲットフレームワークを使用している場合は、net6.0
を置き換えてください)。 - すべてのサポートされているプラットフォームとオペレーティングシステムが
/runtimes/
ディレクトリに表示されます。自分に該当するものに移動し、ファイルを手動で出力用ディレクトリ/bin/Debug/net6.0/
にコピーしてください。