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?
 
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.
0
 
käµfm³d 👽Commented:
P.S.

Take note that I said "load" and not "reference" in my last statement  = )
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
HLRosenbergerAuthor Commented:
Ah, it looks in the GAC first.  So what should I reference in my project?  
0
 
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.
0
 
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?  
0
 
HLRosenbergerAuthor Commented:
Thanks.  I understand.
0
 
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.
0
 
HLRosenbergerAuthor Commented:
Thanks.  That explains it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.