Problem
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.
Solution
- Open Menu Nuget Package Manager > Manage Nuget Packages for Solution
- If you are using EFCore then, Browse Package Microsoft.EntityFrameworkCore.Tools
- If you are using EntityFramework then, Browse Package Microsoft.EntityFramework.Tools
- Instal the Package
- Run the command again : add-migration initial
Hope your problem will be solved.