Nuget 包管理器在 VS Express 2013 中不起作用 [英] Nuget Package Manager not working in VS Express 2013

查看:56
本文介绍了Nuget 包管理器在 VS Express 2013 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Visual Studio Express 2013.

I'm using Visual Studio Express 2013.

尝试安装 nuget 包时,出现错误(在 2012 express 中尝试时没有错误):

When trying to install a nuget package, I am getting an error (no error when trying in 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 包 - 没有问题).

Internet is working (I have Vs 2012 working and installing nuget packages at the same time - with no issues).

VS -> 工具 -> 扩展和更新说:无法检查更新,因为在尝试联系服务器时发生以下错误:无法连接到远程服务器 - 请单击此处重试请求 - 当我点击它时,它会回到检索信息"循环.

VS -> Tools -> Extensions and Updates says: 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 - when I click that, it goes back to the "retrieving information" loop.

有人知道如何解决这个问题吗?

Does anyone have any ideas how to resolve this?

谢谢你,马克

推荐答案

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

I had the same problem. I was able to connect to NuGet from VS2013 if I select "Run As Administrator" when launching VS.

这篇关于Nuget 包管理器在 VS Express 2013 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆