无法为 Web 应用程序安装 Microsoft.EntityFrameworkCore

问题描述 投票:0回答:1

Error Code

这是我尝试安装该软件包时收到的错误代码。 这也是一个全新的项目,所以我没有编写任何代码喷射。

我尝试重新安装 Visual Studio 2022,以使用最新版本的 NuGet、Vs 等,使用

dotnet nuget locals all --clear
清除 NuGet 存储,并且包源正确。Package Sources

entity-framework-core nuget-package
1个回答
0
投票

你可以试试这个

dotnet 恢复 Solution.sln --source “https://api.nuget.org/v3/index.json”

© www.soinside.com 2019 - 2024. All rights reserved.