无法在 Visual Studio 中加载 nuget 提要 [英] cannot load nuget feed in visual studio

查看:56
本文介绍了无法在 Visual Studio 中加载 nuget 提要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试加载 nget 时出现以下错误:

I am getting the following error when I try to load nget:

无法加载源的服务索引https://api.nuget.org/v3/index.json.ServicePointManager 执行不支持使用 https 方案的代理.

Unable to load the service index for source https://api.nuget.org/v3/index.json. The ServicePointManager does not support proxies with the https scheme.

此外,在 Linqpad 中,我收到了类似的错误:

Also, in Linqpad, I am getting a similar error:

ServicePointManager 不支持使用 https 方案的代理

ServicePointManager does not support proxies with the https scheme

有没有人对此有任何解决方案?我发现了这篇帖子,但是那个清除临时文件夹的解决方案并没有解决我的问题.请帮忙!谢谢!

Does anyone have any solutions for this? I found this post, but that solution, clearing the temp folders, did not fix my problem. Please help! Thanks!

推荐答案

ServicePointManager 不支持使用 https 方案的代理.

The ServicePointManager does not support proxies with the https scheme.

既然你在web.config中配置了proxy,可能需要注意proxy的语法.

Since you have proxy configured in the web.config, you may need to pay attention to the syntax of proxy.

如果您在 web.config 文件中设置如下内容,您也会收到此错误:proxyAddress="127.0.0.1:8888"您需要像这样列出方案:proxyAddress="http://127.0.0.1:8888"(添加 http://).此类唯一识别的方案是 http.

You will also get this error if you set something like this in your web.config file: proxyAddress="127.0.0.1:8888" You need list the scheme like this: proxyAddress="http://127.0.0.1:8888" (Add http://). The only scheme that is recognized by this class is http.

此外,由于您在机器中配置了代理,NuGet 将无法访问服务器.您应该将代理设置添加到 Nuget.Config 文件中,转到 %AppData%\NuGet\NuGet.config,添加以下设置:

Besides, since you have proxy configured in you machine, NuGet will fail to access to the server. You should add proxy settings into Nuget.Config file, goto %AppData%\NuGet\NuGet.config, add below settings:

  <config>
    <add key="HTTP_PROXY" value="http://127.0.0.1:8888" />
  </config>

您可以参考 NuGet 代理设置更详细的信息.

You can refer to the NuGet Proxy Settings for more detailed info.

这篇关于无法在 Visual Studio 中加载 nuget 提要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆