"k ef" 在 Visual Studio 2015 程序包管理器控制台中抛出异常

"k ef" throwing exception in Visual Studio 2015 Package Manager Console

我是包管理器控制台的新手。我已经成功安装了 KVM 并正在尝试在我的 ASP.NET 5 应用程序中创建迁移。

当我 运行 "k ef" 我得到以下异常:

k.cmd : System.ArgumentNullException: Value cannot be null.
At line:1 char:2
+ k <<<<  ef
    + CategoryInfo          : NotSpecified: (System.Argument...cannot be null.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Parameter name: appEnv
   at Microsoft.Data.Entity.Utilities.Check.NotNull[T](T value, String parameterName)
   at Microsoft.Data.Entity.Commands.Program..ctor(IServiceProvider serviceProvider, IApplic
ationEnvironment appEnv, ILibraryManager libraryManager)

我在正确的文件夹中,我有 运行 kpm restore。我很茫然。

EntityFramework.Commands 的依赖项从 7.0.0-* 切换到 7.0.0-beta3 使其工作。