无法恢复 NuGet 包 - Microsoft.AspNetCore.SignalR

Failed to restore NuGet package - Microsoft.AspNetCore.SignalR

我收到一条错误消息:

Unable to find package Microsoft.AspNetCore.SignalR with version (>= 1.0.0-preview1-27891)
- Found 3 version(s) in nuget.org [ Nearest version: 1.0.0-alpha2-final ]
- Found 0 version(s) in Microsoft Visual Studio Offline Packages MaiPiuSprechi.Web.Core C:\PROGETTI\MaiPiuSprechi.4.1\aspnet-core\src\MaiPiuSprechi.Web.Core\MaiPiuSprechi.Web.Core.csproj

框架:ABP + .NET Core(版本 3.4.1)

本期回答:https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2831

Add this file to the same folder as your .sln file: NuGet.Config

NuGet.Config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="aspnetcore-dev" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />
  </packageSources>
</configuration>