Solved

Adding reference to a module that is stored in the GAC

Posted on 2013-02-01
1
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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 a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

705 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