title: How to use GAC assembly with specific version in C# app
body: <p>I have 2 GAC assemblies called AAA (version 1.0.0.0 and version 2.0.0.0). The application currently is using version 1 (reference added by Browse-for-assembly, path is hardcoded to this file), but I want to use version 2.</p>
  
  <p>To do it smoothly, I added some code to app.config: </p>
  
  <pre><code>&lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="AAA"
            publicKeyToken="dd8b40231cb0196b"
            culture="en-us" /&gt;
          &lt;!-- Assembly versions can be redirected in app, 
            publisher policy, or machine configuration files. --&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" /&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>But application still is using version 1.0.0.0 of assembly, why?</p>