in visual studio, can't see nuget packages or download new ones since last week. under corporate proxy , nothing our computer's configuration has changed. maybe problem our corporate network before that, i'd know can do.
i have set environment variables proxy (http_proxy , https_proxy) since day 1 , havent' changed anything.
i realized can access link in browser: http://api.nuget.org/packages/entityframework.6.1.3.nupkg
but not one: https://api.nuget.org/packages/entityframework.6.1.3.nupkg (the difference being https). infinite loading , err_connection_closed error in browser.
in visual studio, if change package source url http, can see package listing (which can't https) still following error when try install:
install-package : error occurred while retrieving package metadata 'entityframework' source 'nuget'.at line:1 char:1 + install-package + ~~~~~~~~~~~~~~~ + categoryinfo : notspecified: (:) [install-package], exception + fullyqualifiederrorid : nugetcmdletunhandledexception,nuget.packagemanagement.powershellcmdlets.installpackagecommand
i'm out of clue here, let me know if missing!
nuget reads web proxy settings nuget.configure file, environment variables , current user’s internet options. in situation, set environment variables. nuget find proxy settings nuget.configure file first. need set proxy in nuget.configure file under path c:\users\user name\appdata\roaming\nuget”. please add proxy settings below command.
nuget.exe config -set http_proxy=your company proxy url
please refer to: http://skolima.blogspot.sg/2012/07/nuget-proxy-settings.html
Comments
Post a Comment