@@ -32,7 +32,7 @@ static GlobalSettings()
3232 if ( netFX )
3333 {
3434 // For .NET Framework apps the dependencies are deployed to lib/win32/{architecture} directory
35- nativeLibraryDefaultPath = Path . Combine ( GetExecutingAssemblyDirectory ( ) , "lib" , "win32" ) ;
35+ nativeLibraryDefaultPath = Path . Combine ( GetExecutingAssemblyDirectory ( ) , "lib" , "win32" , Platform . ProcessorArchitecture ) ;
3636 }
3737 else
3838 {
@@ -159,8 +159,6 @@ public static LogConfiguration LogConfiguration
159159 /// <summary>
160160 /// Sets a path for loading native binaries on .NET Framework or .NET Core.
161161 /// When specified, native library will first be searched under the given path.
162- /// On .NET Framework a subdirectory corresponding to the architecture ("x86" or "x64") is appended,
163- /// otherwise the native library is expected to be found in the directory as specified.
164162 ///
165163 /// If the library is not found it will be searched in standard search paths:
166164 /// <see cref="DllImportSearchPath.AssemblyDirectory"/>,
@@ -170,10 +168,6 @@ public static LogConfiguration LogConfiguration
170168 /// This must be set before any other calls to the library,
171169 /// and is not available on other platforms than .NET Framework and .NET Core.
172170 /// </para>
173- /// <para>
174- /// If not specified on .NET Framework it defaults to lib/win32 subdirectory
175- /// of the directory where this assembly is loaded from.
176- /// </para>
177171 /// </summary>
178172 public static string NativeLibraryPath
179173 {
@@ -213,8 +207,7 @@ public static string NativeLibraryPath
213207 internal static string GetAndLockNativeLibraryPath ( )
214208 {
215209 nativeLibraryPathLocked = true ;
216- string result = nativeLibraryPath ?? nativeLibraryDefaultPath ;
217- return Platform . IsRunningOnNetFramework ( ) ? Path . Combine ( result , Platform . ProcessorArchitecture ) : result ;
210+ return nativeLibraryPath ?? nativeLibraryDefaultPath ;
218211 }
219212
220213 /// <summary>
0 commit comments