From 10f531faba2d5cf9e1e350bada5fb863ea66d33f Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 21 Jan 2023 18:37:09 +0100 Subject: [PATCH] Add missing MULTI_TARGETING_SUPPORT_ATTRIBUTES attributes --- ...stem.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute.cs | 1 + ...untime.CompilerServices.DisableRuntimeMarshallingAttribute.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/PolySharp.SourceGenerators/EmbeddedResources/RuntimeSupported/System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute.cs b/src/PolySharp.SourceGenerators/EmbeddedResources/RuntimeSupported/System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute.cs index f05322b..982cf11 100644 --- a/src/PolySharp.SourceGenerators/EmbeddedResources/RuntimeSupported/System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute.cs +++ b/src/PolySharp.SourceGenerators/EmbeddedResources/RuntimeSupported/System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute.cs @@ -19,6 +19,7 @@ namespace System.Diagnostics.CodeAnalysis global::System.AttributeTargets.Constructor | global::System.AttributeTargets.Class, Inherited = false)] + [global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")] internal sealed class RequiresDynamicCodeAttribute : global::System.Attribute { /// diff --git a/src/PolySharp.SourceGenerators/EmbeddedResources/RuntimeSupported/System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute.cs b/src/PolySharp.SourceGenerators/EmbeddedResources/RuntimeSupported/System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute.cs index 2910ae2..8d344ee 100644 --- a/src/PolySharp.SourceGenerators/EmbeddedResources/RuntimeSupported/System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute.cs +++ b/src/PolySharp.SourceGenerators/EmbeddedResources/RuntimeSupported/System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute.cs @@ -25,6 +25,7 @@ namespace System.Runtime.CompilerServices /// - LCIDConversionAttribute support is disabled. /// [global::System.AttributeUsage(global::System.AttributeTargets.Assembly, Inherited = false, AllowMultiple = false)] + [global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")] internal sealed class DisableRuntimeMarshallingAttribute : global::System.Attribute { }