Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Newtonsoft' could not be found

Tags:

I pasted the code from http://www.codeproject.com/Tips/789481/Bridging-the-Gap-between-Linqpad-and-Visual-Studio into Visual Studio 15. It tells me that 'Newtonsoft' could not be found. I open the folder "\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies" and found that the file Newtonsolft.Json.dll is already there. Could anyone tell me how to fixed problem?


enter image description here

like image 300
Ben Tam Avatar asked Nov 04 '16 06:11

Ben Tam


People also ask

Is Newtonsoft JSON compatible with .NET core?

Text. Json library is included in the runtime for . NET Core 3.1 and later versions. For other target frameworks, install the System.

What is Newtonsoft JSON in C#?

The Newtonsoft. JSON namespace provides classes that are used to implement the core services of the framework. It provides methods for converting between . NET types and JSON types.

How do I find Newtonsoft JSON DLL version?

I would check the version of Newtonsoft. Json in the bin directory of the start up project. If Newtonsoft. Json is there and it is the version you are expecting, then you can use Fuslogvw (https://msdn.microsoft.com/en-us/library/e74a18c4(v=vs.110).aspx) to see where the loader is trying to get the 4.0.


2 Answers

Solution Explorer->Right Click on Project Name -> Click on Manage Nuget Packages -> Search for newtonsoft -> Click on install button

like image 87
vivek nuna Avatar answered Oct 06 '22 03:10

vivek nuna


Go to Tools -> Library Package Manager -> Package Manager Console

enter image description here

and in the console just write Install-Package Newtonsoft.Json -Version 9.0.1

enter image description here

like image 28
Mohit S Avatar answered Oct 06 '22 02:10

Mohit S