Nuget "already has a reference to"

nuget, visual-studio

Solution

When running the solution under TFS, make sure the $(SolutionDir)\Packages\repositories.config file is checked out for edit.

Try the following:

Uninstall-Package NUnit -Force

Verify the Tests.Functional.csproj file (using notepad) no longer has any Reference to NUnit (if it still does, manually delete them, the project file probably got corrupted somehow).

Then run the following commandl:

Install-Package NUnit

Problem

Tests.Functional is selected from the `Default project:` drop down. ``` PM> install-package nunit 'NUnit 2.6.0.12054' already installed. Tests.Functional already has a reference to 'NUnit 2.6.0.12054'. ``` Yet Nunit does not show up in References for Tests.Functional in the Solution Explorer. Tried reloading VS.Net (2010) and updating Nuget. Am I missing something?

Original source