title: Upgrade EFCore: Could not load file or assembly System.ValueTuple, Version=0.0.0.0
body: <p>I'm trying to upgrade EFCore 1.1 to EFCore 2.1</p>
  
  <p>After a long journey of "Could not load assembly" and a bunch of NuGet updates, I'm facing what I think is the last wall before the accomplishment. </p>
  
  <blockquote>
    <p>Could not load file or assembly 'System.ValueTuple, Version=0.0.0.0,
    Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its
    dependencies. The located assembly's manifest definition does not
    match the assembly reference. (Exception from HRESULT: 0x80131040)</p>
  </blockquote>
  
  <p>I've tried what I found there:
  <a href="https://stackoverflow.com/questions/45978173/system-valuetuple-version-0-0-0-0-required-for-add-migration-on-net-4-6-1-cla">&#39;System.ValueTuple, Version=0.0.0.0 required for Add-Migration on .NET 4.6.1 Class Library</a> </p>
  
  <p>No success.</p>
  
  <p>On the official Git, they propose to add those line in the app.config:</p>
  
  <pre><code>&lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" /&gt;
  &lt;/dependentAssembly&gt;
  </code></pre>
  
  <p>No success either.</p>
  
  <p>If I remove System.ValueTuple from the nuget packages, I have the exact same error.</p>
  
  <p>It's like some dll, I don't know which one, is trying to load the ValueTuple from an unexisting location. I don't even know why it is looking for version 0.</p>
  
  <p>At this point, I have no idea what to do. I've tried tons of stuff I found on the internet, but I'm facing a deadend.</p>
  
  <p>Any help is appreciated.</p>
  
  <p><strong>Targeted Framework</strong>: 4.7 </p>
  
  <p><strong>EFCore version</strong>: 2.1 </p>
  
  <p><strong>EFCore packages</strong>: Core, Abstractions, Analyzers, Design, InMemory (for test solution), Relational, SqlServer, Tools </p>
  
  <p><strong>System.ValueTuple</strong>: 4.4.0</p>
  
  <p><strong>.NetStandard</strong>: 2.0.3</p>