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)
-
0
The same error on mine computer! VS2019 and PowerTools 2.0.4
-
0
Try installing the dotnet ef tool.
dotnet tool install --global dotnet-ef --version 3.0.0
-
0
Thanks @maliming. it works for me.