cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
esiemiat
Level 9

Installing to the GAC

I have an installer that installs file directly to the GAC. It appears to be working but a developer is questioning why the files are not in the applicaiton's BIN folder as well. Before I reply I want to make sure I understand how this works.

If installed to the GAC should a file only exist in the GAC? Should I install the file to both the BIN folder and the GAC?
Labels (1)
0 Kudos
(1) Reply
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

If you only added a file to your project in the GAC, it will only be installed to the GAC folder. To install to another folder, you can add the file to the other folder in your project and leave the existing file in the GAC folder.

One thing to note, from my understanding, is the .NET framework will only load one copy of the assembly (see How the Runtime Locates Assemblies).
0 Kudos