enable-migrations enable-migrations:术语"enable-migrations"不被视为cmdlet的名称,该功能 [英] enable-migrations enable-migrations : The term 'enable-migrations' is not recognized as the name of a cmdlet, functio n
问题描述
你好
我有问题了
它从更新2开始,在更新之前运行良好.
更新后2个主要问题
1.诊断工具意外失败".每次.
2.PM> enable-migrations
enable-migrations:术语"enable-migrations"未被识别为cmdlet函数的名称
n,脚本文件或可运行程序.检查名称的拼写,或者检查是否包含路径ver
确定路径正确,然后重试.
在第1行:char:1
+ enable-migrations
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo :ObjectNotFound:((启用迁移:字符串)[],CommandNotFoundExcept
离子
+ FullyQualifiedErrorId:CommandNotFoundException
任何帮助都将受到欢迎.
Leon
您好,Leon,
感谢您在MSDN论坛中发帖.
对于问题1:
>>>诊断工具意外失败"
当消息显示时,您尝试打开或创建哪种项目?
发生问题时,请向我们提供有关它的更多详细信息.
对于问题2:
>>> enable-migrations:术语"enable-migrations"不被认为是cmdle的名称 >
请尝试使用以下命令重新安装:Install-Package EntityFramework –IncludePrerelease.
然后以管理员身份重新启动Visual Studio.
请参阅:
另外,您提到这两个主要问题是在安装Update 2之后发生的,请尝试通过控制面板修复VS,以缩小一些潜在的问题.
最好的问候
Hello
I have a problem.
It begin after the update 2 , worked fine before the update.
After the update 2 main problems
1. "Diagnostic tools failed unexpectedly" every time.
2.PM> enable-migrations
enable-migrations : The term 'enable-migrations' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a path was included, ver
ify that the path is correct and try again.
At line:1 char:1
+ enable-migrations
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (enable-migrations:String) [], CommandNotFoundExcept
ion
+ FullyQualifiedErrorId : CommandNotFoundException
Any help will be welcomed .
Leon
Hi Leon,
Thank you for posting in MSDN forum.
For question 1:
>>"Diagnostic tools failed unexpectedly"
What kind of project you try to open or create when the message shows?
Please offer us more detailed information about it when the issue occurs.
For question 2:
>>enable-migrations : The term 'enable-migrations' is not recognized as the name of a cmdle
Please try to reinstall with the command: Install-Package EntityFramework –IncludePrerelease.
Then restart your Visual studio as administrator.
Please refer to:
In addition, you mentioned that these two main problems happens after the installing the Update 2, please try to repair your VS via Control Panel to narrow down some potential problems.
Best Regards,
这篇关于enable-migrations enable-migrations:术语"enable-migrations"不被视为cmdlet的名称,该功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!