Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove references on extensions

I am using Visual Studio .NET 2012 and NuGet to manage the References for my ASP.NET MVC 4 solution.

How can I remove a Reference created via NuGet? I know I could just go and delete it via right-click, Remove. However, this seems dangerous to me, as referenced packages may have brought in other dependencies of their own.

In my main project, I right-clicked References->Manage NuGet Packages and installed Moq (please see screenshot below)

Manage NuGet Packages

However, I was not able to reference Moq in my Tests.

I realized that the Guestbook.Tests Project that was created when I created my ASP.NET MVC 4 solution, and it has its own References.

So I added Moq here, but I would like to cleanup and remove Moq from my main Guestbook Project.

Could anyone please point me in the right direction of how to do this safely?

Thank you very much in advance!

like image 615
Philip Tenn Avatar asked Mar 05 '13 19:03

Philip Tenn


1 Answers

The easiest way is to go to the TOOLS -> Library Package Manager -> Package Manager Console and enter the following:

Uninstall-Package Moq

You should always use the package manager rather than just deleting files so that it cleans everything up including anything you might miss.

like image 91
Ryan Gates Avatar answered Oct 10 '22 23:10

Ryan Gates