Solved

Does the GAC hold copies the actual assembly dll files?

Posted on 2009-07-09
5
392 Views
Last Modified: 2013-12-06
Does the GAC hold copies the actual physical assembly dll files or GAC just holds reference to assembly files? or
Is it that the CODEBASE points to the actual physical file?
0
Comment
Question by:thermalsun
  • 2
  • 2
5 Comments
 
LVL 39

Expert Comment

by:Kyle Abrahams
Comment Utility
Holds the copy of the actual DLLs.

You need to overwrite them when you have a new version.
0
 
LVL 39

Expert Comment

by:Kyle Abrahams
Comment Utility
FYI: Directory is %windir%\assembly
0
 
LVL 1

Author Comment

by:thermalsun
Comment Utility
if it holds the actual copy then why does codebase saves location from where the actual file was dragged and dropped in assembly folder?
0
 
LVL 23

Accepted Solution

by:
Admin3k earned 250 total points
Comment Utility
GAC does hold actual copies of the file, but they are not directly accessible from Windows explorer.
when you drag / drop an assembly to assembly folder , you are just registering it in the GAC not copying it to the root of C:\windows\assembly .
.NET preserves a particular folder structure that is used by the .NET runtime & also to avoid direct tampering with assemblies for security purpoes.
try browsing C:\windows\assembly through CMD to see the structure for yourself


0
 
LVL 23

Expert Comment

by:Admin3k
Comment Utility
The Wikipedia link below ihas explained it better.
http://en.wikipedia.org/wiki/Global_Assembly_Cache
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
I recently had to create a utility which aim is to update McAfee's Virusscan and that had to be launched from a command line. I thought I’d share my experience with you. Why is it useful to be able to update an Antivirus from the command line?…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

10 Experts available now in Live!

Get 1:1 Help Now