术语“启用的迁移”无法识别为cmdlet,函数的名称,脚本文件或可操作的程序 [英] The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program

查看:1120
本文介绍了术语“启用的迁移”无法识别为cmdlet,函数的名称,脚本文件或可操作的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我输入以下命令:在软件包管理控制台启用的迁移我得到这个错误:

When I enter this command: 'Enable-Migrations' in Package Manager Console I get this error:

术语启用的迁移'未被识别为cmdlet,函数,脚本文件或可操作的程序的名称,检查名称的拼写,或者为p
ATH被列入,验证路径是否正确,然后再试一次。
在行:1字符:18
+启用的迁移<<<<
    + CategoryInfo:ObjectNotFound:(启用的迁移:字符串)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

"The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a p ath was included, verify that the path is correct and try again. At line:1 char:18 + Enable-Migrations <<<< + CategoryInfo : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException"

我使用VS2010与EF 4.0,我只是在做非常简单的测试项目与Windows Azure的部署网站,但由于某些原因,我不能启用迁移。

I am using VS2010 with EF 4.0 and I was just doing really simple test project for deploying web site with windows azure,but for some reason I can not enable migrations.

任何人有什么想法?
谢谢

Anyone has any idea? Thanks

推荐答案

尝试重新启动Visual Studio。它帮助我的情况。

Try to restart Visual Studio. It helped in my case.

这篇关于术语“启用的迁移”无法识别为cmdlet,函数的名称,脚本文件或可操作的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆