我正在使用VS 2010(软件包管理器控制台)下载NuGet(2.5.40416.9020/Latest)软件包.它使用URL https://nuget.org/api/v2/.它给我的错误如下.
Install-Package : An error occurred while loading packages from'https://nuget.org/api/v2/': The remote name could not be resolved: 'nuget.org'
At line:1 char:16
+ Install-Package <<<< Rx-Main
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Run Code Online (Sandbox Code Playgroud)
但是当我通过浏览器访问相同的URL时,我可以浏览该网站.我在公司网络上,因此防火墙可能会阻止端口(80和443除外).
那么NuGet在通过Package Manager Console(VS 2010)下载软件包时使用哪个端口?