File tree Expand file tree Collapse file tree 5 files changed +7
-14
lines changed Expand file tree Collapse file tree 5 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 1414 <PackageTags >Incremental;Loading;Collection;IncrementalLoadingCollection;String;Array;Extensions;Helpers</PackageTags >
1515 </PropertyGroup >
1616
17- <!-- .NET Standard 2.1 and .NET 6 already have [NotNullIfNotNull] and [NotNullWhen].
18- Additionally, also enable trimming support on .NET 6. -->
17+ <!-- .NET Standard 2.1 and .NET 6 already have [NotNullIfNotNull] and [NotNullWhen] -->
1918 <PropertyGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
2019 <DefineConstants >NETSTANDARD2_1_OR_GREATER</DefineConstants >
21- <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
22- <IsTrimmable >true</IsTrimmable >
2320 </PropertyGroup >
2421
2522</Project >
Original file line number Diff line number Diff line change 3838 <When Condition =" '$(TargetFramework)' == 'net6.0'" >
3939 <PropertyGroup >
4040 <DefineConstants >NETSTANDARD2_1_OR_GREATER</DefineConstants >
41- <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
42- <IsTrimmable >true</IsTrimmable >
4341 </PropertyGroup >
4442 </When >
4543 </Choose >
Original file line number Diff line number Diff line change 5151 Additionally, also enable trimming support on .NET 6. -->
5252 <PropertyGroup >
5353 <DefineConstants >NETSTANDARD2_1_OR_GREATER</DefineConstants >
54- <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
55- <IsTrimmable >true</IsTrimmable >
5654 </PropertyGroup >
5755 </When >
5856
Original file line number Diff line number Diff line change 3434 <PackageReference Include =" System.Runtime.CompilerServices.Unsafe" Version =" 6.0.0" />
3535 </ItemGroup >
3636
37- <!-- Enable trimming support on .NET 6 -->
38- <PropertyGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
39- <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
40- <IsTrimmable >true</IsTrimmable >
41- </PropertyGroup >
42-
4337 <!-- Reference the various multi-targeted versions of the source generator project (one per Roslyn version) -->
4438 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
4539 <ProjectReference Include =" ..\CommunityToolkit.Mvvm.SourceGenerators.Roslyn401\CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.csproj" ReferenceOutputAssembly =" false" />
Original file line number Diff line number Diff line change 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+
2026</Project >
You can’t perform that action at this time.
0 commit comments