Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change VS2010 Add Reference box filter?

I'm getting used to the new IDE (it's vc# express), but the first contact is somewhat confusing. When I open the Add Reference dialog and switch to the .NET tab, a label above the assembly list states: "Filtered to:.NET Framework 4". And it's true - I can reference .NET 4.0 assemblies only plus things like XNA 3.1. However I can't see older assemblies i.e. Managed DirectX libs, which are obviously installed on my computer as there was no trouble with adding a ref to them in vc#08.

What is this? How to change the filter? The label is read-only. These sound like dull guy's questions, but I'm out of luck in finding an answer and there is no intuitive solution.

Thanks in advance.

like image 217
pbalaga Avatar asked Apr 16 '10 19:04

pbalaga


People also ask

How do I add a reference to Visual Studio project?

You can also right-click the project node and select Add > Project Reference. If you see a References node in Solution Explorer, you can use the right-click context menu to choose Add Reference. Or, right-click the project node and select Add > Reference.


2 Answers

Change your new application to target the .NET Framework 4 and not .NET Framework 4 Client

"When you create a new application, some projects target the .NET Framework 4 Client Profile by default."

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

"If you are targeting the .NET Framework 4 Client Profile, you cannot reference an assembly that is not in the .NET Framework 4 Client Profile. Instead you must target the .NET Framework 4. "

like image 173
Robert Williams Avatar answered Oct 16 '22 19:10

Robert Williams


We've created a tool that will help you to achieve your goal. Muse VSReferences will allow you to add a Global Assembly Cache reference to the project from Add GAC Reference menu item.

alt text

Regards

s

like image 20
BALKANGraph Avatar answered Oct 16 '22 18:10

BALKANGraph