'Newtonsoft' could not be found

守給你的承諾、 提交于 2019-12-17 03:20:53

问题


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?



回答1:


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




回答2:


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

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




回答3:


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

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




回答4:


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



来源:https://stackoverflow.com/questions/40416569/newtonsoft-could-not-be-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!