'Newtonsoft' could not be found

2019-01-03 18:14发布

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

4条回答
Anthone
2楼-- · 2019-01-03 18:37

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

查看更多
该账号已被封号
3楼-- · 2019-01-03 18:40

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

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-01-03 18:44

For me i had package already installed but missing in references and it could not be added. Helped me: in Nuget package manager to downgrade and upgrade newtonsoft.Json

查看更多
看我几分像从前
5楼-- · 2019-01-03 18:51

You have to get the correct NuGet package. From your link:

enter image description here

You can open the NuGet package manager in: Tools -> Nuget Packet Manager -> Manage Nuget Packages for Solution..

查看更多
登录 后发表回答