Add [SupportedOSPlatform] to all assemblies
このコミットが含まれているのは:
1 親
af71ac1902
コミット
a9b1afe9de
24ファイル変更
+51
-11
検索条件に一致するファイルはありません
@@ -15,6 +15,8 @@
|
||||
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeHelpers.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)..\ComputeSharp.NetStandard\System\Runtime\InteropServices\NativeMemory.cs" Link="System\Runtime\InteropServices\NativeMemory.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)..\ComputeSharp.NetStandard\System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs" Link="System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)..\ComputeSharp.NetStandard\System\Runtime\Versioning\OSPlatformAttribute.cs" Link="System\Runtime\Versioning\OSPlatformAttribute.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)..\ComputeSharp.NetStandard\System\Runtime\Versioning\SupportedOSPlatformAttribute.cs" Link="System\Runtime\Versioning\SupportedOSPlatformAttribute.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingExtensions.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,3 +1,6 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
[module: SkipLocalsInit]
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.1")]
|
||||
@@ -4,7 +4,6 @@
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DocumentationFile>ComputeSharp.Dynamic.xml</DocumentationFile>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<NoWarn>$(NoWarn);CA1416</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Enable trimming support on .NET 6 -->
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Tests.Internals")]
|
||||
@@ -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>
|
||||
@@ -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)
|
||||
|
||||
+3
@@ -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)
|
||||
@@ -0,0 +1,3 @@
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
@@ -3,7 +3,6 @@
|
||||
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DocumentationFile>ComputeSharp.xml</DocumentationFile>
|
||||
<NoWarn>$(NoWarn);CA1416</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Enable trimming support on .NET 6 -->
|
||||
|
||||
@@ -7,8 +7,6 @@ using ComputeSharp.Core.Extensions;
|
||||
using ComputeSharp.Graphics.Extensions;
|
||||
using TerraFX.Interop.Windows;
|
||||
|
||||
#pragma warning disable CA1416
|
||||
|
||||
namespace ComputeSharp.Graphics.Helpers;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Pix")]
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Uwp")]
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする