gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 17:20:51 29 4
gpt4 key购买 nike

我是包管理器控制台的新手。我已成功安装 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 使其工作。

关于asp.net-core - "k ef"在 Visual Studio 2015 程序包管理器控制台中抛出异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28908088/

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