0
我在安装在Visual Studio 2017年后续的使用程序包管理器控制台NuGet包问题,如果错误的完整细节:远程名称无法解析:api.nuget.org“
install-package : 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'
At line:1 char:1
+ install-package selenium.webdriver -version 3.0.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
我已经检查过每个Nuget服务器的状态here并且所有的都可以运行。我也发现了类似的帖子,但大多数都足够老了。我甚至试图重置我的路由器,但仍然是一样的。
希望有人帮助我。我已经发邮件给他们的支持,但还没有得到答复。
通常发生这种情况时,您需要更新您的Nuget版本。您可以通过Visual Studio Extensions来完成此操作。您可能还希望通过以下任一链接查看更多信息:https://github.com/NuGet/Home/issues/5358和https://stackoverflow.com/questions/6723574/install-package-the-remote-名称可能而不是待解决的程序包-的NuGet-组织?RQ = 1 – JasCav