I have 2 projects in my solution, I have a project with Entity Framework Core installed:
And in the other ASP.NET Web API project I have these packages:
You could solve this by using below commands
dotnet tool install --global dotnet-ef dotnet add package Microsoft.EntityFrameworkCore.Design