Hi all,
there is a lot of examples how to load all dependencies from some assembly like:
var assembly = Assembly.ReflectionOnlyLoadFrom(assemblyPath);
foreach (var assemblyName in assembly.GetReferencedAssemblies()) {
try {
Assembly.ReflectionOnlyLoad(assemblyName.FullName);
} catch {
Assembly.ReflectionOnlyLoadFrom(Path.Combine(Path.GetDirectoryName(assemblyPath), assemblyName.Name + ".dll"));
}
}
but what if one of dependencies is not ".dll" but ".exe" ? Do I need for that ".exe" assembly again to call recursivly GetReferencedAssemblies() in foreach loop ? Is there a danger of getting circular dependancy ?
br, Milan