【发布时间】:2015-08-15 11:44:19
【问题描述】:
当他/她运行“Add-Migration Blah”命令时,还有谁会从包管理器控制台收到此错误
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.
我已包含 EntityFramework.Commands 依赖项(适用于 beta4)
新编辑: 这更像是一个建议。在运行 kpm 命令之前,您应该转到包管理器设置并取消选中“api.nuget.org”。如果没有,您将不断收到 400 错误
【问题讨论】:
-
@Bharathi 这些解决方案都没有奏效
-
你试过“k ef migration add”吗? stackoverflow.com/questions/29385736/…
-
是的,我刚刚做到了。但我必须先运行 kpm restore 命令。我将使用运行 kpm restore 时出现的错误截图来更新问题
标签: asp.net entity-framework database-migration entity-framework-migrations visual-studio-2015