Skip to content

Commit 9d9de23

Browse files
committed
Move trimming properties to .targets file in src\
1 parent 17fc0da commit 9d9de23

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build/Community.Toolkit.Common.targets

-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,4 @@
1717
<None Include="$(RepositoryDirectory)ThirdPartyNotices.txt" Pack="true" PackagePath="\" Visible="False" />
1818
</ItemGroup>
1919

20-
<!-- Configure trimming for core projects on .NET 6 and above -->
21-
<PropertyGroup Condition="'$(IsCoreProject)' == 'true' AND ('$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net7.0')">
22-
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
23-
<IsTrimmable>true</IsTrimmable>
24-
</PropertyGroup>
25-
2620
</Project>

src/Directory.Build.targets

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<Project>
33
<Import Project="..\Directory.Build.targets" />
44

5+
<!-- Configure trimming for projects on .NET 6 and above -->
6+
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net7.0'">
7+
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
8+
<IsTrimmable>true</IsTrimmable>
9+
</PropertyGroup>
10+
511
<!--
612
The following target has been ported from TerraFX.Interop.Windows.
713
See: https://github.com/terrafx/terrafx.interop.windows.

0 commit comments

Comments
 (0)