title: Detected package downgrade: Microsoft.NETCore.App from 2.1.3 to 2.1.0
body: <p>I try to update my .net solution from .NET Core 1.1 to .NET Core 2.1. I have several .NET Core and .NET standard projects inside, which reference each other and another NuGet packages. After update 'dotnet resore' and 'dotnet build' commands work fine, but when i try to build my solution from visual studio, i get this error:</p>
  
  <blockquote>
    <p>Error NU1605  Detected package downgrade: Microsoft.NETCore.App from 2.1.3 to 2.1.0. Reference the package directly from the project to select a different version. </p>
  </blockquote>
  
  <p>And i see that indeed some of my projects have SDK reference to Microsoft.NETCore.App v2.1.0 and some of them v.2.1.3. Setting RuntimeFrameworkVersion and adding this package to dependencies explicitly doesn't work.</p>
  
  <p>How i can deal with this?</p>
  
  <p><strong>UPD:</strong>
  dotnet --info:</p>
  
  <pre><code>.NET Core SDK (reflecting any global.json):  Version:   2.1.401  Commit:    91b1c13032
  
  Runtime Environment:  OS Name:     Windows  OS Version:  10.0.17134  OS Platform: Windows  RID:         win10-x64  Base Path:   C:\Program Files\dotnet\sdk\2.1.401\
  
  Host (useful for support):   Version: 2.1.3   Commit:  124038c13e
  
  .NET Core SDKs installed:
    1.1.10 [C:\Program Files\dotnet\sdk]
    2.0.0 [C:\Program Files\dotnet\sdk]
    2.1.4 [C:\Program Files\dotnet\sdk]
    2.1.100 [C:\Program Files\dotnet\sdk]
    2.1.202 [C:\Program Files\dotnet\sdk]
    2.1.400 [C:\Program Files\dotnet\sdk]
    2.1.401 [C:\Program Files\dotnet\sdk]
  
  .NET Core runtimes installed:   Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]   Microsoft.AspNetCore.All 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]   Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]   Microsoft.AspNetCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]   Microsoft.NETCore.App
  1.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App 1.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App
  2.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App
  2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   Microsoft.NETCore.App
  2.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  
  To install additional .NET Core runtimes or SDKs:   https://aka.ms/dotnet-download
  </code></pre>
  
  <p><strong>UPD:</strong>
  Somehow issue disappears if i remove this line from .csproj file:</p>
  
  <p><code>&lt;RuntimeIdentifier&gt;win7-x64&lt;/RuntimeIdentifier&gt;</code></p>
  
  <p>Can it be related?</p>