Uninstall packages and all their dependencies at once

Asked

Viewed 472 times

2

Is there any way for me to uninstall Packages and all their dependencies in a single command? Without having to uninstall one by one. Type:

Unable to uninstall 'System.Net.Http. 4.3.3' because 'Netstandard.Library. 1.6.1' depends on it

How I do?

Edit1

I did that and I can’t uninstall

Uninstall-Package Namepackaging -Removedependencies

Then I tried to uninstall the package Netstandard.Library. 1.6.1 and received the following message: Package Netstandard.Library. 1.6.1 was not found.

1 answer

2


Use the command:

Uninstall-Package NomeDoPacote –RemoveDependencies

This command is responsible for removing the package and its dependencies. It is possible to use the command -Force at the end to force the removal.

Source: marcusoft.net

  • I edited and you posted at the same time, because in my Dit I said I did it. I just didn’t use force. I’ll try with -force. Worth LP Gonçalves.

  • Missed the -force. With it went.

  • It was not, the DLL continues there. I thought I had solved, closed and opened the Reference folder and continues. Gave error and got finished, but it’s still DLL.

  • A dll aparece ainda en Project References (Droid), but Nuget gave as removed and I’m not having more problems that I’ve been having. Well, it doesn’t matter to me

  • Does the application work? Strange these references have not been removed.

  • They were, because Nuget said it was successfully removed, but in references it still has their Name, maybe if I restart the VS or the Project it disappears, but it’s working my Proj, then leave it alone. It’s just that I installed it in Droid by accident, because it was only supposed to be on PCL, but there it’s giving way, I’m not getting it and I even opened a thread for it.

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.