Solved

Adding reference to a module that is stored in the GAC

Posted on 2013-02-01
1
243 Views
Last Modified: 2013-02-07
How do you add an assembly that is already stored in the GAC to your application while developing in Visual Studio? I know normally you just right click on the project and add reference but the GAC is a special place and seems to block you from using any module.
0
Comment
Question by:metro156
1 Comment
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 38846565
Hi,

click on "Start" and enter "run" (or use the hotkey Windows+R).
Now enter the path to the GAC e.g.
"C:\Windows\assembly\gac_msil"
Then browse to the subfolder of your requested DLL and when you found it, copy the complete path from the top of the window.
Now in Visual Studio click on "Add reference", "Browse" and paste the path.

(alternative: Using a cmd, navigating to the dll and use e.g. xcopy to copy the dll to another folder)

Happy programming ;-)

HTH
Rainer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now