Nuget 包管理器在 VS Express 2013 中不起作用

标签 nuget visual-studio-2013

我正在使用 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/

相关文章:

visual-studio - 使用 NuGet contentFiles 复制文件以构建输出目录

c# - 对不一致的行结尾说"is"?

c# - 如何从sqlite sql查询中检索日期并发送到调用函数

c++ - 当在命令行上指定要打开的文件时,MFC 应用程序在 ProcessShellCommand() 中崩溃

c# - 无法加载文件或程序集 'WebGrease,版本 = 1.5.1.25624

c# - 全局安装 Nuget 包

.net - NuGet 锁定文件无法使用 --locked-mode 还原

c# - 打印电子邮件

c# - 为什么在 ASP.NET Core Web API 中使用 SkiaSharp 会导致崩溃?

c# - Nuget 防止在解决方案中生成包文件夹