From 54738a8c58823999873f430a921bc620f597f77c Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Tue, 27 Apr 2021 08:45:20 +0200 Subject: [PATCH] Make EventSourceAutoGenerateAttribute conditional to not be emitted into output assembly --- .../src/System/Diagnostics/Tracing/EventSource.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs index 398b1f9a128b27..552878213779c2 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs @@ -186,6 +186,7 @@ namespace Microsoft.Diagnostics.Tracing #else namespace System.Diagnostics.Tracing { + [Conditional("NEEDED_FOR_SOURCE_GENERATOR_ONLY")] [AttributeUsage(AttributeTargets.Class)] internal sealed class EventSourceAutoGenerateAttribute : Attribute {