Centralize [SupportedOSPlatform] settings in .targets file

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-08 00:04:23 +02:00
1 親 783e81d0ff
コミット 0ab1d3db30
9ファイル変更
+15 -12

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

+1
ファイルの表示
@@ -3,6 +3,7 @@
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<OutputPath>bin\Release</OutputPath>
<DocumentationFile>ComputeSharp.D2D1.xml</DocumentationFile>
<SupportedOSVersion>windows6.1</SupportedOSVersion>
</PropertyGroup>
<ItemGroup>
-3
ファイルの表示
@@ -1,3 +0,0 @@
using System.Runtime.Versioning;
[assembly: SupportedOSPlatform("windows6.1")]
+1
ファイルの表示
@@ -4,6 +4,7 @@
<OutputPath>bin\Release</OutputPath>
<DocumentationFile>ComputeSharp.Dynamic.xml</DocumentationFile>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<SupportedOSVersion>windows6.2</SupportedOSVersion>
</PropertyGroup>
<ItemGroup>
-3
ファイルの表示
@@ -1,3 +0,0 @@
using System.Runtime.Versioning;
[assembly: SupportedOSPlatform("windows6.2")]
+1
ファイルの表示
@@ -4,6 +4,7 @@
<OutputPath>bin\Release</OutputPath>
<DocumentationFile>ComputeSharp.Pix.xml</DocumentationFile>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<SupportedOSVersion>windows6.2</SupportedOSVersion>
</PropertyGroup>
<!-- Reference to the main library-->
-3
ファイルの表示
@@ -1,3 +0,0 @@
using System.Runtime.Versioning;
[assembly: SupportedOSPlatform("windows6.2")]
+1
ファイルの表示
@@ -3,6 +3,7 @@
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<OutputPath>bin\Release</OutputPath>
<DocumentationFile>ComputeSharp.xml</DocumentationFile>
<SupportedOSVersion>windows6.2</SupportedOSVersion>
</PropertyGroup>
<ItemGroup>
-3
ファイルの表示
@@ -1,3 +0,0 @@
using System.Runtime.Versioning;
[assembly: SupportedOSPlatform("windows6.2")]
+11
ファイルの表示
@@ -12,6 +12,17 @@
</PropertyGroup>
</Target>
<Target Name="EmitSupportedOSVersionAttributeForTargetOS"
BeforeTargets="PrepareForBuild">
<!-- Emit the [SupportedOSVersion] attribute if needed -->
<ItemGroup Condition="'$(SupportedOSVersion)' != ''">
<AssemblyAttribute Include="System.Runtime.Versioning.SupportedOSPlatformAttribute">
<_Parameter1>$(SupportedOSVersion)</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Target>
<!--
The following target has been ported from TerraFX.Interop.Windows.
See: https://github.com/terrafx/terrafx.interop.windows.