From ccbf4e70611352524235b1c9efd4262c35814a53 Mon Sep 17 00:00:00 2001 From: Michael Butvinnik Date: Fri, 12 Sep 2025 19:27:23 +0300 Subject: [PATCH] Fix DllImport attribute for OutputDebugString function --- src/log4net/Util/NativeMethods.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/log4net/Util/NativeMethods.cs b/src/log4net/Util/NativeMethods.cs index 339a5427..88e43c4c 100644 --- a/src/log4net/Util/NativeMethods.cs +++ b/src/log4net/Util/NativeMethods.cs @@ -139,11 +139,7 @@ internal static extern int FormatMessage( /// Stub for OutputDebugString native method /// /// the string to output -#if NETSTANDARD2_0_OR_GREATER - [DllImport("CoreDll.dll")] -#else [DllImport("Kernel32.dll")] -#endif [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal static extern void OutputDebugString(string message);