Not a duplicate of:
The other question does not talk about removing one single package from all the projects inside solution.
What is the command to uninstall a specific package from all projects inside a solution?
Visual studio GUI still seems to be naive to support these features.
What is the command to uninstall a specific package from all projects inside a solution?
You can use following command line in the Package Manager Console:
Get-Project -All | Uninstall-Package <package name>
If this package have dependencies, you can add option -RemoveDependencies
in above command line.
Visual studio GUI still seems to be naive to support these features.
Right-click your solution > Manage NuGet Packages for Solution...
, switch to the Install
tab, select the package which you want to uninstall, then you can check the first checkbox, all the check boxes would be selected, click the uninstall button:
This package will uninstall from all projects in the solution.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With