entity-framework-coreasp.net-core-2.1

Powershell, VS2019, db migrations: 'Drop-Database' is not recognized as the name of a cmdlet


Whatever command I use I get the error:

drop-database : The term 'drop-database' is not recognized as the name of a cmdlet, function, script file, or operable --> complete msg see image!

enter image description here

-Environment: VS2019

.…\CU21 contains the project (.sln)


Solution

  • after some trial/error using update-database I got below msg:

    PM> update-database The EF Core tools version '2.1.1-rtm-30846' is older than that of the runtime '2.1.11-servicing-32099'. Update the tools for the latest features and bug fixes.

    After doing the core tools update - all was ok!