Reflections - How to load unloaded dependencies
I'm loading assemblies using reflections. When loading some assemblies it throws as exception saying that
"Could not load file or assembly 'MyAssemblyname, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"MyAssemblyname, Version=184.108.40.206, Culture=neutral, PublicKeyToken=null"
This is Ok because there is a dependency(assembly) which the original assembly refers and which was not loaded.
My question is how can I load the unloaded assembly by identifying these dependencies dynamically when an assembly failed to load due to these kind of dependencies.