Base solution for your next web application
Open Closed

Error while creating entity #7827


User avatar
0
talkwaqar created

Hi I am creating entity using asp net power tool. when I click on generate, in console getting errors

`-> CustomDtoMapper.cs is being modified. Running add-migration... 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. Running update-database... 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. -> persons.component.ts is being generated.`

can you find a cause.

Thanks.


3 Answer(s)
  • User Avatar
    0
    ncvitanovic created

    The same error on mine computer! VS2019 and PowerTools 2.0.4

  • User Avatar
    0
    maliming created
    Support Team

    Try installing the dotnet ef tool.

    dotnet tool install --global dotnet-ef --version 3.0.0
    
  • User Avatar
    0
    talkwaqar created

    Thanks @maliming. it works for me.