我最近安装了.NET Core 1.0 RC2,我知道命令DNX已经改为dotnet.exe命令,但现在我无法找到如何创建新的EF7迁移文件。无论我尝试什么,“dotnet ef”命令始终不可用。
dotnet : No executable found matching command "dotnet-ef"
At line:1 char:1
+ dotnet ef
+ ~~~~~~~~~
+ CategoryInfo : NotSpecified: (No executable f...and "dotnet-ef":String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
如果我在VS PS控制台中尝试使用“Add-Migration”命令,会得到类似以下内容:
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.
At line:1 char:1
+ Add-Migration
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Add-Migration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
我已经搜了三个小时了,却没有任何结果。
我感觉好像少了一个文件。
有人成功地在安装RC2之后创建了新的EF7迁移类吗?