Proj0812: Remove redundant packages references that are globally referenced
When using Central Package Management,
it is possible to define (private) global package references with the use of
<GlobalPackageReference> in the Directory.Packages.props file.
Including package references with <PackageReference> that are already
referenced through a <GlobalPackageReference> is redundant.
Non-compliant
<Project>
<ItemGroup>
<GlobalPackageReference Include="DotNetProjectFile.Analyzers" Vesion="1.8.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DotNetProjectFile.Analyzers" />
</ItemGroup>
</Project>
Compliant
<Project>
<ItemGroup>
<GlobalPackageReference Include="DotNetProjectFile.Analyzers" Vesion="1.8.0" />
</ItemGroup>
</Project>