How to uninstall nuget packages at once, including dependencies

0

There is a way to uninstall nuget packages at once, without having to look for or waiting to give the error to know which dependency to uninstall and then go uninstalled one by one.

If I select everything and give a Del then go to the Packages folder and delete everything and then in the Package.config, is this a headache or not?

    
asked by anonymous 26.10.2017 / 20:35

1 answer

1

Only use –RemoveDependencies .

PM> Uninstall-Package NomeDoPacote –RemoveDependencies
  

If I select everything and give a Del then go to the Packages folder and delete everything and then in the Package.config, is this a headache or not?

No, this is exactly what nuget does. Remove the project reference, delete the folder in packages and then remove it from the file packages.config .

    
26.10.2017 / 20:44