Enumerate all installed versions of an assembly (in GAC)
问题 Is it possible to enumerate all installed versions of an assembly in GAC using C#? For example I have the assembly named "My.Assembly". The assembly may come in various versions ("1.0.0.0", "2.3.4.5", "0.1.2.4", ...) and may be compiled for various platforms (x86, x64, Any CPU). Now I need a way to determine which of the versions/platforms are installed. I'm aware that I could enumerate the directories in GAC but that seems wrong. There should be a better way to do this. Background I have a