add-migration: You can not "add-migration" item identifies the name of a cmdlet, function, script file or run a program. Please check the spelling of the name, if you include a path, make sure the path is correct, and then try again

When you create a Web application using vs2019, using Entity Framework Core appear above error
Solution Install: Microsoft.EntityFrameworkCore.Tools

Install-Package Microsoft.EntityFrameworkCore.Tools

- Note that version, if you use net core2.2, use Microsoft.EntityFrameworkCore.Tools less than 3.0 version

Guess you like

Origin www.cnblogs.com/AlexanderZhao/p/11978906.html