- How do I
uninstallapackage by id and versionfor all solutions and projects under a folder? - How do I
installapackage by id and versionfor all solutions and projects under a directory?
There is a package manager approach with somewhat Similar Post that shows how to do that for all projects under A solution. You can use Package Manager Console from solution and use this for one solution. But how to do the same across multiple solutions and projects under them?
You cannot get what you want at present.
To uninstall packages, you should only use Manage Nuget packages for solution UI or Package Manager Console to uninstall one package for one solution. You can not use it to uninstall a package for several solutions at the same time. VS IDE does not support it.
Suggestion
So you should open a solution each time and run this command on Package Manager Console:
Or use Manage Nuget Packages for Solution
Besides, If you still want this feature, I suggest you could suggest a feature on our User Voice Forum.
You can share the link with us here and anyone who is interested in it including us will vote it so that it will get more Microsoft's attention as soon as possible.