0

I am trying to add a migration in a Visual Code in ef using the following syntax:

dotnet ef migrations add A_isVerified

All I get is this:

Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET Core program, but dotnet-ef does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

What can I do to resolve this?

halfer
  • 19,824
  • 17
  • 99
  • 186
Ibanez1408
  • 4,550
  • 10
  • 59
  • 110

2 Answers2

0

Remember to add Microsoft.EntityFrameworkCore.Design as a package in your project. See more at https://learn.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet

JonasMH
  • 1,145
  • 11
  • 21
0
dotnet tool install -g dotnet-ef
bricelam
  • 28,825
  • 9
  • 92
  • 117