No System.Web In VS2010
Asked Answered
D

1

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.

Dylan answered 30/4, 2010 at 22:27 Comment(0)
G
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.

Greengrocer answered 30/4, 2010 at 22:29 Comment(3)
Thanks (can accept answer only in 10 minutes :S). What is client profile?Dylan
From MSDN: "The .NET Framework 4 Client Profile is a subset of the .NET Framework 4 that is optimized for client applications." msdn.microsoft.com/en-us/library/cc656912.aspxGreengrocer
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.Calx

© 2022 - 2024 — McMap. All rights reserved.