Can't install NuGet packages that require Newtonsoft.Json.10.0.1 in Visual Studio 2015

I'm having a problem installing NuGet packages that require Newtonsoft.Json.10.0.1 I recently installed it and when I try to install the packages it needs I get this error:

Severity    Code    Description Project File    Line
Error       An error occurred while retrieving package metadata for 'Newtonsoft.Json.10.0.1' from source 'C:\Users\Sharon Umute\documents\visual studio 2015\Projects\sermon\packages'.         0

      

I tried upgrading to Newtonsoft.Json.10.0.2 and adding the path to environment variables, but I keep getting the same error. I checked the path, Newtonsoft.Json.10.0.2 folder contains libs, tools and Newtonsoft.Json.10.0.1.nupkg. I would really appreciate help with this.

+3


source to share


3 answers


I had a similar problem while installing System.Net.Http. Just remove the line that refers to Newtonsoft.Json in packages.config. He solved my problem



+6


source


I had this problem while trying to update my packages and resolve them by upgrading to Newtonsoft.Json version 10.0.1.

In the package manager run:



Install-Package Newtonsoft.Json -Version 10.0.1

      

After that all my other packages were able to update.

+2


source


open pack.config file, delete <package id="Newtonsoft.Json"..>

then update it

0


source







All Articles