Remove Nuget Package

Oct 11, 2011 at 6:51 PM

Sorry if this has been discussed before. I did a couple of searches and didn't come up with anything. 

I went to remove a Nuget created assembly reference from my project. It is simple to remove a single reference manually. Unfortunately. Nuget pulled in a bunch of dependent assemblies when the package was installed and now I have do not know which assemblies to remove. Is there anything existing or on the roadmap to accomplish this. Most package managers have a way to remove installed packages.

Developer
Oct 11, 2011 at 6:59 PM

From the console:

Uninstall-Package {package id} will remove the uninstall package

Uninstall-Package {package id} -RemoveDependencies will remove everything that came with that package (unless another package is using a dependency)

From the Dialog:

Go to the installed tab and click uninstall. In NuGet 1.5 it'll ask you if you want to remove dependencies as well.

You can read more here:

http://docs.nuget.org/

Oct 11, 2011 at 7:59 PM
Egg on face. Thank you.

On Tue, Oct 11, 2011 at 1:59 PM, dfowler <notifications@codeplex.com> wrote:

From: dfowler

From the console:

Uninstall-Package {package id} will remove the uninstall package

Uninstall-Package {package id} -RemoveDependencies will remove everything that came with that package (unless another package is using a dependency)

From the Dialog:

Go to the installed tab and click uninstall. In NuGet 1.5 it'll ask you if you want to remove dependencies as well.

You can read more here:

http://docs.nuget.org/