File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
csharp/src/Microsoft.ML.OnnxRuntime Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -872,23 +872,7 @@ internal class NativeLib
872872 // Define the library name required for iOS
873873 internal const string DllName = "__Internal" ;
874874#else
875- // For desktop platforms, explicitly specify the DLL name with extension to avoid
876- // issues on case-sensitive filesystems (including Windows with case-sensitivity enabled).
877- //
878- // Previous behavior relied on .NET automatically adding platform-specific extensions:
879- // Windows: onnxruntime -> onnxruntime.dll
880- // Linux: onnxruntime -> libonnxruntime.so
881- // macOS: onnxruntime -> libonnxruntime.dylib
882- //
883- // By specifying "onnxruntime.dll" explicitly, we ensure consistent behavior across
884- // case-sensitive and case-insensitive filesystems. This requires that native libraries
885- // for all platforms be named "onnxruntime.dll" in their respective runtime folders,
886- // or that appropriate symlinks/aliases be created during packaging.
887- //
888- // NuGet packages should contain:
889- // - runtimes/win-{arch}/native/onnxruntime.dll
890- // - runtimes/linux-{arch}/native/onnxruntime.dll (symlink to libonnxruntime.so)
891- // - runtimes/osx-{arch}/native/onnxruntime.dll (symlink to libonnxruntime.dylib)
875+ // Note: the file name in ONNX Runtime nuget package must be onnxruntime.dll instead of onnxruntime.DLL(Windows filesystem can be case sensitive)
892876 internal const string DllName = "onnxruntime.dll" ;
893877#endif
894878 }
You can’t perform that action at this time.
0 commit comments