Skip to content

Commit f98ca7d

Browse files
committed
update rid list
1 parent f2499a3 commit f98ca7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

csharp/src/Microsoft.ML.OnnxRuntime/NativeMethods.shared.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,7 @@ internal class NativeLib
890890
/// <summary>
891891
/// Custom DllImportResolver to handle platform-specific library loading.
892892
/// On Windows, it explicitly loads the library with a lowercase .dll extension to handle
893-
/// case-sensitive filesystems. On other platforms (Linux/macOS), it returns IntPtr.Zero
894-
/// to allow .NET's default, NuGet-aware resolution logic to find the library.
893+
/// case-sensitive filesystems.
895894
/// </summary>
896895
private static IntPtr DllImportResolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
897896
{
@@ -930,7 +929,8 @@ private static IntPtr DllImportResolver(string libraryName, Assembly assembly, D
930929
string assemblyDir = System.IO.Path.GetDirectoryName(assemblyLocation);
931930
string rid = RuntimeInformation.RuntimeIdentifier;
932931

933-
string[] ridsToTry = { rid, "osx-arm64", "osx-aarch64", "osx", "linux-x64", "linux-arm64", "linux" };
932+
// We no longer support osx-x64 after 1.24
933+
string[] ridsToTry = { rid, "win-x64", "win-arm64", "linux-x64", "linux-arm64", "osx-arm64"};
934934
foreach (var tryRid in ridsToTry)
935935
{
936936
string probePath = System.IO.Path.Combine(assemblyDir, "runtimes", tryRid, "native", mappedName);

0 commit comments

Comments
 (0)