Is it possible to Load an assembly from the GAC without the FullName?
问题 I know how to load an assembly from a filename, and also from the GAC. As My .msi file will put a dll project into the GAC, I'm wondering if it's possible to load it from the GAC unknowing the FullName (I mean just with the assembly name, or even the dll filename), because I have to Load this assembly from another project. 回答1: Here is a piece of code that allows to do this, and an exemple: string path = GetAssemblyPath("System.DirectoryServices"); Assembly.LoadFrom(path); Note if you need a