Enterprise Library Caching 5.0 with Unity 4.0 doesn't build
<p>I am migrating from Unity 2.0 to 4.0 because I need to upgrade to PRISM 6 which supports Unity >=4.0. The problem I am encountering is that EnterpriseLibrary 5.0 was built agaisnt Unity 2.0 and when I am trying to build the project I'm getting:</p>

<blockquote>
  <p>Error 68  The type 'Microsoft.Practices.Unity.UnityContainerExtension'
  is defined in an assembly that is not referenced. You must add a
  reference to assembly 'Microsoft.Practices.Unity, Version=2.0.414.0,
  Culture=neutral, PublicKeyToken=31bf3856ad364e35'.</p>
</blockquote>

<p>Here:</p>

<pre><code>  container.AddNewExtension&lt;EnterpriseLibraryCoreExtension&gt;();
</code></pre>

<p>I tried to create a <code>bindingRedirect</code></p>

<pre><code>  &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="Microsoft.Practices.Unity" publicKeyToken="31bf3856ad364e35" /&gt;
        &lt;bindingRedirect oldVersion="2.0.414.0" newVersion="4.0.0.0" /&gt;
      &lt;/dependentAssembly&gt;
</code></pre>

<p>It looks like <code>publicKeyToken</code> has been changed in >=Unity 4.0. How can I make it work?</p>