Remove EventSourceAttribute usages when EventSource feature is disabled (#40329)
authorMarek Safar <marek.safar@gmail.com>
Thu, 6 Aug 2020 07:42:59 +0000 (09:42 +0200)
committerGitHub <noreply@github.com>
Thu, 6 Aug 2020 07:42:59 +0000 (09:42 +0200)
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml

index 1fc8020..8df05e6 100644 (file)
       <attribute internal="RemoveAttributeInstances" />
     </type>
   </assembly>
+
+  <assembly fullname="System.Private.CoreLib" feature="System.Diagnostics.Tracing.EventSource.IsSupported" featurevalue="false">
+    <type fullname="System.Diagnostics.Tracing.EventSourceAttribute">
+      <attribute internal="RemoveAttributeInstances" />
+    </type>
+    <type fullname="System.Diagnostics.Tracing.EventAttribute">
+      <attribute internal="RemoveAttributeInstances" />
+    </type>
+    <type fullname="System.Diagnostics.Tracing.EventDataAttribute">
+      <attribute internal="RemoveAttributeInstances" />
+    </type>
+    <type fullname="System.Diagnostics.Tracing.EventFieldAttribute">
+      <attribute internal="RemoveAttributeInstances" />
+    </type>
+    <type fullname="System.Diagnostics.Tracing.EventIgnoreAttribute">
+      <attribute internal="RemoveAttributeInstances" />
+    </type>
+    <type fullname="System.Diagnostics.Tracing.NonEventAttribute">
+      <attribute internal="RemoveAttributeInstances" />
+    </type>
+  </assembly>
 </linker>