[转]引用System.Runtime.Serialization.Json 提示 命名空间 不存在类型或命名空间名称 json

只引用一个System.Runtime.Serialization 是不够的,

还要添加 System.ServiceModel

System.ServiceModel.Web

的引用,OK

System.Runtime.Serialization.Json 出来了,可以开始对JSON字符串转为实体了。

命名空间 不存在类型或命名空间名称 json

原文地址:https://www.cnblogs.com/nangong/p/2864471.html