5

In a WPF project, I'm trying to add System.Web as a reference but in Project -> Add Reference -> .NET there's no System.Web.

alt text http://img580.imageshack.us/img580/3406/addreference.png

Any ideas?

Thanks.

Community
  • 1
  • 1
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288

1 Answers1

15

Are you targeting the client profile rather than the full version of the framework?

I think the default target type in VS2010 for client applications (WPF, WinForms etc) is the client profile, which doesn't include System.Web.

LukeH
  • 263,068
  • 57
  • 365
  • 409
  • Thanks (can accept answer only in 10 minutes :S). What is client profile? – Alon Gubkin Apr 30 '10 at 22:32
  • From MSDN: "The .NET Framework 4 Client Profile is a subset of the .NET Framework 4 that is optimized for client applications." http://msdn.microsoft.com/en-us/library/cc656912.aspx – LukeH Apr 30 '10 at 22:35
  • 3
    Note that you can pick the target framework in the 'new project' dialog, or after creating a project, right click the project and select 'properties' and change the application's properties to choose the target framework you want. – Brian Apr 30 '10 at 22:42