-
Notifications
You must be signed in to change notification settings - Fork 255
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
Improvements to the NuGet UI package selections in Visual Studio - Transitive package in the projects list should not be selected by default #13940
Comments
I agree with both of your points (in fact I found this by checking before raising them myself), though I suspect you may get better traction if they were separate issues - one for not auto-selecting transitive references, and one for filtering by target framework. |
Hi! Thank you for your feedback, I agree with you on the not auto select transitive references, for number one I think it's a duplicate of #6566. Since you already have some traction in this ticket, I'll suggest editing the description to just mention the "not auto select transitive references". |
@martinrrm - I suspect you linked the wrong issue, because this is 13940. |
Updated the issue link |
1 is #5725 |
In my case a lot of the times I have some solution with a project hierarchy like this: Project.Mvc If the dependency is transitive in .Mvc and .Console only because it is being referenced in .Common, it would never make sense to have update add the reference to all three when just updating .Common would resolve all. On the other hand there may be times where the transitive dependency path is external to the solution and maybe it's transitive in .Mvc and .Console, but not the common library, then it may make sense to offer it, especially if there's a vulnerability. |
It would be great to see the transitive selection problem fixed. It makes updating packages very tedious having to unselect projects all of the time. |
NuGet Product(s) Affected
Visual Studio Package Management UI
Current Behavior
I just had to manually update dozens of NuGet packages (mostly the latest
8.*.*
Microsoft packages) for dozens of projects in a single solution.. each package one-by-one.. VERY time consuming, and I reckon there are 2 things that can be improved to save time in these situationsDesired Behavior
We didn't want to update to .NET 9 packages yet.. only the latest
8.*.*
packages. There should be a way to filter packages by specified .NET target framework, so we can bulk update all packages to whatever we want. So in our case, we're targeting .NET 8, so all latest8.*.*
packages should show.. not any .NET 9 packages.When updating a NuGet package, the default checked projects should ONLY include those where the package is top-level, not transitive. We have almost 200 projects in the solution and it's annoying when updating a NuGet package auto selects all projects whether it's top-level or transitive. Maybe a dropdown to select "all/none/top-level only" would be good here? Otherwise just don't auto select the transitive ones, please. Unless maybe transitive is all there is for the selected package.
Additional Context
No response
The text was updated successfully, but these errors were encountered: