dotnet entity frameworkcore migration command not work in vs 2022

224 Views Asked by At

While migration in ef core using below command give me an error.

dotnet tool install --global dotnet-ef

enter image description here

After refer this link , i have executed below command.

dotnet tool install --global dotnet-ef

But still give me an error.

enter image description here

Below packages installed in my project.

Microsoft.EntityFrameworkCore(3.1.25) ,
Microsoft.EntityFrameworkCore.Design(3.1.25),
Microsoft.EntityFrameworkCore.SqlServer(3.1.25), 
Microsoft.EntityFrameworkCore.Tools(3.1.25)
1

There are 1 best solutions below

4
On

For the migrations command you need to install the Microsoft.EntityFrameworkCore.Tools Nuget package.