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 14
14
<PackageTags >Incremental;Loading;Collection;IncrementalLoadingCollection;String;Array;Extensions;Helpers</PackageTags >
15
15
</PropertyGroup >
16
16
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] -->
19
18
<PropertyGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
20
19
<DefineConstants >NETSTANDARD2_1_OR_GREATER</DefineConstants >
21
- <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
22
- <IsTrimmable >true</IsTrimmable >
23
20
</PropertyGroup >
24
21
25
22
</Project >
Original file line number Diff line number Diff line change 38
38
<When Condition =" '$(TargetFramework)' == 'net6.0'" >
39
39
<PropertyGroup >
40
40
<DefineConstants >NETSTANDARD2_1_OR_GREATER</DefineConstants >
41
- <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
42
- <IsTrimmable >true</IsTrimmable >
43
41
</PropertyGroup >
44
42
</When >
45
43
</Choose >
Original file line number Diff line number Diff line change 51
51
Additionally, also enable trimming support on .NET 6. -->
52
52
<PropertyGroup >
53
53
<DefineConstants >NETSTANDARD2_1_OR_GREATER</DefineConstants >
54
- <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
55
- <IsTrimmable >true</IsTrimmable >
56
54
</PropertyGroup >
57
55
</When >
58
56
Original file line number Diff line number Diff line change 34
34
<PackageReference Include =" System.Runtime.CompilerServices.Unsafe" Version =" 6.0.0" />
35
35
</ItemGroup >
36
36
37
- <!-- Enable trimming support on .NET 6 -->
38
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
39
- <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
40
- <IsTrimmable >true</IsTrimmable >
41
- </PropertyGroup >
42
-
43
37
<!-- Reference the various multi-targeted versions of the source generator project (one per Roslyn version) -->
44
38
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
45
39
<ProjectReference Include =" ..\CommunityToolkit.Mvvm.SourceGenerators.Roslyn401\CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.csproj" ReferenceOutputAssembly =" false" />
Original file line number Diff line number Diff line change 17
17
<None Include =" $(RepositoryDirectory)ThirdPartyNotices.txt" Pack =" true" PackagePath =" \" Visible =" False" />
18
18
</ItemGroup >
19
19
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
+
20
26
</Project >
You can’t perform that action at this time.
0 commit comments