How do I add System.Web as a reference if I cant find it in the list of references?

我只是一个虾纸丫 提交于 2019-12-01 03:07:32

My crystal ball says you are using VS2010. Project + Properties, Application tab, Target framework setting. Change it from the client profile to the regular version.

System.Web is not included in the client profile, that's why you can't find it. Don't worry about the difference, the client profile is only 15% smaller than the regular version. There's very little point to it.

It took me some time to find out:

  1. Project properties
  2. Click on the Tab Application
  3. In the "Target Framework" drop down, be sure to select ".NET Framework 4" and not the one with the suffix "Client Profile"

for more information:

http://msdn.microsoft.com/en-us/library/cc656912.aspx

The reason you can't find the System.Web is the first sentence:

The .NET Framework 4 Client Profile is a subset of the .NET Framework 4

So, some of the functionality doesn't exists in the client profile, like System.Web.

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