Adding System.Web.Script reference in class library

前端 未结 2 358
后悔当初
后悔当初 2020-12-02 14:10

I am currently moving code from my app_code folder to a class library. I have tagged several methods with [System.Web.Script.Serialization.ScriptIgnore] attrib

相关标签:
2条回答
  • 2020-12-02 14:27

    You need to add a reference to System.Web.Extensions.dll in project for System.Web.Script.Serialization error.

    0 讨论(0)
  • 2020-12-02 14:37

    The ScriptIgnoreAttribute class is in the System.Web.Extensions.dll assembly (Located under Assemblies > Framework in the VS Reference Manager). You have to add a reference to that assembly in your class library project.

    You can find this information at top of the MSDN page for the ScriptIgnoreAttribute class.

    0 讨论(0)
提交回复
热议问题