A community member has associated this post with a similar question:
How to reference the native Onnxruntime.dll in my app installed from Nuget in my app .Instead of from System32

Only moderators can edit this content.

How to reference the onnx Runtime in the wpf .net framework 4.7.2 app?

Vishal2 Bansal 285 Reputation points
2024-11-28T12:32:56.9166667+00:00
  1. Hi i have created a class library in c# visual studio in .net standard 2.0. a. It has onnxruntime ,opencvsharp etc dependencies.
  2. Now i am building this library and using it in my WPF UI application. But i am getting following error. The given version [14] is not supported, only version 1 to 10 is supported in this build. Exception thrown: 'System.NullReferenceException' in Microsoft.ML.OnnxRuntime.dll Object reference not set to an instance of an object.
Developer technologies | Windows Presentation Foundation
Developer technologies | .NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more