6

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.

Abhijeet
  • 13,562
  • 26
  • 94
  • 175

1 Answers1

17

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:

enter image description here

This package will uninstall from all projects in the solution.

Hope this helps.

Leo Liu
  • 71,098
  • 10
  • 114
  • 135