title: Using App.config in unit Test
body: <p>We are developing a c# web application in which we are using some third party libs which are referencing different versions of Newtonsoft. 
  In the web.config we have the same config section as in the example below. It works as expected.</p>
  
  <p>But when we try to execute the unit test we get following error:</p>
  
  <p><strong>System.IO.FileLoadException : Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</strong></p>
  
  <p>In our Visual Studio solution we have multiple projects for unit testing. I have created a app.config file (content below). This file is renamed and copied to the output folder during build.</p>
  
  <p>Do I have to do this for every test project?</p>
  
  <p>App.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"/&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0-9.0.0.0" newVersion="9.0.0.0"/&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>