我在Visual Studio 2015社区版中创建了一个类库(包).Net Framework 4.5.2。
我安装了EntityFramework 6.1.3。但是,我无法在包管理器控制台中启用迁移。它总是抱怨“CommandNotFoundExceptions”
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, verify that the path is correct and try again.
At line:1 char:1
+ enable-migrations
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (enable-migrations:String) [], CommandNotFoundException
以下是实现这项工作的一些努力
重新安装EntityFramework,使用admin previle重新启动VS
使用-IncludePreRelease重新安装EntityFramework
以上都不适合我。
这是我的project.json
"frameworks": {
"net451": { }
},
"dependencies": {
"EntityFramework": "6.1.3",
"LetsBreakIT.Pattern.EF6": "1.0.0-*"
}
我缺少什么?
-Alan -