title: How do you instruct NUnit to load an assembly's dll.config file from a specific directory?
body: <p>If an assembly contains an app.config file, <code>ConfigurationManager</code> will load it as long as it is in the same directory as the NUnit project that is executing through NUnit-Gui.  To illustrate consider the following folder structure.</p>
  
  <pre><code>+ TestFolder
      testProject.nunit
    + AssemblyAFolder
        assemblyA.dll
        assemblyA.dll.config
    + AssemblyBFolder
        assemblyB.dll
        assemblyB.dll.config
  </code></pre>
  
  <p>Both <code>AssemblyA</code> and <code>AssemblyB</code> exercise code that calls into <code>ConfigurationManager</code>.  If I run these test assemblies independently in NUnit-Gui, <code>ConfigurationManager</code> will correctly resolve the local configuration files.</p>
  
  <p>However, if I load <code>testProject.nunit</code> into NUnit-Gui (which contains references to both <code>AssemblyA</code> and <code>AssemblyB</code>), <code>ConfigurationManager</code> looks for the configuration file in <code>TestFolder</code> regardless of which assembly is currently executing.</p>
  
  <p>Is there a way to direct NUnit to reload the application configuration to the one present in the current assembly's directory?</p>
  
  <p>Here are the contents of <code>testProject.nunit</code>:</p>
  
  <pre><code>&lt;NUnitProject&gt;
    &lt;Settings activeconfig="Debug" /&gt;
    &lt;Config name="Debug" binpathtype="Auto"&gt;
      &lt;assembly path="AssemblyAFolder\assemblyA.dll" /&gt;
      &lt;assembly path="AssemblyBFolder\assemblyB.dll" /&gt;
    &lt;/Config&gt;
  &lt;/NUnitProject&gt;
  </code></pre>