简体   繁体   中英

How do I uninstall *a* package from all projects in solution

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM