项目的当前包源中没有可用的包更新

Kir*_*eed 6 nuget

我在包管理器中运行了以下内容

Update-Package -reinstall
Run Code Online (Sandbox Code Playgroud)

我有 Package source: All 并且默认项目是引用启动项目的项目。

出现以下错误信息

    No package updates are available from the current package source for project 'Console4Migration'.
Update-Package : The WriteObject and WriteError methods cannot be called from outside the overrides of the BeginProcessing, ProcessRecord, and EndProcessing methods, and they can only be called 
from within the same thread. Validate that the cmdlet makes these calls correctly, or contact Microsoft Customer Support Services.At line:1 char:1
+ Update-Package -reinstall
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-Package], PSInvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand
Run Code Online (Sandbox Code Playgroud)

为什么?

Kir*_*eed 3

当我将默认项目更改为启动项目并重新运行命令时,包更新成功。

[更新]

事实证明,我有一些过时的包源,我需要取消选中它们以阻止 Nuget 尝试使用它们,即使我只选择了 nuget.org