Uninstall packages and all their dependencies at once

2

Is there any way I can 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 do I do it?

Edit1

I did this and I can not uninstall

  

Uninstall-Package PackageName -RemoveDependencies

Then I tried to uninstall the package NETStandard.Library.1.6.1 and I received the following message: Package NETStandard.Library.1.6.1 could not be found.

    
asked by anonymous 05.01.2018 / 17:43

1 answer

2

Use the command:

Uninstall-Package NomeDoPacote –RemoveDependencies

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

Source: marcusoft.net

    
05.01.2018 / 18:04