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

Loading…
Cancel
Save