Following code iterates over all referenced assemblies of MyAssembly.dll. How can I output the physically filename of the referenced assemblies? So how can I get the filename of an AssemblyName-Object?
Assembly myAssembly = Assembly.LoadFile(@"C:\MyAssembly.dll");
foreach (AssemblyName lRefAsm in myAssembly.GetReferencedAssemblies())
{
...
}
E.g. the ToString()-method of AssemblyName only outputs things like this:
System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
An I don't find any property which gives me the filename.
Aucun commentaire:
Enregistrer un commentaire