0

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

4
  • When you right-click on the solution and select "Restore NuGet packages", does that help? Commented Sep 5, 2017 at 15:10
  • nope it didn't help, i tried it several times. Cleaned the solution rebuild it but the same problem i'm having Commented Sep 5, 2017 at 15:18
  • Delete the packages folder and retry restore packages. (Make sure to keep a backup of solution) Commented Sep 5, 2017 at 15:35
  • The version you are installing 1.0.7 is different to the version 1.0.5 in the error message. I would open your .csproj file into a text editor and see if there is a reference to the 1.0.5 version which is not being used by the project. Commented Sep 5, 2017 at 16:11

4 Answers 4

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

0

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

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.