title: The term 'scaffold-dbcontext' is not recognized as the name of a cmdlet, function, script file, or operable program
body: <p>When trying to scaffold with asp.net core this command</p>
  <pre class="lang-none prettyprint-override"><code>scaffold-dbcontext &quot;Data Source=(local);Initial
  Catalog=MyDb;Integrated Security=True;&quot;
  Microsoft.EntityFrameworkCore.sqlserver -outputdir Models
  </code></pre>
  <p>Gives this error.</p>
  <blockquote>
  <p>scaffold-dbcontext : The term 'scaffold-dbcontext' is not recognized
  as the name of a cmdlet, function, script file, or operable program.
  Check the spelling of the  name, or if a path was included, verify
  that the path is correct and try again. At line:1 char:1</p>
  <pre class="lang-none prettyprint-override"><code>+ scaffold-dbcontext &quot;Data Source=(local);Initial Catalog=MyDB;In ...
  + ~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (scaffold-dbcontext:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  </blockquote>
  <p>I have tried the solution <a href="https://stackoverflow.com/questions/37895724/the-term-scaffold-dbcontext-is-not-recognized-as-the-name-of-a-cmdlet">here</a>, but it does not work for me.</p>
  <p>Any idea what the cause/cure could be?</p>