Solved

Adding reference to a module that is stored in the GAC

Posted on 2013-02-01
1
242 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

16 Experts available now in Live!

Get 1:1 Help Now