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)
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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With