Friday, March 22, 2019

Add-Migration : The term 'Add-Migration' is not recognized as the name of a cmdlet...

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



  1. Open Menu Nuget Package Manager > Manage Nuget Packages for Solution
  2. If you are using EFCore then, Browse Package Microsoft.EntityFrameworkCore.Tools
  3. If you are using EntityFramework then, Browse Package Microsoft.EntityFramework.Tools
  4. Instal the Package
  5. Run the command again : add-migration initial
Hope your problem will be solved.



Popular Posts