dotnet list package should warn when restore is not current #13703
Labels
Area:NuGetAudit
Functionality:ListPackage
dotnet.exe list package
Priority:2
Issues for the current backlog.
Product:dotnet.exe
Type:Feature
NuGet Product(s) Involved
dotnet.exe
The Elevator Pitch
dotnet list package
gets "actual" package usage from NuGet's assets file, which is created on restore. Which means that if a customer restores a project, then edits the project to change a package version, or add/remove a package reference, then runsdotnet list package
without restoring, it will show incorrect information, and the customer will not know why.dotnet list package
should show a message when the project restore isn't up-to-dateAdditional Context and Details
dotnet list package
already loads the project file via MSBuild APIs (hence why it only works with SDK style projects that thedotnet
CLI can build/evaluate), meaning we already have the data to do a restore no-op check.The text was updated successfully, but these errors were encountered: