Centralize trimming settings in .targets file
このコミットが含まれているのは:
1 親
e4f2aba9c8
コミット
783e81d0ff
6ファイル変更
+10
-30
検索条件に一致するファイルはありません
@@ -15,12 +15,6 @@
|
||||
<InternalsVisibleTo Include="ComputeSharp.D2D1" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Enable trimming support on .NET 6 -->
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- .NET Standard 2.0 polyfill packages -->
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
||||
<PackageReference Include="System.Memory" Version="4.5.5" />
|
||||
|
||||
@@ -33,12 +33,6 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Enable trimming support on .NET 6 -->
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Shared project with the trimmed down fork of TerraFX.Interop.Windows with just the D3D bindings -->
|
||||
<Import Project="..\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems" Label="Shared" />
|
||||
|
||||
|
||||
@@ -10,12 +10,6 @@
|
||||
<InternalsVisibleTo Include="ComputeSharp.Tests.Internals" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Enable trimming support on .NET 6 -->
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Reference to the main non-dynamic library-->
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ComputeSharp\ComputeSharp.csproj" />
|
||||
|
||||
@@ -6,12 +6,6 @@
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Enable trimming support on .NET 6 -->
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Reference to the main library-->
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ComputeSharp\ComputeSharp.csproj" />
|
||||
|
||||
@@ -13,12 +13,6 @@
|
||||
<InternalsVisibleTo Include="ComputeSharp.Tests.Internals" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Enable trimming support on .NET 6 -->
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ComputeSharp.Core\ComputeSharp.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -2,6 +2,16 @@
|
||||
<Project>
|
||||
<Import Project="..\Directory.Build.targets" />
|
||||
|
||||
<Target Name="ConfigureAssemblyTrimmingIfNeeded"
|
||||
BeforeTargets="PrepareForBuild">
|
||||
|
||||
<!-- Enable trimming support on .NET 6 -->
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
|
||||
<!--
|
||||
The following target has been ported from TerraFX.Interop.Windows.
|
||||
See: https://github.com/terrafx/terrafx.interop.windows.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする