NuGet 未显示任何包
我尝试使用浏览器访问官方软件包源列出的 URL,但只得到一个空列表。我还尝试了 Phil Haack 在 Binging 这个问题时发现的来源,并得到了类似的空列表。
这可能与防火墙有关 - 我现在正在工作,前几天我开始在家玩 NuGet 时,这一切都很好。但 NuGet 似乎正在使用我的 IE 设置,并且我能够访问 StackOverflow,如您所见。 :)
有没有办法将包下载到本地文件夹?然后,我会将该文件夹添加到源列表中以供 NuGet 检查。
谢谢!
工作电脑设置截图(这个没有包):
家庭电脑设置屏幕截图(此图可查看所有软件包):
PC 目前彼此相邻 - 均位于连接到同一路由器的同一有线网络上,等等!
I've tried going to the URL listed for the official package source with my browser and I only get an empty list. I also tried Phil Haack's source found while Binging this issue and got a similar empty list.
It could be firewall related - I'm at work, now, and this worked just fine the other day when I started playing with NuGet at home. But NuGet seems to be using my IE settings and I am able to access StackOverflow, as you can see. :)
Is there a way to download the packages to a local folder? I would then add that folder to the list of sources for NuGet to check.
Thanks!
Screenshot from work PC of Settings (this one has no packages):
Screenshot from home PC of Settings (this one sees all packages):
PCs are currently RIGHT next to each other - both on same wired network connected to same router, etc.!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
尝试从该窗口添加新的包源并将源设置为 http://packages.nuget.org /v1/FeedService.svc
Try adding a new package source from that window and set the source to http://packages.nuget.org/v1/FeedService.svc
我在 VS 2010 中遇到了同样的错误。但是,Rick Liddle 接受的答案对我不起作用。奇怪的是,我可以毫无问题地从包管理器控制台获取可用包的列表,因此它仍然不是连接问题。
最后我意识到有更新版本的 NuGet 可用,所以我安装了它,并且它工作了!步骤如下:
就是这样。顺便说一句,我注意到 NuGet 官方包源的 URI 已更改为 https://nuget.org/ api/v2/ 。
I was experiencing the same error in VS 2010. However, the accepted answer by Rick Liddle wasn't working for me. The strange thing is that I could get a list of available packages from the Package Manager Console no problem, so it still wasn't a connectivity issue.
Finally I realized that a newer version of NuGet was available, so I installed it, and it worked! Here are the steps:
That's it. As an aside, I noticed that the URI of the NuGet Official Package Source has changed to https://nuget.org/api/v2/ .
我在 VS2015 中也遇到了类似的问题。默认包源 (https://www.nuget.org/api/v2 /curated-feeds/microsoftdotnet/)未返回任何结果。切换到 https://www.nuget.org/api/v2 并能够找到包再次。
工具->选项->Nuget Package Manager->Package Sources并添加新的包源。
I had similar issue with VS2015. The default package feed (https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/) returned no results. Switched to https://www.nuget.org/api/v2 and was able to find packages again.
Tools->Options->Nuget Package Manager->Package Sources and add new Package Source.
今天有这个问题。我的列表不是空的,但它只有 6 页,而且我需要的东西都没有。
右上角的标志显示 NPM 已更新。通过更新并没有恢复丢失的软件包。
昨天(2014-04-02)Nuget 进行了更新。
Had this issue today. My list wasn't empty, but it only had 6 pages and nothing I needed was available.
The flag in the top right corner showed there was an updated to the NPM. Updating via that didn't restore the missing packages.
There was an update to Nuget yesterday (2014-04-02).