Unable to retrieve project metadata. Ensure it's an MSBuild-based .NET Core project : <p>I've been researching a lot online but did not find a proper solution. I was trying to use Entity Framework Core with MySQL by using database-first scaffold method to mapping table model while always received this error when applied the command</p>

<pre><code>Unable to retrieve project metadata. Ensure it's an MSBuild-based .NET Core project. If you're using custom BaseIntermediateOutputPath or MSBuildProjectExtensionsPath values, Use the --msbuildprojectextensionspath option.
</code></pre>

<p>This is the command I am using to scaffold the database model:</p>

<pre><code>Scaffold-DbContext "server=localhost;port=3306;user=root;password=1234;database=world" "Pomelo.EntityFrameworkCore.MySql" -OutputDir .\Models -f
</code></pre>

<p>And this is my .Net Core project setting:</p>

<pre><code>  &lt;ItemGroup&gt;
    &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.1" /&gt;
    &lt;PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.0.1" /&gt;
  &lt;/ItemGroup&gt;

  &lt;ItemGroup&gt;
    &lt;DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.1" /&gt;
  &lt;/ItemGroup&gt;
</code></pre>
