Add [SupportedOSPlatform] to all assemblies

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-07 21:01:59 +02:00
1 親 af71ac1902
コミット a9b1afe9de
24ファイル変更
+51 -11

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -24,6 +24,6 @@
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\OSPlatformAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\SupportedOSVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\SupportedOSPlatformAttribute.cs" />
</ItemGroup>
</Project>
+3 -1
ファイルの表示
@@ -1,12 +1,14 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace System.Runtime.Versioning;
/// <summary>
/// Base type for all platform-specific API attributes.
/// </summary>
[Conditional("DEBUG")]
internal abstract class OSPlatformAttribute : Attribute
{
private protected OSPlatformAttribute(string platformName)
@@ -1,6 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace System.Runtime.Versioning;
/// <summary>
@@ -26,6 +28,7 @@ namespace System.Runtime.Versioning;
AttributeTargets.Struct,
AllowMultiple = true,
Inherited = false)]
[Conditional("DEBUG")]
internal sealed class SupportedOSPlatformAttribute : OSPlatformAttribute
{
public SupportedOSPlatformAttribute(string platformName)