How to uninstall nuget packages at once, including dependencies

Asked

Viewed 425 times

0

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

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

1 answer

1


Only use –RemoveDependencies.

PM> Uninstall-Package NomeDoPacote –RemoveDependencies

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

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

  • LINQ, missed a -force, but I will consider your response.

Browser other questions tagged

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