IronBarcode 故障排除 ML.OnnxRuntime 构建错误 ML.OnnxRuntime Build Error Curtis Chau 已更新:六月 9, 2025 Download IronBarcode NuGet 下载 DLL 下载 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English When using the IronBarcode ZIP package, you might encounter the following error message: Error (active) MSB3027 Could not copy "C:\Users\first\.nuget\packages\microsoft.ml.onnxruntime\1.18.1\runtimes\ios\native\onnxruntime.xcframework\ios-arm64_x86_64-maccatalyst\onnxruntime.framework\Headers\onnxruntime_session_options_config_keys.h" to "bin\Debug\net8.0\runtimes\ios\native\onnxruntime.xcframework\ios-arm64_x86_64-maccatalyst\onnxruntime.framework\Headers\onnxruntime_session_options_config_keys.h". Exceeded retry count of 10. Failed. C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 5034 Reason This error occurs when Microsoft.ML.OnnxRuntime is not installed immediately after adding the project references from the IronBarcode ZIP file and before building the entire project. It is related to a file copy operation exceeding the maximum retry count, which is a symptom of the assembly not being set up correctly. Solution Unfortunately, this issue appears to be a known problem within the Microsoft build system, and there is no immediate fix within the current project setup. The recommended approach is to create a new project from scratch and reinstall the necessary dependencies in a specific order, which helps ensure that the build system resolves all dependencies correctly and avoids the copy operation error. Steps to Resolve: Create a new project: Start with a clean slate by creating a new project in your development environment. Add project reference to IronBarcode DLLs: Incorporate the IronBarcode libraries by adding the appropriate DLL references in your project settings. Install Microsoft.ML.OnnxRuntime: Before building, install the Microsoft.ML.OnnxRuntime package. This can typically be done via NuGet package manager or through the command line using dotnet add package Microsoft.ML.OnnxRuntime. Build the project: Once all dependencies have been correctly set up and installed, build the project. This order of operations helps ensure that the necessary components are available for the build system to work correctly. By following these steps, you can mitigate the file copying issue and allow the build process to complete successfully. Curtis Chau 立即与工程团队聊天 技术作家 Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。 准备开始了吗? Nuget 下载 1,935,276 | 版本: 2025.11 刚刚发布 免费 NuGet 下载 总下载量:1,935,276 查看许可证