<Target Name="RemoveDuplicateAnalyzers" BeforeTargets="CoreCompile">
<RemoveDuplicates Inputs="@(Analyzer)">
<Output TaskParameter="Filtered" ItemName="FilteredAnalyzer" />
</RemoveDuplicates>
<ItemGroup>
<Analyzer Remove="@(Analyzer)" />
<Analyzer Include="@(FilteredAnalyzer)" />
</ItemGroup>
</Target>
标签:RemoveDuplicateAnalyzers
From: https://www.cnblogs.com/renzhe-org/p/16728978.html