According to blame on the OutputDebugStringAppender.cs, it used to be under #if NETCF which later was changed to #if NETSTANDARD_2_0_OR_GREATER. Normally, OutptuDebugString comes from kernel32.dll so this breaks this appender for any modern .net