[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

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?
0
HLRosenberger
Asked:
HLRosenberger
1 Solution
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now