Browse Source

Use Trace.Listeners instead of Debug.Listeners

They are the same thing, and the latter one is available for net6.0
pull/2555/head
SilverFox 4 years ago
parent
commit
c5a7f04506
  1. 6
      ILSpy/ILSpyTraceListener.cs

6
ILSpy/ILSpyTraceListener.cs

@ -31,10 +31,8 @@ namespace ICSharpCode.ILSpy
[Conditional("DEBUG")] [Conditional("DEBUG")]
public static void Install() public static void Install()
{ {
#if NET472 Trace.Listeners.Clear();
Debug.Listeners.Clear(); Trace.Listeners.Add(new ILSpyTraceListener());
Debug.Listeners.Add(new ILSpyTraceListener());
#endif
} }
public ILSpyTraceListener() public ILSpyTraceListener()

Loading…
Cancel
Save