JSON没有命名空间中系统存在 [英] Json does not exist in the namespace System
问题描述
在本教程中:<一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屋!