【问题标题】:Cannot install nuget package - package not found error无法安装 nuget 包 - 找不到包错误
【发布时间】:2021-06-17 19:28:30
【问题描述】:

我无法安装推送到公司源的软件包。在包管理器中,我看到了正确的最新版本,但是当我尝试安装它时出现错误:

在以下主要来源中找不到包“xxxx”:“https://company/nuget/v2/index.json,https://www.nuget.org/api/v2/”。请验证您的所有在线包源是否可用(或)包 ID、版本是否正确指定。

情况很奇怪,因为我的同事能够在他们的机器上使用相同版本的代码为同一个项目安装这个包。

【问题讨论】:

    标签: c# .net nuget-package


    【解决方案1】:

    我通过从解决方案中删除“.vs”文件夹解决了该错误。

    【讨论】:

      【解决方案2】:

      经过 4 小时的努力,我在这里找到了解决方案 https://www.grapecity.com/componentone/docs/uwp/online-getting-started/config-nugetpackage.html

      工具 > 选项 > NuGet 包管理器 > 包源。 > 点击添加按钮,逐一添加

      nuget.org https://www.nuget.org/api/v2/

      葡萄城 http://nuget.grapecity.com/nuget

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-05-24
        • 2019-04-15
        • 2014-02-15
        • 1970-01-01
        • 2018-03-18
        • 2021-11-16
        相关资源
        最近更新 更多