Skip to content

Commit a163efe

Browse files
committed
fix
1 parent fa28a6c commit a163efe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Runtime/Versioning/PlatformAttributes.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@
44

55
namespace System.Runtime.Versioning
66
{
7-
#if !NET5_0 || NET5_0_WINDOWS
7+
#if !(NET6_0 || NET6_0_ANDROID || NET6_0_IOS || NET6_0_MACCATALYST || NET6_0_MACOS10_14 || NET6_0_WINDOWS || NET7_0 || NET7_0_ANDROID || NET7_0_IOS || NET7_0_MACCATALYST || NET7_0_MACOS10_14 || NET7_0_WINDOWS)
88
abstract class OSPlatformAttribute : Attribute
99
{
1010
private protected OSPlatformAttribute(string platformName)
1111
{
1212
PlatformName = platformName;
1313
}
14+
1415
public string PlatformName { get; }
1516
}
16-
#endif
17-
18-
#if !(NET6_0 || NET6_0_ANDROID || NET6_0_IOS || NET6_0_MACCATALYST || NET6_0_MACOS10_14 || NET6_0_WINDOWS || NET7_0 || NET7_0_ANDROID || NET7_0_IOS || NET7_0_MACCATALYST || NET7_0_MACOS10_14 || NET7_0_WINDOWS)
1917

2018
/// <summary>
2119
/// Annotates a custom guard field, property or method with a supported platform name and optional version.

0 commit comments

Comments
 (0)