Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

How do a add a reference to an object in the GAC?

Using Visual Studio, how do a add a reference to an object in the GAC?
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
P.S.

Take note that I said "load" and not "reference" in my last statement  = )
Avatar of HLRosenberger

ASKER

Ah, it looks in the GAC first.  So what should I reference in my project?  
Right click on your project and select 'Add Reference'  then select your object from the .NET tab.  Everything in the .NET tab is in your GAC.  If you are trying to add an object to the GAC that is another method, but it can be done.
I'm seeing a third party DLL that is in the GAC - I can see it in \windows\assembly folder - but not in the .NET tab.   Is that normal?  
Thanks.  I understand.
Everything in the .NET tab is in your GAC
That is an inaccurate statement. Files listed on this tab could also be located in one of the folders specified by the entries in the registry (mentioned in the link I provided), which may or may not be in the GAC.
Thanks.  That explains it.