Get GAC Entries Using the Public Key

Is there a way to check all assemblies in the GAC and return a list of assembly names with the specified public key token at runtime? I know the public key of all the GAC assemblies that interest me at boot, but I don't necessarily know the names or version numbers.

+3
source share
1 answer

Once upon a time, but I think the public key is part of the directory names in which the assemblies are stored. Therefore, perhaps you can simply skip all the subdirectories in the Assembly folder and see if any of the subdirectories contains a public key. It is clear that the sub dir format is similar to version_somethingIcan'tRemember_publicKey.

, Windows Explorer Assembly, -. , Assembly, , , .

+1

Source: https://habr.com/ru/post/1751261/


All Articles