title: Reflection.Net: how to load dependencies?
body: <p>I try to add an addons system to my Windows.Net application using Reflection; but it fails when there is addon with dependencie.<br><br>
  Addon class have to implement an interface 'IAddon' and to have an empty constructor.<br> 
  Main program load the addon using Reflection:</p>
  
  <pre><code>Assembly assembly = Assembly.LoadFile(@"C:\Temp\TestAddon\Addon.dll");
  Type t = assembly.GetType("Test.MyAddon");
  ConstructorInfo ctor = t.GetConstructor(new Type[] { });
  IAddon addon= (IAddon) ctor.Invoke(new object[] { });
  addon.StartAddon();
  </code></pre>
  
  <p>It works great when addon do not use dependencie.
  But if my addon reference and use an another DLL (C:\Temp\TestAddon\MyTools.dll) that is saved near the addon in disk, it fails: <br>
  <em>System.IO.FileNotFoundException: Could not load file or assembly 'MyTools.dll' or one of its dependencies.</em> </p>
  
  <p>I do not wants to copy the addons DLL near my executable, how can i do to tell .Net runtime to search in "C:\Temp\TestAddon\" for any dependency?</p>
  
  <p>Note that adding </p>
  
  <pre><code>Assembly assembly = Assembly.LoadFile(@"C:\Temp\TestAddon\MyTools.dll");
  </code></pre>
  
  <p>do not change anything.</p>