Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / October 2006

Tip: Looking for answers? Try searching our database.

VS.NET Add reference to GAC assemblies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken Varn - 09 Oct 2006 21:05 GMT
Is there any particular reason why VS.NET 2003 does not list assemblies in
the GAC when trying to add a reference?

I understand that there is a special area in the registry where assemblies
need to be listed in order for VS.NET to show them in the Add Reference
dialog, but I don't understand why it was not designed to just list all
assemblies in the GAC outright instead of having to have them in a registry
listing..

Signature

-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Carlos J. Quintero [VB MVP] - 10 Oct 2006 15:10 GMT
The bottom line is that GAC is a deployment feature, not a development
feature. During development you don't have to mess with the GAC. Only when
you are ready to build the setup, you decide if your DLLs are shared among
apps and therefore they go to the GAC.

See for example:

http://dotnetjunkies.com/WebLog/anoras/archive/2005/11/29/134046.aspx

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> Is there any particular reason why VS.NET 2003 does not list assemblies in
> the GAC when trying to add a reference?
[quoted text clipped - 5 lines]
> registry
> listing..
javatopia - 19 Oct 2006 16:12 GMT
Hi,

VS2003 caches the GAC contents. So, if you have VS running, open the "Add
Reference" dialog, then later install some assemblies into the GAC, they will
*NOT* show up in the "Add Reference" dialog. Very frustrating, to be sure.

This is fixed in VS2005 from what I can tell.

Carlos' advice about the GAC is solid. Avoid trying to reference any GAC
assemblies that you own in your development projects during the course of
development. That will cause you grief in the long run. Having tight control
over what assemblies are being reference in your projects may make your life
easier as a programmer.

Signature

Jacob W Anderson
---
http://www.beyond-ordinary.com
http://www.accessquery.com
---
If you think it''s expensive to hire a professional to do the job, wait
until you hire an amateur.

> The bottom line is that GAC is a deployment feature, not a development
> feature. During development you don't have to mess with the GAC. Only when
[quoted text clipped - 14 lines]
> > registry
> > listing..

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.