@@ -32,7 +32,7 @@ static GlobalSettings()
32
32
if ( netFX )
33
33
{
34
34
// 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 ) ;
36
36
}
37
37
else
38
38
{
@@ -159,8 +159,6 @@ public static LogConfiguration LogConfiguration
159
159
/// <summary>
160
160
/// Sets a path for loading native binaries on .NET Framework or .NET Core.
161
161
/// 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.
164
162
///
165
163
/// If the library is not found it will be searched in standard search paths:
166
164
/// <see cref="DllImportSearchPath.AssemblyDirectory"/>,
@@ -170,10 +168,6 @@ public static LogConfiguration LogConfiguration
170
168
/// This must be set before any other calls to the library,
171
169
/// and is not available on other platforms than .NET Framework and .NET Core.
172
170
/// </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>
177
171
/// </summary>
178
172
public static string NativeLibraryPath
179
173
{
@@ -213,8 +207,7 @@ public static string NativeLibraryPath
213
207
internal static string GetAndLockNativeLibraryPath ( )
214
208
{
215
209
nativeLibraryPathLocked = true ;
216
- string result = nativeLibraryPath ?? nativeLibraryDefaultPath ;
217
- return Platform . IsRunningOnNetFramework ( ) ? Path . Combine ( result , Platform . ProcessorArchitecture ) : result ;
210
+ return nativeLibraryPath ?? nativeLibraryDefaultPath ;
218
211
}
219
212
220
213
/// <summary>
0 commit comments