title: Detected package version outside of dependency constraint :Microsoft.AspNetCore.App 2.1.1
body: <p>I am trying to install some packages in my API using :</p>
  <pre><code>Install-Package Microsoft.EntityFrameworkCore.SqlServer
  </code></pre>
  <p>It throws an error (Given below):</p>
  <pre><code>NU1608: Detected package version outside of dependency constraint: Microsoft.AspNetCore.App 2.1.1 requires Microsoft.EntityFrameworkCore.SqlServer (&gt;= 2.1.1 &amp;&amp; &lt; 2.2.0) but version Microsoft.EntityFrameworkCore.SqlServer 2.2.0 was resolved.
  Install-Package : NU1107: Version conflict detected for 
  Microsoft.EntityFrameworkCore. Install/reference Microsoft.EntityFrameworkCore 
  2.2.0 directly to project ChinookCoreAPI to resolve this issue. 
   ChinookCoreAPI -&gt; Microsoft.EntityFrameworkCore.SqlServer 2.2.0 -&gt; 
  Microsoft.EntityFrameworkCore.Relational 2.2.0 -&gt; 
  Microsoft.EntityFrameworkCore (&gt;= 2.2.0) 
   ChinookCoreAPI -&gt; Microsoft.AspNetCore.App 2.1.1 -&gt; 
  Microsoft.EntityFrameworkCore (&gt;= 2.1.1 &amp;&amp; &lt; 2.2.0).
  At line:1 char:1
  + Install-Package Microsoft.EntityFrameworkCore.SqlServer
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManag 
     ement.PowerShellCmdlets.InstallPackageCommand
   
  Install-Package : Package restore failed. Rolling back package changes for 
  'ChinookCoreAPI'.
  At line:1 char:1
  + Install-Package Microsoft.EntityFrameworkCore.SqlServer
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManag 
     ement.PowerShellCmdlets.InstallPackageCommand
  </code></pre>
  <p>Can someone help me solve this?</p>