From c5a7f04506b4019f2136abc17194268c3177591a Mon Sep 17 00:00:00 2001 From: SilverFox Date: Wed, 17 Nov 2021 20:03:57 +0800 Subject: [PATCH] Use Trace.Listeners instead of Debug.Listeners They are the same thing, and the latter one is available for net6.0 --- ILSpy/ILSpyTraceListener.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ILSpy/ILSpyTraceListener.cs b/ILSpy/ILSpyTraceListener.cs index 9f0e4ff6a..66bca5561 100644 --- a/ILSpy/ILSpyTraceListener.cs +++ b/ILSpy/ILSpyTraceListener.cs @@ -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()