title: The specified framework 'Microsoft.NETCore.App', version '2.1' was not found
body: <p>I am developing an Angular 6 application in dotNet Core 2.1.
  Everything is working flawlessly, until I got to setting up EFCore.
  All my models are defined and context created. Running <code>dotnet ef migrations add InitialCreate</code> gives me the "The specified framework 'Microsoft.NETCore.App', version '2.1' was not found" error.</p>
  
  <p>I have searched and read all the posts I could find that has this error across various versions of dotNet Core. Nothing is working to resolve this issue for me.</p>
  
  <p>I have various versions of dotNet Core App installed.
  Looking at "C:\Program Files\dotnet\shared\Microsoft.NETCore.App" I have the following:</p>
  
  <p>-1.0.4<br>
  -1.0.5<br>
  -1.1.1<br>
  -1.1.2<br>
  -2.0.0<br>
  -2.0.3<br>
  -2.0.5<br>
  -2.0.6<br>
  -2.0.7<br>
  -2.0.9<br>
  -2.1.0<br>
  -2.1.4<br>
  -2.1.5<br>
  -2.1.6<br></p>
  
  <p>"C:\Program Files\dotnet" appears as the first path in my System PATH variable.</p>
  
  <p>Downgrading all the projects in my solution to dotNet Core 2.0, running the command results in exactly the same error, referring to version 2.0.</p>
  
  <p>Any advise would be greatly appreciated...</p>
  
  <p>The csproj file for my EF project is as follows:</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp2.1&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.1.4" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\*********.Contracts\*********.Contracts.csproj" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Reference Include="System"&gt;
        &lt;HintPath&gt;System&lt;/HintPath&gt;
      &lt;/Reference&gt;
      &lt;Reference Include="System.Data"&gt;
        &lt;HintPath&gt;System.Data&lt;/HintPath&gt;
      &lt;/Reference&gt;
      &lt;Reference Include="System.Xml"&gt;
        &lt;HintPath&gt;System.Xml&lt;/HintPath&gt;
      &lt;/Reference&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>