【问题标题】:No package updates are available from the current package source for project项目的当前包源中没有可用的包更新
【发布时间】:2020-04-28 10:15:49
【问题描述】:

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

Update-Package -reinstall

我有包源:全部,默认项目是引用启动项目的项目。

出现如下错误提示

    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

为什么?

【问题讨论】:

    标签: nuget


    【解决方案1】:

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

    [更新]

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

    【讨论】:

      猜你喜欢
      • 2015-09-29
      • 2016-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-30
      • 2021-12-22
      • 1970-01-01
      相关资源
      最近更新 更多