Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Creating files in the GAC at runtime

$
0
0

Hi;

I'm working with a 3rd party product that has a managed assembly and two native DLLs - identical except one is x86 the other x64.

The managed assembly has these DLLs embedded as resources and when we load and invoke the assembly it extracts these dlls, creates disk files for them, and copies the embedded binary into the created files then loads one or the other a a native DLL.

The folder that it creates these files in is always the same as the folder from which the assembly itself was loaded, it creates either an x64 or x86 sub folder and that is where the native dll eventually appears.

This works fine - but it also seems to work when the assembly has been installed into the GAC - with process explorer I can see what seem to be actual folders created within the GAC "file system" and I am trying to find out if this is good or bad practice or if there are risks.

I am seeing what might be an oddity with Win 8 in that elevated permissions seem to be needed for this to work - but this is just a suspicion and hard to pin down.

Does anyone with expertise in this are have any views on this?

Thx

Cap'n


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>