-
Notifications
You must be signed in to change notification settings - Fork 252
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
Warn when using deprecated Nuget packages #12244
Comments
@kevinoid
@nkolev92 |
There's no dups. This is the first ask I'm aware of. Removing the irrelevant labels as this is not a security thing. |
I think this should also warn when using an unlisted package version. Use case: #11883 (comment) |
NuGet Product(s) Involved
dotnet.exe
The Elevator Pitch
NuGet could warn .NET SDK users when they use (e.g. install or restore) a deprecated package, as Visual Studio does, so that they can consider taking appropriate action
Additional Context and Details
@zijchen reported this issue a year ago in dotnet/sdk#22635 and was instructed to report it here. I was unable to find a corresponding issue, and am also interested in this feature, so I'm opening this issue to suggest it.
A concrete example, from the original issue, using the deprecated WindowsAzure.Storage package does not produce any warnings or indications to the user that the package is deprecated:
It would be nice if a numbered NuGet Warning were produced to inform users and allow monitoring (e.g. failing CI with warn-as-error builds).
Thanks for considering,
Kevin
The text was updated successfully, but these errors were encountered: