Remove extension links

I am using Visual Studio .NET 2012 and NuGet for link management for my ASP.NET MVC 4 solution.

How to remove a link created using NuGet ? I know that I can just go and delete it by right-clicking Delete. However, this seems dangerous to me, because the packages mentioned may have brought other dependencies of their own.

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

Manage nuget packages

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

I realized that the Guestbook.Tests project, created when creating my ASP.NET MVC 4 solution, has its own References .

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

Can someone point me in the right direction how to do this safely?

Thank you in advance!

+6
source share
3 answers

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

Uninstall-Package Moq

You should always use the package manager, not just delete files so that it cleans everything, including everything that you might miss.

+7
source

Using the same screen as you shown above, select the installed packages, then find the MOQ link in which you should be able to manage / delete.

enter image description here

+4
source

You can use the package manager console with the command: Uninstall-Package PackageId to remove it, or simply remove the package folder from the "packages" folder in the solution folder. You can find more information about the package manager console here: http://docs.nuget.org/docs/reference/package-manager-console-powershell-reference

+2
source

All Articles