Nuget Package Manager无法在VS Express 2013中运行

时间:2013-11-12 10:11:06

标签: nuget visual-studio-2013

我正在使用Visual Studio Express 2013。

尝试安装nuget软件包时,我收到错误(2012年试用时没有错误):

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 - &gt;工具 - &gt;扩展和更新说: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 - 当我点击它时,它会回到“检索信息”循环。

有没有人有任何想法如何解决这个问题?

谢谢Mark,

2 个答案:

答案 0 :(得分:3)

我遇到了同样的问题。如果在启动VS时选择“以管理员身份运行”,我可以从VS2013连接到NuGet。

答案 1 :(得分:0)

我有这个确切的问题,它通过禁用防火墙解决了。 后来我启用了防火墙,并检查了被阻止的程序和未阻止的visual studio,由于某种原因被阻止了。