This is an automated email from the ASF dual-hosted git repository.
freeandnil pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4net.git
The following commit(s) were added to refs/heads/master by this push:
new 6cb49cd9 Fix DllImport attribute for OutputDebugString function
6cb49cd9 is described below
commit 6cb49cd9cd1557bc236525ce93e59bcb0b255868
Author: Michael Butvinnik <[email protected]>
AuthorDate: Fri Sep 12 19:27:23 2025 +0300
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 struct ConsoleScreenBufferInfo
/// Stub for OutputDebugString native method
/// </summary>
/// <param name="message">the string to output</param>
-#if NETSTANDARD2_0_OR_GREATER
- [DllImport("CoreDll.dll")]
-#else
[DllImport("Kernel32.dll")]
-#endif
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
internal static extern void OutputDebugString(string message);