Where can I find the assembly System.Web.Extensions dll?

后端 未结 5 1191
鱼传尺愫
鱼传尺愫 2020-11-30 01:25

I\'m messing around with some JSON and I\'m trying to use the JavascriptSeralizer Class but I cannot for the love of god find a link to find where to add the assembly to my

5条回答
  •  一整个雨季
    2020-11-30 01:49

    EDIT:

    The info below is only applicable to VS2008 and the 3.5 framework. VS2010 has a new registry location. Further details can be found on MSDN: How to Add or Remove References in Visual Studio.

    ORIGINAL

    It should be listed in the .NET tab of the Add Reference dialog. Assemblies that appear there have paths in registry keys under:

    HKLM\Software\Microsoft\.NETFramework\AssemblyFolders\
    

    I have a key there named Microsoft .NET Framework 3.5 Reference Assemblies with a string value of:

    C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\
    

    Navigating there I can see the actual System.Web.Extensions dll.

    EDIT:

    I found my .NET 4.0 version in:

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Extensions.dll
    

    I'm running Win 7 64 bit, so if you're on a 32 bit OS drop the (x86).

提交回复
热议问题