Skip to content

Commit 32e0430

Browse files
committed
Workaround for dotnet/wpf#6792
1 parent bc85fe0 commit 32e0430

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Directory.Build.Targets

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@
1818
<Page Update="@(Page)" SubType="Designer" Generator="MSBuild:Compile" />
1919
</ItemGroup>
2020

21+
<Target Name="RemoveDuplicateAnalyzers" BeforeTargets="CoreCompile">
22+
<!-- Work around https://github.com/dotnet/wpf/issues/6792 -->
23+
24+
<ItemGroup>
25+
<FilteredAnalyzer Include="@(Analyzer->Distinct())" />
26+
<Analyzer Remove="@(Analyzer)" />
27+
<Analyzer Include="@(FilteredAnalyzer)" />
28+
</ItemGroup>
29+
</Target>
30+
2131
</Project>

0 commit comments

Comments
 (0)