NuGet 未显示任何包

发布于 2024-11-29 06:35:19 字数 547 浏览 0 评论 0原文

空 NuGet 对话框 我尝试使用浏览器访问官方软件包源列出的 URL,但只得到一个空列表。我还尝试了 Phil Haack 在 Binging 这个问题时发现的来源,并得到了类似的空列表。

这可能与防火墙有关 - 我现在正在工作,前几天我开始在家玩 NuGet 时,这一切都很好。但 NuGet 似乎正在使用我的 IE 设置,并且我能够访问 StackOverflow,如您所见。 :)

有没有办法将包下载到本地文件夹?然后,我会将该文件夹添加到源列表中以供 NuGet 检查。

谢谢!

工作电脑设置截图(这个没有包): 在此处输入图像描述

家庭电脑设置屏幕截图(此图可查看所有软件包): 在此处输入图像描述

PC 目前彼此相邻 - 均位于连接到同一路由器的同一有线网络上,等等!

Empty NuGet Dialog
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):
enter image description here

Screenshot from home PC of Settings (this one sees all packages):
enter image description here

PCs are currently RIGHT next to each other - both on same wired network connected to same router, etc.!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

太傻旳人生 2024-12-06 06:35:19

尝试从该窗口添加新的包源并将源设置为 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

死开点丶别碍眼 2024-12-06 06:35:19

我在 VS 2010 中遇到了同样的错误。但是,Rick Liddle 接受的答案对我不起作用。奇怪的是,我可以毫无问题地从包管理器控制台获取可用包的列表,因此它仍然不是连接问题。

最后我意识到有更新版本的 NuGet 可用,所以我安装了它,并且它工作了!步骤如下:

  1. 从 Windows 卸载 NuGet(控制面板 -> 程序和功能)。
  2. 从 Visual Studio 2010 卸载 NuGet 包管理器(工具 -> 扩展管理器)。
  3. 关闭视觉工作室。
  4. http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c

就是这样。顺便说一句,我注意到 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:

  1. Uninstall NuGet from Windows (Control Panel -> Programs and Features).
  2. Uninstall NuGet Package Manager from Visual Studio 2010 (Tools -> Extension Manager).
  3. Close Visual Studio.
  4. Download and install the latest version of NuGet Package Manager (2.0.30625.9003 at the time of writing) from http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c.

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/ .

北方的巷 2024-12-06 06:35:19

我在 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.

哥,最终变帅啦 2024-12-06 06:35:19

今天有这个问题。我的列表不是空的,但它只有 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文