The term 'Add-Migration' is not recognized as the name of a cmdlet, function, script file, or operable program
Dung Do Tien Dec 28 2020 541
I'm getting started with ASP.NET Core 3.1 and EntityFrameworkCore 3.1 also
I have installed some EF Core Nuget package but when trying to create a database by using Migration. I get the message bellow
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.
At line:1 char:1
+ Add-Migration InitialDatabase
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Add-Migration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I don't know what is happens.
Have 1 answer(s) found.
- M-1
Milan cubes Dec 28 2020
Maybe you have some mistakes when installing EFCore Nuget Packages.
Can you try to install package Microsoft.EntityFrameworkCore.Tools and try it again
If this answer is useful for you, please BUY ME A COFFEE!!! I need your help to maintain blog.
* Type maximum 2000 characters.
* All comments have to wait approved before display.
* Please polite comment and respect questions and answers of others.