The term 'add-migration' is not recognized as the name of a cmdlet

Опубликовано: 08 Апрель 2026
на канале: Dex Code Lab
7,486
48

If you get this type of error during migration like add-migration migration_name is not recognized as the name of cmdlet. You can easily solved that problem by using this package. Microsoft.EntityFrameworkCore.Tools

add-migration : The term 'add-migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.