title: Command dotnet ef not found
body: <p>I'm following <a href="https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/migrations?view=aspnetcore-3.0#create-an-initial-migration" rel="noreferrer">the docs</a> in order to create an initial migration. When I execute <code>dotnet</code>, I get the help section, meaning that the PATH works properly.</p>
  <p>Then I try to execute the command below from the docs in console window:</p>
  <blockquote>
  <p>dotnet ef migrations add InitialCreate</p>
  </blockquote>
  <p>I get the following error:</p>
  <blockquote>
  <p>Could not execute because the specified command or file was not found.<br />
  Possible reasons for this include:</p>
  </blockquote>
  <ul>
  <li><p>You misspelled a built-in dotnet command.</p>
  </li>
  <li><p>You intended to execute a .NET Core program, but dotnet-ef does not exist.</p>
  </li>
  <li><p>You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.</p>
  </li>
  <li><p>I excluded the first item since I copied the command.</p>
  </li>
  <li><p>I excluded the second item because the package <em>Microsoft.EntityFrameworkCore.SqlServer</em> is installed.</p>
  </li>
  <li><p>I excluded the third item because I get the help section when invoking <em>dotnet</em>.</p>
  </li>
  </ul>
  <p>I'm googling the issue but since the version is new, there's not much to go on and/or it's drowning in similar issues from earlier versions.</p>
  <p>I tried to forcibly install <em>Microsoft.EntityFrameworkCore</em> just in case it needs to be explicitly added. I ran into the error message telling me that the latest version to pick from is 2.2.6 and a downgrade is a no-go. I'm not sure how to install the version compatible with the SQL-package I have on my system already (and even less certain if that's right approach to kill this issue).</p>
  <blockquote>
  <p>Detected package downgrade: Microsoft.EntityFrameworkCore from 3.0.0-preview6.19304.10 to 2.2.6. Reference the package directly from the project to select a different version.<br />
  Web -&gt;<br />
  Microsoft.EntityFrameworkCore.SqlServer 3.0.0-preview6.19304.10 -&gt;<br />
  Microsoft.EntityFrameworkCore.Relational 3.0.0-preview6.19304.10 -&gt;<br />
  Microsoft.EntityFrameworkCore (&gt;= 3.0.0-preview6.19304.10)<br />
  Web -&gt; Microsoft.EntityFrameworkCore (&gt;= 2.2.6)</p>
  </blockquote>