gpt4 book ai didi

entity-framework - 包管理器控制台仅在特定 VS 项目中启用迁移 CommandNotFoundException

转载 作者:行者123 更新时间:2023-12-03 04:43:18 25 4
gpt4 key购买 nike

我尝试在新项目中运行命令“Enable-Migrations”,并收到消息:

PM> Enable-Migrations
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 path was included, verif
y that the path is correct and try again.
At line:1 char:18
+ Enable-Migrations <<<<
+ CategoryInfo : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

但在所有其他项目中,该命令运行得很好。

为什么会发生这种情况?

顺便说一句,我使用的是 VS2010 Professional SP1

编辑:我使用命令重新安装:Install-Package EntityFramework -IncludePrerelease然后问题就消失了。

最佳答案

我使用命令重新安装:Install-Package EntityFramework -IncludePrerelease,问题就消失了。

关于entity-framework - 包管理器控制台仅在特定 VS 项目中启用迁移 CommandNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10411529/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com