title: App config for dynamically loaded assemblies
body: <p>I'm trying to load modules into my application dynamically, but I want to specify separate app.config files for each one.</p>
  
  <p>Say I have following app.config setting for main app:</p>
  
  <pre><code>&lt;appSettings&gt;
    &lt;add key="House" value="Stark"/&gt;
    &lt;add key="Motto" value="Winter is coming."/&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>And another for library that I load using <code>Assembly.LoadFrom</code>:</p>
  
  <pre><code>&lt;appSettings&gt;
    &lt;add key="House" value="Lannister"/&gt;
    &lt;add key="Motto" value="Hear me roar!"/&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>Both libraries have a class implementing the same interface, with the following method:</p>
  
  <pre><code>public string Name
  {
      get { return ConfigurationManager.AppSettings["House"]; }
  }
  </code></pre>
  
  <p>And sure enough calls to <code>Name</code> from both main class and loaded assembly class output <code>Stark</code>.</p>
  
  <p>Is there a way to make main app use its own app.config and each loaded assembly use theirs? Names of config files are different in the output, so that should be possible I think.</p>