EF Core: Scaffold DbContext keeps failing
<p>The official ASP.Net Core says that the following error can be fixed by restarting visual studio: </p>

<pre><code> 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.
</code></pre>

<p>However the command keeps failing. </p>

<p>I'm running it in Package Manager console following the example provided in ASP.Net core online documentation. </p>

<pre><code>Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
</code></pre>