I'm getting the Product attribute from all the loaded assemblies in my application using:
AssemblyProductAttribute product
= (AssemblyProductAttribute)Attribute.GetCustomAttribute(
assembly, typeof(AssemblyProductAttribute));
I would like to get this attribute for all the assemblies that the currently loaded assemblies reference. However GetReferencedAssemblies() returns an array of AssemblyNames, so I can't use the above code to get the Product attribute.
Is there a way to get an Assembly object from an AssemblyName object, or a way to get the Product attribute from an AssemblyName?