@@ -37,26 +37,26 @@ private static IntPtr DllImportResolver(string libraryName, Assembly assembly, D
37
37
if ( libraryName == DLLNAME )
38
38
{
39
39
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) && RuntimeInformation . ProcessArchitecture == Architecture . X86 )
40
- return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-x86" , "libcrypto-3.dll" ) , assembly , searchPath ) ;
40
+ return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-x86" , "native" , " libcrypto-3.dll") , assembly , searchPath ) ;
41
41
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) && RuntimeInformation . ProcessArchitecture == Architecture . X64 )
42
- return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-x64" , "libcrypto-3-x64.dll" ) , assembly , searchPath ) ;
42
+ return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-x64" , "native" , " libcrypto-3-x64.dll") , assembly , searchPath ) ;
43
43
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) && RuntimeInformation . ProcessArchitecture == Architecture . Arm64 )
44
- return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-arm64" , "libcrypto-3-arm64.dll" ) , assembly , searchPath ) ;
44
+ return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-arm64" , "native" , " libcrypto-3-arm64.dll") , assembly , searchPath ) ;
45
45
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) && RuntimeInformation . ProcessArchitecture == Architecture . Arm64 )
46
- return NativeLibrary . Load ( Path . Combine ( "runtimes" , "osx-arm64" , "libcrypto.3.dylib" ) , assembly , searchPath ) ;
46
+ return NativeLibrary . Load ( Path . Combine ( "runtimes" , "osx-arm64" , "native" , " libcrypto.3.dylib") , assembly , searchPath ) ;
47
47
return IntPtr . Zero ;
48
48
}
49
49
50
50
if ( libraryName == SSLDLLNAME )
51
51
{
52
52
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) && RuntimeInformation . ProcessArchitecture == Architecture . X86 )
53
- return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-x86" , "libssl-3.dll" ) , assembly , searchPath ) ;
53
+ return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-x86" , "native" , " libssl-3.dll") , assembly , searchPath ) ;
54
54
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) && RuntimeInformation . ProcessArchitecture == Architecture . X64 )
55
- return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-x64" , "libssl-3-x64.dll" ) , assembly , searchPath ) ;
55
+ return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-x64" , "native" , " libssl-3-x64.dll") , assembly , searchPath ) ;
56
56
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) && RuntimeInformation . ProcessArchitecture == Architecture . Arm64 )
57
- return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-arm64" , "libssl-3-arm64.dll" ) , assembly , searchPath ) ;
57
+ return NativeLibrary . Load ( Path . Combine ( "runtimes" , "win-arm64" , "native" , " libssl-3-arm64.dll") , assembly , searchPath ) ;
58
58
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) && RuntimeInformation . ProcessArchitecture == Architecture . Arm64 )
59
- return NativeLibrary . Load ( Path . Combine ( "runtimes" , "osx-arm64" , "libssl.3.dylib" ) , assembly , searchPath ) ;
59
+ return NativeLibrary . Load ( Path . Combine ( "runtimes" , "osx-arm64" , "native" , " libssl.3.dylib") , assembly , searchPath ) ;
60
60
return IntPtr . Zero ;
61
61
}
62
62
0 commit comments