如何引用JSON序列化的ClassLibrary? [英] How to reference JSON serialization in ClassLibrary?

查看:109
本文介绍了如何引用JSON序列化的ClassLibrary?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要什么库参考使用 System.Web.Script.Serialization 类库

What library I need to reference to use System.Web.Script.Serialization in Class Library?

的System.Web 已经被引用,但使用 System.Web.Script.Serialization ;还是失败了。目标框架是4.0。在WebApplication的项目,一切都很好。

System.Web has been already referenced but using System.Web.Script.Serialization; still failed. Target Framework is 4.0. In WebApplication project everything is fine.

推荐答案

System.Web.Extensions程序是你需要引用的程序集。

System.Web.Extensions is the assembly you need to reference.

有关备查,这些信息可以在大多数MSDN文档页面发现。它是直属继承层次结构中:

For future reference, this information can be found on the majority of the MSDN Documentation pages. It is found directly under the Inheritance Hierarchy:

命名空间:System.Web.Script.Serialization

大会:System.Web.Extensions程序(在System.Web.Extensions.dll)

Namespace: System.Web.Script.Serialization
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)

MSDN - 类的JavaScriptSerializer

这篇关于如何引用JSON序列化的ClassLibrary?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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