msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Analyzer for redundant NuGet packages

Open KirillOsenkov opened this issue 1 year ago • 2 comments

SDK has been moving some NuGet references in the box, such as Microsoft.NetFramework.ReferenceAssemblies or Microsoft.SourceLink.AzureRepos.Git (etc)

If a codebase has an explicit package reference to, say, Microsoft.SourceLink.AzureRepos.Git 1.0.0, it will inherit an older version, that has this bug: https://github.com/dotnet/sdk/issues/37027

Would be nice to have an analyzer that detects this and suggests to remove an explicit reference, so that the built-in version takes precedence (that no longer has this bug)

KirillOsenkov avatar Jun 12 '24 01:06 KirillOsenkov