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?
LVL 1
HLRosenbergerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
According to this:

http://msdn.microsoft.com/en-us/library/wkze6zky%28v=VS.90%29.aspx

you can't. Perhaps you can clarify what you mean by "the GAC"? By default, when you add a reference to a library, .NET tries to load it from the GAC first; then it looks in the application's current directory.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
käµfm³d 👽Commented:
P.S.

Take note that I said "load" and not "reference" in my last statement  = )
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

HLRosenbergerAuthor Commented:
Ah, it looks in the GAC first.  So what should I reference in my project?  
dr_linuxCommented:
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.
HLRosenbergerAuthor Commented:
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?  
HLRosenbergerAuthor Commented:
Thanks.  I understand.
käµfm³d 👽Commented:
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.
HLRosenbergerAuthor Commented:
Thanks.  That explains it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.