VS2010 reference dll is missing from the list

天涯浪子 提交于 2020-01-06 08:29:07

问题


I'm trying to add System.Web.Extensions.dll to my C# console application so I can parse JSON. I'm using VS2010.

When I right click -> Add reference though it does not list the dll. However when I search for the file on my computer it does exist.

Please advise on the proper way to add this dll.


回答1:


Right click on your project and go to properties.

In the Target framework drop down ensure that you have ".NET Framework 4" selected and not ".NET Framework 4 Client Profile".

When you have Client Profile selected it will filter out the server side dlls like System.Web and System.Web.Extensions



来源:https://stackoverflow.com/questions/4731282/vs2010-reference-dll-is-missing-from-the-list

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!