我最近安装了.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
我搜索了3个小时以来没有任何结果。
我觉得包裹不见了。
这里有人成功创建了新的EF7迁移类。安装RC2之后?
我已经找到了解决方案...
您需要将Microsoft.EntityFrameworkCore.Tools包添加到您的项目中
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句