I cannot complete the following migration is their some reasoning behind the below error!
<div>PS C:\Users\Andrew\code\Bakery\wwwroot> dotnet ef migrations add CreateDatabase --output-dir Data/Migrations 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.
</div>
Member
2 Points
8 Posts
.Net Core migration keeps failing.
May 04, 2020 04:26 PM|Cowboy2|LINK
I cannot complete the following migration is their some reasoning behind the below error!
<div>PS C:\Users\Andrew\code\Bakery\wwwroot> dotnet ef migrations add CreateDatabase --output-dir Data/MigrationsCould 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. </div>
All-Star
53021 Points
23607 Posts
Re: .Net Core migration keeps failing.
May 04, 2020 07:01 PM|mgebhard|LINK
Install the tool.
https://docs.microsoft.com/en-gb/ef/core/what-is-new/ef-core-3.0/breaking-changes#the-ef-core-command-line-tool-dotnet-ef-is-no-longer-part-of-the-net-core-sdk
Member
2 Points
8 Posts
Re: .Net Core migration keeps failing.
May 04, 2020 08:01 PM|Cowboy2|LINK
mgebhard, take a look at my new post to see if you can help. Cowboy2
https://ibb.co/p43pLw4