名为“NuGet”的包源无效或不可用
我昨天安装了 Nuget 1.2,今天,当我尝试安装实体框架包时,我在包管理器控制台中遇到了以下问题:
PM>安装包实体框架
Install-Package :名为“NuGet 官方包源 [https://go.microsoft.com/fwlink/?LinkID=206669]”的包源是
无效或不可用,因此当前无法访问。
行:1 字符:16
+ 安装包<<<<实体框架
+ 类别信息:未指定:(:) [安装包],InvalidOperationException
+FullyQualifiedErrorId:NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
我可以上网冲浪,而且我认为没有任何事情阻止 Visual Studio 访问互联网。
I have installed Nuget 1.2 yesterday, and today, while I was trying to install Entity Framework package, I have encountered the following problem in the Package Manager Console:
PM> install-package entityframework
Install-Package : The package source named 'NuGet official package source [https://go.microsoft.com/fwlink/?LinkID=206669]' is either
invalid or not available and thus is currently unreachable.
At line:1 char:16
+ install-package <<<< entityframework
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I can surft the internet and I don't think anything is preventing Visual Studio to access the internet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
实际上,有一些东西阻止了 Visual Studio 访问 Internet。 VS 似乎对我的代理服务器有一些问题。
因此,我使用了 中介绍的解决方案这里现在一切正常。
Actually, there was something that was preventing Visual Studio from accessing the internet. Seems like VS had some problems with my proxy server.
So I used a solution that has been introduced in here and everything works fine now.
我的设置也出现了同样的问题。但是,我发现 VS 2010 使用 Internet Explorer 中的代理设置。我已经从 IE 中删除了代理设置,并且它已成功连接。
Same issue happened to my setup. However, i found that VS 2010 uses proxy settings from Internet Explorer. I have removed proxy settings from IE and it was successfully connecting.
要永久纠正此问题,必须使用 Microsoft 的修复程序
这是文件 KB2581019(VS10SP1-KB2581019-x86.exe) 的名称
当此链接处于活动状态时,您可以下载其路径更正。
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx ?DownloadID=38654
解决了!
To correct this problem permanently, a fix from Microsoft must be used
This is the name of the file KB2581019(VS10SP1-KB2581019-x86.exe)
While this link is active you can download path correction for it.
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=38654
It's solved!