Centralize [SupportedOSPlatform] settings in .targets file
このコミットが含まれているのは:
1 親
783e81d0ff
コミット
0ab1d3db30
9ファイル変更
+15
-12
検索条件に一致するファイルはありません
@@ -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>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.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>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
@@ -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-->
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
@@ -3,6 +3,7 @@
|
||||
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DocumentationFile>ComputeSharp.xml</DocumentationFile>
|
||||
<SupportedOSVersion>windows6.2</SupportedOSVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
@@ -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.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする