【发布时间】:2019-05-09 14:31:03
【问题描述】:
如何在 Visual Studio 之外的 PowerShell 窗口中运行 EF6 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.
【问题讨论】:
-
嗨,我知道你已经很久没有发布这个了。但是你解决了吗?
-
不,我仍然无法在 Visual Studio 中使用它
-
我已经设法在 PS 中加载它,但现在我收到此错误:“Get-Project”一词未被识别为 cmdlet 的名称
-
嗨!你是怎么做到的? @TheFreeman 谢谢!
标签: powershell entity-framework-6 entity-framework-migrations