Skip to content

Commit bc6f26f

Browse files
committed
Improve ILLinker analyzer suppression
1 parent ee30d31 commit bc6f26f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
55
</PropertyGroup>
66

7-
<!-- Workaround for .NET 6.0.x regression (see https://github.com/dotnet/linker/issues/2642) -->
8-
<PropertyGroup>
9-
<NoWarn>AD0001</NoWarn>
10-
</PropertyGroup>
11-
127
<PropertyGroup>
138
<Title>.NET Community Toolkit - MVVM</Title>
149
<Description>
@@ -41,8 +36,10 @@
4136

4237
<!-- Enable trimming support on .NET 6 -->
4338
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
44-
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
4539
<IsTrimmable>true</IsTrimmable>
40+
41+
<!-- Workaround for .NET 6.0.x regression (see https://github.com/dotnet/linker/issues/2642), enable again when fixed in SDK -->
42+
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
4643
</PropertyGroup>
4744

4845
<!-- Source generator project reference for packing -->

0 commit comments

Comments
 (0)