【问题标题】:Nuget Package downloading Microsoft.Azure.ServiceBus failedNuget 包下载 Microsoft.Azure.ServiceBus 失败
【发布时间】:2020-06-29 09:43:16
【问题描述】:

当我尝试从 Nuget 包管理器安装 Microsoft.Azure.ServiceBus 时,出现如下图所示的错误

从 NuGet 包管理器安装包时,请查看以下跟踪

安装日志跟踪后,我看到了这个错误

Error The feed 'nuget.org [https://api.nuget.org/v3/index.json]' lists package 'Microsoft.Azure.Services.AppAuthentication.1.0.3' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. Unable to find package 'Microsoft.Azure.Services.AppAuthentication.1.0.3'.

谁能帮助我,因为我无法弄清楚出了什么问题。

提前致谢

【问题讨论】:

    标签: c# azure nuget azureservicebus


    【解决方案1】:

    此问题可能是防火墙或代理设置造成的,您可以尝试 ping 指定的 url。

    但作为一种解决方法,您可以将Microsoft.Azure.ServiceBus nugetpackage(microsoft.azure.servicebus.4.1.2.nupkg) 下载到本地,然后从本地安装此包。

    1.导航到Microsoft.Azure.ServiceBus页面,点击“下载包”:

    2.microsoft.azure.servicebus.4.1.2.nupkg包下载完成后,进入visual studio -> Tools -> options-> NuGet Package Manager -> Package Sources,点击“+”按钮,然后指定Name和Source( microsoft.azure.servicebus.4.1.2.nupkg 位于。):

    3.然后右键项目-> Manage Nuget Packages,将Package source设置为步骤2中的那个,然后就可以看到Microsoft.Azure.ServiceBus在那里了,直接点击安装即可:

    希望对你有帮助。

    【讨论】:

    猜你喜欢
    • 2016-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多