Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I've been having problem installing NuGet packages that require Newtonsoft.Json.10.0.1 I just recently installed it and when ever I try installing packages that need it, 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've checked the path, the Newtonsoft.Json.10.0.2 folder contains lib, tools, and Newtonsoft.Json.10.0.1.nupkg. I'd really appreciate some help with this.

like image 342
Drew U Avatar asked Dec 03 '22 22:12

Drew U


1 Answers

I had a similar problem when installing System.Net.Http. Simply remove the line that references Newtonsoft.Json in packages.config. It solved my problem

like image 124
Talebian Avatar answered Apr 18 '23 18:04

Talebian