@@ -37,26 +37,26 @@ private static IntPtr DllImportResolver(string libraryName, Assembly assembly, D
3737 if ( libraryName == DLLNAME )
3838 {
3939 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 ) ;
4141 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 ) ;
4343 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 ) ;
4545 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 ) ;
4747 return IntPtr . Zero ;
4848 }
4949
5050 if ( libraryName == SSLDLLNAME )
5151 {
5252 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 ) ;
5454 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 ) ;
5656 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 ) ;
5858 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 ) ;
6060 return IntPtr . Zero ;
6161 }
6262
0 commit comments