Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyzer for redundant NuGet packages #10226

Open
KirillOsenkov opened this issue Jun 12, 2024 · 2 comments
Open

Analyzer for redundant NuGet packages #10226

KirillOsenkov opened this issue Jun 12, 2024 · 2 comments

Comments

@KirillOsenkov
Copy link
Member

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: dotnet/sdk#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)

@AR-May
Copy link
Member

AR-May commented Jun 18, 2024

Team triage: This is a good idea, ideally this would be a custom analyzer in sdk.

@baronfel
Copy link
Member

Agree with @AR-May - we should transfer to dotnet/SDK and apply the 'msbuild-analyzer-candidate' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants