dotnet / dotnet/aspnetcore

Expand `AddPackageFixer` to multiple packages

Open
#56,092 0 comments 1 reaction 0 assignees View on GitHub
analyzer area-auth
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

https://github.com/dotnet/aspnetcore/pull/55963 introduces a codefixer that leverages the `AspNetCorePackageInstall` API to recommend that people install the `Microsoft.AspNetCore.OpenApi` package for invocations on its related extension methods.

We should expand this functionality to all packages that we ship out-of-band with the ASP.NET Core shared framework (`Authentication`-related packages).

Generalizing this implementation will require figuring out some way to scrape all extension methods on the repo and aggregating this data into a something we can funnel to the fixer.

Absent this, we can manually list out all the APIs and their associated packages explicitly (although we'll have to deal with some carpal tunnel after).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.