问题描述
我正在使用 Visual Studio for Mac 并拥有 .NET Core 2.1 项目。使用“Add-Migration”等任何迁移命令时出现问题,即发生以下错误:
**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 dbupdates -Context applicationdbcontext
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Add-Migration:String) [],CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException**
任何线索可能是什么原因?