title: Unable to create migration using Entity Framework Core
body: <p>I am using Rider to develop a C# Console Application.
  I have current version of dotnet - 3.1.101. plus </p>
  
  <pre><code>Entity Framework Core .NET Command-line Tools
  3.1.1
  </code></pre>
  
  <p>When I try to run the following command:</p>
  
  <pre><code>dotnet ef migrations add NewMigration
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code> error MSB4006: There is a circular dependency in the target dependency graph involving target "GetEFProjectMetadata". [/home/venelin/GameServer/WorldServer/WorldServer.csproj]
  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>I haven't created any Migrations folder or anything. I have just installed EFCore, however I can not run the command to create new migration.</p>
  
  <p>How can i fix it?</p>
  
  <p>P.S.
  This is the list of the packages I have installed:</p>
  
  <pre><code>  &lt;package id="Microsoft.Data.SqlClient" version="1.0.19269.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Data.SqlClient.SNI" version="1.0.19235.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.EntityFrameworkCore" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.EntityFrameworkCore.Abstractions" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.EntityFrameworkCore.Analyzers" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.EntityFrameworkCore.Design" version="3.1.1" targetFramework="net461" developmentDependency="true" /&gt;
    &lt;package id="Microsoft.EntityFrameworkCore.Relational" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.EntityFrameworkCore.SqlServer" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.EntityFrameworkCore.Tools" version="3.1.1" targetFramework="net461" developmentDependency="true" /&gt;
    &lt;package id="Microsoft.Extensions.Caching.Abstractions" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.Caching.Memory" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.Configuration" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.Configuration.Abstractions" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.Configuration.Binder" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.DependencyInjection" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.Logging" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.Logging.Abstractions" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.Options" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Extensions.Primitives" version="3.1.1" targetFramework="net461" /&gt;
    &lt;package id="Microsoft.Identity.Client" version="3.0.8" targetFramework="net461" /&gt;
    &lt;package id="MySql.Data" version="8.0.11" targetFramework="net461" /
  </code></pre>
  
  <p>></p>