JSON没有命名空间中系统存在 [英] Json does not exist in the namespace System

查看:135
本文介绍了JSON没有命名空间中系统存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本教程中:<一href=\"http://www.asp.net/web-api/videos/getting-started/custom-validation\">http://www.asp.net/web-api/videos/getting-started/custom-validation乔恩使用

dynamic error = new JsonObject();

using System.Json;

我想这是对的JSONObject这里:<一href=\"http://msdn.microsoft.com/en-us/library/system.json.jsonobject(v=vs.110).aspx\">http://msdn.microsoft.com/en-us/library/system.json.jsonobject(v=vs.110).aspx位于:


  • 命名空间:System.Json

  • 大会:System.Runtime.Serialization(以System.Runtime.Serialization.dll)

我添加System.Runtime.Serialization的引用,但仍然无法找到System.Json。

I've added System.Runtime.Serialization a reference but still cannot find System.Json.

是我读微软的文档错了吗? (我使用.NET 4.5)

Am I reading the Microsoft docs wrong? (I'm using .NET 4.5)

推荐答案

试试这个:

PM> Install-Package System.Json -Version 4.0.20126.16343

每页: http://nuget.org/packages/System.Json

它的工作!

如果您对如何添加进入的NuGet code疑问,请点击以下链接:
<一href=\"http://docs.nuget.org/docs/start-here/using-the-package-manager-console\">http://docs.nuget.org/docs/start-here/using-the-package-manager-console

If you have questions on how to add enter nuget code, please follow the link below: http://docs.nuget.org/docs/start-here/using-the-package-manager-console

这篇关于JSON没有命名空间中系统存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆