Base solution for your next web application
Open Closed

RAD Tool unable to run add-migration #12148


User avatar
0
johntui created

RAD Tool is unable to generate the migration scripts. Keep getting this error which looks like unable to find an executable. But I can run add-migration script from package manager console without any errors:

Running add-migration... Possible reasons for this include:

  • You misspelled a built-in dotnet command.
  • You intended to execute a .NET 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.

Any ideas


3 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @johntui,

    Could you install entity framework core cli with dotnet tool install --global dotnet-ef

    https://learn.microsoft.com/en-us/ef/core/cli/dotnet

  • User Avatar
    0
    johntui created

    that went one step further. Now getting a build error after "Running add-migration...Build started and Running migrator...: Build failed. Use dotnet build to see the errors

  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @johntui,

    Could you share me the build errors?