Skip to content

Commit 4bd01e5

Browse files
committed
Remove OSPlatformAttribute generated attribute
1 parent 1f06271 commit 4bd01e5

7 files changed

+21
-37
lines changed

src/PolySharp.SourceGenerators/EmbeddedResources/Compatibility/System.Runtime.Versioning.OSPlatformAttribute.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/PolySharp.SourceGenerators/EmbeddedResources/Compatibility/System.Runtime.Versioning.ObsoletedOSPlatformAttribute.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ namespace System.Runtime.Versioning
2626
AttributeTargets.Struct,
2727
AllowMultiple = true, Inherited = false)]
2828
[global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")]
29-
internal sealed class ObsoletedOSPlatformAttribute : OSPlatformAttribute
29+
internal sealed class ObsoletedOSPlatformAttribute : Attribute // OSPlatformAttribute
3030
{
3131
public ObsoletedOSPlatformAttribute(string platformName)
32-
: base(platformName)
32+
// : base(platformName)
3333
{
3434
}
3535

3636
public ObsoletedOSPlatformAttribute(string platformName, string? message)
37-
: base(platformName)
37+
// : base(platformName)
3838
{
3939
Message = message;
4040
}

src/PolySharp.SourceGenerators/EmbeddedResources/Compatibility/System.Runtime.Versioning.SupportedOSPlatformAttribute.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ namespace System.Runtime.Versioning
3030
AttributeTargets.Struct,
3131
AllowMultiple = true, Inherited = false)]
3232
[global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")]
33-
internal sealed class SupportedOSPlatformAttribute : OSPlatformAttribute
33+
internal sealed class SupportedOSPlatformAttribute : Attribute // OSPlatformAttribute
3434
{
35-
public SupportedOSPlatformAttribute(string platformName) : base(platformName)
35+
public SupportedOSPlatformAttribute(string platformName)
36+
// : base(platformName)
3637
{
3738
}
3839
}

src/PolySharp.SourceGenerators/EmbeddedResources/Compatibility/System.Runtime.Versioning.SupportedOSPlatformGuardAttribute.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ namespace System.Runtime.Versioning
2222
AttributeTargets.Property,
2323
AllowMultiple = true, Inherited = false)]
2424
[global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")]
25-
internal sealed class SupportedOSPlatformGuardAttribute : OSPlatformAttribute
25+
internal sealed class SupportedOSPlatformGuardAttribute : Attribute // OSPlatformAttribute
2626
{
27-
public SupportedOSPlatformGuardAttribute(string platformName) : base(platformName)
27+
public SupportedOSPlatformGuardAttribute(string platformName)
28+
// : base(platformName)
2829
{
2930
}
3031
}

src/PolySharp.SourceGenerators/EmbeddedResources/Compatibility/System.Runtime.Versioning.TargetPlatformAttribute.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ namespace System.Runtime.Versioning
1212
/// </summary>
1313
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
1414
[global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")]
15-
internal sealed class TargetPlatformAttribute : OSPlatformAttribute
15+
internal sealed class TargetPlatformAttribute : Attribute // OSPlatformAttribute
1616
{
17-
public TargetPlatformAttribute(string platformName) : base(platformName)
17+
public TargetPlatformAttribute(string platformName)
18+
// : base(platformName)
1819
{
1920
}
2021
}

src/PolySharp.SourceGenerators/EmbeddedResources/Compatibility/System.Runtime.Versioning.UnsupportedOSPlatformAttribute.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ namespace System.Runtime.Versioning
2727
AttributeTargets.Struct,
2828
AllowMultiple = true, Inherited = false)]
2929
[global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")]
30-
internal sealed class UnsupportedOSPlatformAttribute : OSPlatformAttribute
30+
internal sealed class UnsupportedOSPlatformAttribute : Attribute // OSPlatformAttribute
3131
{
32-
public UnsupportedOSPlatformAttribute(string platformName) : base(platformName)
32+
public UnsupportedOSPlatformAttribute(string platformName)
33+
// : base(platformName)
3334
{
3435
}
35-
public UnsupportedOSPlatformAttribute(string platformName, string? message) : base(platformName)
36+
public UnsupportedOSPlatformAttribute(string platformName, string? message)
37+
// : base(platformName)
3638
{
3739
Message = message;
3840
}
41+
3942
public string? Message { get; }
4043
}
4144
}

src/PolySharp.SourceGenerators/EmbeddedResources/Compatibility/System.Runtime.Versioning.UnsupportedOSPlatformGuardAttribute.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ namespace System.Runtime.Versioning
2222
AttributeTargets.Property,
2323
AllowMultiple = true, Inherited = false)]
2424
[global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")]
25-
internal sealed class UnsupportedOSPlatformGuardAttribute : OSPlatformAttribute
25+
internal sealed class UnsupportedOSPlatformGuardAttribute : Attribute // OSPlatformAttribute
2626
{
27-
public UnsupportedOSPlatformGuardAttribute(string platformName) : base(platformName)
27+
public UnsupportedOSPlatformGuardAttribute(string platformName)
28+
// : base(platformName)
2829
{
2930
}
3031
}

0 commit comments

Comments
 (0)