title: .NET Core 3.1 - Could not load file or assembly System.Runtime, Version=4.2.2.0
body: <p>.NET Core 3.1 console app generates error during build -</p>
  
  <blockquote>
    <p>System.IO.FileNotFoundException: Could not load file or assembly
    'System.Runtime, Version=4.2.2.0, Culture=neutral,
    PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file
    specified.</p>
  </blockquote>
  
  <p>But it works on .NET Core 3.0 version. </p>
  
  <p>I'm using Microsoft.Orleans. This is csproj - </p>
  
  <pre><code>    &lt;Project Sdk="Microsoft.NET.Sdk"&gt;
    &lt;PropertyGroup&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;netcoreapp3.1&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.Orleans.Core" Version="3.0.2" /&gt;
      &lt;PackageReference Include="Microsoft.Orleans.OrleansCodeGenerator.Build" Version="3.0.2"&gt;
        &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
        &lt;IncludeAssets&gt;runtime; build; native; contentfiles; analyzers; buildtransitive&lt;/IncludeAssets&gt;
      &lt;/PackageReference&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>