HLRosenberger
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
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?
ASKER
Thanks. I understand.
Everything in the .NET tab is in your GACThat 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.
ASKER
Thanks. That explains it.
Take note that I said "load" and not "reference" in my last statement = )