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

时间:2018-07-23 22:51:05

标签: nuget

我在程序包管理器中运行了以下程序

Update-Package -reinstall

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

出现以下错误消息

    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

为什么?

1 个答案:

答案 0 :(得分:1)

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

相关问题