无法安装 Microsoft.EntityFramworkCore.Sqlserver

Can't Install Microsoft.EntityFramworkCore.Sqlserver

我正在使用 visual studio 2022 IDE 尽管尝试了几次我还是无法安装软件包 Microsoft.EntityFramworkCore.Sqlserver。这是我的设置Package Sources General

这是我收到的错误消息:

The feed 'Nuget [https://api.nuget.org/v3/index.json]' lists package 'Microsoft.Data.SqlClient.SNI.runtime.4.0.0' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. Unable to find package 'Microsoft.Data.SqlClient.SNI.runtime.4.0.0'.

optionsBuilder.UseSqlServer() 方法在我的应用程序中不起作用,因为提到的包不可用

尝试安装旧版本。 试试 5.0.8

您可以从 nuget.org 下载软件包并手动安装。 查看 link Link