【问题标题】:VS2019 - Error occurred while restoring NuGet packages: Unable to load the service index for source https://api.nuget.org/v3/index.jsonVS2019 - 还原 NuGet 包时出错:无法加载源 https://api.nuget.org/v3/index.json 的服务索引
【发布时间】:2019-11-17 06:12:35
【问题描述】:

我在现有的 Windows 10 电脑上有一个全新的配置文件。 PC 未使用代理,代理设置已关闭。我也没有代理环境变量,可以通过网络浏览器访问 json。

我已尝试遵循此处其他帖子的所有建议,例如删除 nuget.config 文件,并编辑 devenv.exe.config 文件以添加代理设置,但没有任何效果。

我什至尝试关闭我的防火墙,但仍然没有成功。我还能在这里做什么?

【问题讨论】:

标签: visual-studio nuget nuget-package-restore


【解决方案1】:

好吧,经过一番挖掘,我终于在这篇文章中找到了解决方案:

Nuget connection attempt failed "Unable to load the service index for source"

Razi's answer 关于注册表中的 TLS 1.3 协议。

【讨论】:

  • 您好 devonuto,感谢您的分享,请将您的回复标记为答案,这将有助于其他社区成员更轻松地搜索此有用信息。见this,它只是一个提醒:)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-10-04
  • 2023-03-22
  • 1970-01-01
  • 1970-01-01
  • 2023-01-28
相关资源
最近更新 更多