[英]“The remote name could not be resolved: 'nuget.org'”
我們正在嘗試使用TFS在Visual Studio環境中設置CI。
環境:
Windows 10
Microsoft Visual Studio 2017年
MSVSTFS V 16.12
NuGet V 4.0
出現以下錯誤:
https://api.nuget.org/v3/index.json:
Unable to load the service index for source https://api.nuget.org/v3/index.json.
An error occurred while sending the request.
The remote name could not be resolved: 'api.nuget.org'
通過開發人員在社區中共享的許多鏈接進行了訪問,這對於理解該問題確實有很大的幫助。
我的一些解決方法:
http://skolima.blogspot.ru/2012/07/nuget-proxy-settings.html
我在公司防火牆后面,我們正在嘗試設置CI / CD管道。
在TFS中:
我確定這是防火牆代理設置的問題。 由於我能夠通過網絡訪問"api.nuget.org"
。
有人可以建議我指向的NuGet.config
缺少什么嗎? 任何其他共享的輸入都可以自由共享。
是的,如果要在代理后面使用Nuget,則應遵循Nuget.config
的步驟
由於您已經發布了上述解決方法,但是仍然在TFS中獲得錯誤信息。
您應該確保還更改了構建代理/服務器中的Nuget.config
。 Win + R,然后輸入%appdata%\\nuget
以獲取文件位置。
嘗試直接通過服務器上的Visual Studio而不是TFS進行構建。 如果問題與您的環境或TFS有關,則此范圍將縮小。
此外,您也可以詳細輸出以獲得更多詳細的日志信息以進行故障排除: 為TFS Build vNext啟用詳細調試模式
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.