gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 00:59:40 25 4
gpt4 key购买 nike

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

Update-Package -reinstall

我有 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

为什么?

最佳答案

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

[更新]

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

关于nuget - 项目的当前包源中没有可用的包更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51488183/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com