views:

233

answers:

2

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

Any ideas?

Thanks.

+7  A: 

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
Thanks (can accept answer only in 10 minutes :S). What is client profile?
TTT
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
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
A: 

Hi Alon,

We've created Visual Studio extension that lists all assemblies in the GAC

alt text

The Add GAC Reference dialog box automatically display every assembly in the Global Assembly Cache (GAC)

You can download it from here

Give it a try and let me know if it's helpful

The fastest dialog for adding a reference. Oh, It's free :)

Muse VSExtensions
This doesn't seem related to the question.
Noah Richards
I want to apologize for the misunderstanding. I did not realize that the problem was already solved. Muse VSReferences allows you to add reference to assembly which is not included in the client profile.Once again, I apologize for the misunderstanding.
Muse VSExtensions