如何引用JSON序列化的ClassLibrary? [英] How to reference JSON serialization in 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)
这篇关于如何引用JSON序列化的ClassLibrary?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!