Nuget连接尝试失败“无法加载源的服务索引”。 [英] Nuget connection attempt failed "Unable to load the service index for source"
问题描述
尝试连接Nuget时,出现以下错误,然后我无法连接:
While trying to connect to Nuget, getting the error below and then I am unable to connect:
[nuget.org]无法加载源
的服务索引 https://api.nuget.org/v3/ index.json 。
发送请求时发生错误。
无法连接到远程服务器
连接尝试失败,因为一段时间后被连接方未正确响应,或者由于连接的主机未能响应68.232,建立的连接
失败。 34.200:443
[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occurred while sending the request. Unable to connect to the remote server A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 68.232.34.200:443
我可以访问 https://api.nuget.org/v3/在我的浏览器上为index.json
。
它不是重复的。其他答案不能解决我的问题。
It is not a duplicate. The other answers doesn't solve my problem.
推荐答案
您需要将代理设置添加到Nuget.Config文件中。请参阅此链接以获取详细信息: Nuget Config节& ; Nuget代理设置。
You need to add proxy settings into Nuget.Config file. Refer to this link for details: Nuget Config Section & Nuget Proxy Settings.
这篇关于Nuget连接尝试失败“无法加载源的服务索引”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!