简体   繁体   English

Visual Studio 2010无法添加Newtonsoft.Json库

[英]Visual Studio 2010 cannot add Newtonsoft.Json Library

I've got a Problem with Visual Studio 2010 and the Newtonsoft.Json library. 我在Visual Studio 2010和Newtonsoft.Json库中遇到问题。

A few hours ago nothing was wrong with my project, but now it throws this error 几个小时前我的项目没有任何问题,但是现在它引发了此错误

The type or namespace name 'NewtonSoft "could not be found. (Missing a using directive or an assembly reference?) 找不到类型或名称空间名称“ NewtonSoft”。(缺少using指令还是程序集引用?)

--I just saw that the Reference was deleted and i can't re-add the NewtonSoft.Json library. -我只是看到参考已删除,所以我无法重新添加NewtonSoft.Json库。

You can use the package manager console to remove the package, if you're having trouble getting NuGet to uninstall or reinstall it using the GUI: 如果您无法使用GUI卸载或重新安装NuGet,可以使用软件包管理器控制台删除软件包。

Uninstall-Package Newtonsoft.Json

Be sure you've selected the right target project from the dropdown at the top of the console if your solution contains several projects. 如果您的解决方案包含多个项目,请确保从控制台顶部的下拉列表中选择了正确的目标项目。

确保项目目标的.NET Framework版本与Json.NET nuget软件包所需的版本相同或更高。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为 Visual Studio 2010 安装 Newtonsoft.json? - How do I install Newtonsoft.json for Visual Studio 2010? Visual Studio 2012项目-无法加载'Newtonsoft.Json' - Visual studio 2012 project - Not able to load 'Newtonsoft.Json' 使用 Newtonsoft.Json 库时无法序列化 ISession - Cannot serialize ISession when using Newtonsoft.Json library NewtonSoft.json 是第三方库吗? - Is NewtonSoft.json a third party library? 检测到Newtonsoft.Json的版本冲突。 直接安装/参考Newtonsoft.Json 11.0.2(Azure功能视觉工作室) - Version conflict detected for Newtonsoft.Json. Install/reference Newtonsoft.Json 11.0.2 directly (Azure functions visual studio) 在Newtonsoft.Json中添加多个合同解析器 - Add Multiple Contract Resolver in Newtonsoft.Json Newtonsoft.Json使用“添加”反序列化集合 - Newtonsoft.Json Deserialize Collection using “Add” 使用Newtonsoft.Json添加节点的层次结构 - Add hierarchy of nodes with Newtonsoft.Json 未提供 CheckId 时,如何在 Visual Studio 中抑制来自 Newtonsoft.Json 的警告? - How to suppress a warning from Newtonsoft.Json in Visual Studio when no CheckId is provided? Visual Studio 2012 Web API项目将无法运行 - 找不到Newtonsoft.Json - Visual Studio 2012 Web API project won't run - can't find Newtonsoft.Json
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM