Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

Does the GAC hold copies the actual assembly dll files?

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
thermalsun
Asked:
thermalsun
  • 2
  • 2
1 Solution
 
Kyle AbrahamsSenior .Net DeveloperCommented:
Holds the copy of the actual DLLs.

You need to overwrite them when you have a new version.
0
 
Kyle AbrahamsSenior .Net DeveloperCommented:
FYI: Directory is %windir%\assembly
0
 
thermalsunAuthor Commented:
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
 
Mohamed OsamaSenior IT ConsultantCommented:
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
 
Mohamed OsamaSenior IT ConsultantCommented:
The Wikipedia link below ihas explained it better.
http://en.wikipedia.org/wiki/Global_Assembly_Cache
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now