The error is related to dotnet ef tools
a set of extensions for CLI to do database stuff related to Entity Framework.
Every time you want to create a migration or update a database for example, you need to run dotnet ef ...
command.
dotnet ef migrations add YOUR_MIGRATION_NAME
dotnet ef database update
These commands can be run by installing dotnet ef tools
and you can do this by running this command on your terminal:
dotnet tool install --global dotnet-ef
If you already have EF Tools installed and want to update it, you can run the following command:
dotnet tool update --global dotnet-ef
And to check your EF Tools version you can run this:
dotnet tool update --global dotnet-ef
Given this context, you can do the following:
- Verify your EF Tools Version
- Install or update your EF Tools
- Try your deployment again
In additional, you need the following packages added to your project:
dotnet add package Microsoft.EntityFrameworkCore.Design