Skip to content

Commit 6cb49cd

Browse files
ban-danaFreeAndNil
authored andcommitted
Fix DllImport attribute for OutputDebugString function
1 parent ec7a56d commit 6cb49cd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/log4net/Util/NativeMethods.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,7 @@ internal static extern int FormatMessage(
139139
/// Stub for OutputDebugString native method
140140
/// </summary>
141141
/// <param name="message">the string to output</param>
142-
#if NETSTANDARD2_0_OR_GREATER
143-
[DllImport("CoreDll.dll")]
144-
#else
145142
[DllImport("Kernel32.dll")]
146-
#endif
147143
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
148144
internal static extern void OutputDebugString(string message);
149145

0 commit comments

Comments
 (0)