gpt4 book ai didi

entity-framework - 如何使 EF Core Tools 3.1.2 工作?

转载 作者:行者123 更新时间:2023-12-03 20:26:27 26 4
gpt4 key购买 nike

我已运行以下命令来更新我的 EF Core 工具:

dotnet tool update --global dotnet-ef

运行后,我尝试运行
dotnet ef --version

但随后它抛出了这个错误:

It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version '3.1.2' was not found. - The following frameworks were found: 2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 2.2.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 3.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 3.1.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at: - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.2&arch=x64&rid=win10-x64



看到它后,我按照链接下载了所有可能的包,但没有任何改变。

我该如何解决这个问题?

最佳答案

我找到了解决这个问题的方法。然而,值得注意的是,这不是最好的方法:

dotnet tool uninstall --global dotnet-ef
dotnet tool install --global dotnet-ef --version 3.1.1

关于entity-framework - 如何使 EF Core Tools 3.1.2 工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60350937/

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