title: Couldn't load assembly because of mismatching build number
body: <p>Right now im restructuring my projects so I'll be able to target multiple frameworks.<br>
  Currently my solution is structured like this</p>
  
  <pre><code>MyProject (Solution)
      MyProject.Server (Project targeting net462)
      MyProject.Models (Project targeting netstandard2.0)
      MyProject.DataAccess (Project targeting netstandard2.0)
  </code></pre>
  
  <p>Models and DataAcces both reference <code>Pomelo.EntityFrameworkCore.MySql, Version=2.1.1.0</code> via NuGet.<br>
  Models holds my database models and the database context while DataAccess contains a UnitOfWork pattern.<br>
  This worked fine when all projects targeted netfx and used EntityFramework 6 for database connections.<br>
  The projects just build fine and I dont have any problems to start them (I should probably mention here, that my project is a type of resource for a multiplayer modification. The resource files get loaded like this <a href="https://github.com/GTANetworkDev/platform/blob/master/Server/Resources.cs#L198" rel="nofollow noreferrer">https://github.com/GTANetworkDev/platform/blob/master/Server/Resources.cs#L198</a> <code>ourResource.Info.Info.Shadowcopy</code> is in this case false).<br>
  But once my resource wants to open a connection to the database I get a kinda huge exception telling me that <code>System.ComponentModel.Annotations, Version=4.2.0.0</code> is unable to load because of a version mismatch (<a href="https://hastebin.com/wodojakure.log" rel="nofollow noreferrer">https://hastebin.com/wodojakure.log</a>).<br>
  The file <code>System.ComponentModel.Annotations.dll</code> exists but with following attributes</p>
  
  <pre><code>AssemblyVersion=4.2.1.0
  AssemblyFileVersion=4.6.26515.06
  </code></pre>
  
  <p>I've already tried using a <code>app.config</code> to rebind the assembly which failed, for a reason that I don't really know.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.ComponentModel.Annotations" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /&gt; 
          &lt;bindingRedirect oldVersion="0.0.0.0-4.2.1.0" newVersion="4.2.1.0" /&gt; 
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The app.config existed in the same folder where the other resource dlls are placed in and in the same folder where the server executable lays in.</p>