diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/NativeMethods.cs b/csharp/src/Microsoft.ML.OnnxRuntime/NativeMethods.cs index 136655d8c2..fa02f0fef1 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/NativeMethods.cs +++ b/csharp/src/Microsoft.ML.OnnxRuntime/NativeMethods.cs @@ -12,7 +12,7 @@ namespace Microsoft.ML.OnnxRuntime internal static class NativeMethods { - private const string nativeLib = "onnxruntime.dll"; + private const string nativeLib = "onnxruntime"; internal const CharSet charSet = CharSet.Ansi; #region Runtime/Environment API