NuGet VS 2012 ServicePointManager does not support proxies with the https scheme

后端 未结 9 1095
醉梦人生
醉梦人生 2021-02-18 13:07

I have recently upgraded from VS2012 RC to RTM, and since the upgrade to RTM, I can no longer access nuget. I receive the following error in the Manage NuGet Packages window.

相关标签:
9条回答
  • 2021-02-18 13:58

    Check your system environment variables for http_proxy and https_proxy. NuGet looks at those first if they exist. If those proxy environment variables begin with https, NuGet will fail. Fix them and restart your computer (restarting Visual Studio did not work for me).

    You can verify this by opening the Package Manager Console:

    Get-Childitem env:http_proxy
    Get-Childitem env:https_proxy
    

    If you want to quickly get it working without restarting your computer, manually set the proxies in the Package Manager Console:

    $env:http_proxy = "http://your.proxy.com:1234"
    $env:https_proxy = "http://your.proxy.com:1234"
    
    0 讨论(0)
  • 2021-02-18 13:59

    This also happens if you have a proxy setup in your internet settings.

    0 讨论(0)
  • 2021-02-18 14:01

    NuGet VS 2015 ServicePointManager does not support proxies with the https scheme

    Problem was not with proxy because the proxy was removed in my case. Therefore the visual studio config file had to be changed. But in other cases the answer can also lie in changing the config file to your situation.

    Go to: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

    find the config file devenv.exe.config and edit in administrator mode:

            <defaultProxy enabled="false" useDefaultCredentials="true">  
                <proxy bypassonlocal="True" proxyaddress="http://proxy.somesite.nl" />  
            </defaultProxy> 
    

    setting enabled="false" or adapt the section to your needs.

    Restart VS after changes.

    0 讨论(0)
提交回复
热议问题