Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i get the location of the GAC using C#?

Tags:

c#

.net

gac

How can i get the location of the GAC directory using C#?

Exist an entry in the Windows Registry?

UPDATE

I need the location because, i want to enumerate and analyze the assemblies located in the GAC.

Bye.

like image 680
RRUZ Avatar asked Mar 01 '23 04:03

RRUZ


1 Answers

If you want to enumerate the stuff in the GAC (e.g. writing an system administration tool) your best option is to use the fusion.dll although this requires some interop code on your side.

Link to Microsoft for Fusion.DLL Documentation

like image 129
Foxfire Avatar answered Mar 02 '23 19:03

Foxfire