How to get the list of all loaded assemblies ordered by dependencies
I know AppDomain.GetAssemblies
can be used to get all loaded assemblies of the current app but there is no guarantee of order remarked there. I need that list but also need to make sure that dependencies are listed before their host.