Mobeen Rashid
Mobeen Rashid

Reputation: 13

The project references NuGet packages that are not on this computer

i'm getting following error when i build my solution in visual studio 2015. enter image description here

but when i try to add that particular package then visual studio show it already added

enter image description here

Upvotes: 0

Views: 453

Answers (4)

Cesar
Cesar

Reputation: 615

Use the following command in the Package Manage Console:

Update-Package -reinstall -Project YourProjectName

It is by project, but this way is garanteed it works, at least in 100% of cases that happen to me.

Upvotes: 0

ali zaib
ali zaib

Reputation: 99

Right click solution in visual studio and select "Restore Nuget Packages", it will download the missing packages

Upvotes: 0

Emily
Emily

Reputation: 142

Did you notice something? the version is different you need version 1.0.5 instead of 1.0.7

Upvotes: 1

kkost
kkost

Reputation: 3760

Open Nuget Package Manager and pick "Unistall" on this package, than istall it again. If this does not help you do next:

  1. Unload project and remove all reference on this package from .csproj file
  2. Remove reference on this package from Web.config (or App.config) if it there.
  3. Remove reference from packages.config file
  4. Install via nuget you package again.

Hope this helps you.

Upvotes: 0

Related Questions