【问题标题】:nuget package recovery program is getting 404:not foundnuget 包恢复程序得到 404:not found
【发布时间】:2019-06-16 13:52:29
【问题描述】:

我的项目正在使用 package.config 文件。

但是当我加载 api 包时,nuget 让我在包恢复时出错。

所以我认为这是在线资源列表的问题。

nuget 上没有任何远程源列表,所以我添加了“https://nuget.org”。

但是,当我尝试恢复我的

api 包。

查询是https://nuget.org: 'https://www.nuget.org/FindPackagesById()?id='packagename'&semVerLevel=2.0.0'

欢迎任何建议...

【问题讨论】:

    标签: visual-studio-2017 nuget


    【解决方案1】:

    nuget 包恢复程序出现 404:not found

    请确保您有可用的包源 nuget.org,其源值为 https://api.nuget.org/v3/index.json 而不是 https://nuget.org

    从Tools->Options->NuGet Package Manager->Package Sources查看:

    然后点击确定按钮保存。

    如果还是无法恢复你的包,请检查是否可以直接在浏览器中打开源代码https://api.nuget.org/v3/index.json

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2021-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-18
      • 1970-01-01
      • 2023-01-12
      • 1970-01-01
      • 2014-03-11
      相关资源
      最近更新 更多