我正在使用 Visual Studio Express 2013。
尝试安装 nuget 包时,出现错误(在 2012 express 中尝试时没有错误):
PM> Install-Package AutoMapper
Install-Package : Unable to connect to the remote server
At line:1 char:16
+ Install-Package <<<< AutoMapper
+ CategoryInfo : NotSpecified: (:) [Install-Package], WebException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
互联网正在工作(我有 Vs 2012 同时工作和安装 nuget 包 - 没有问题)。
VS -> 工具 -> 扩展和更新 说:
Cannot check for updates because the following error(s) occurred whil trying to contact the server: Unable to connect to the remote server - please click here to retry the request
- 当我点击它时,它会回到“检索信息”循环。有没有人有任何想法如何解决这个问题?
谢谢你,马克
最佳答案
我有同样的问题。如果我在启动 VS 时选择“以管理员身份运行”,我就可以从 VS2013 连接到 NuGet。
关于Nuget 包管理器在 VS Express 2013 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19926314/