正在下载nuget.org
I was in Dallas today speaking at the Dallas Day of .NET. During my keynote presentation - it included lots of NuGet demos - and for some reason the NuGet.org site was down at that exact moment. I ended up coming up in the middle somewhere. I'm not in Redmond so I don't know what happened and I won't speak for the team. However, my initial reaction was "I'm screwed" and the crowd was interested in how I was going to continue. We all depend on NuGet (the system) and NuGet.org (the server). I know that the team is aiming for "5 nines" availability with the NuGet.org site and that it runs in Azure now. I assume they'll put an explanation of the issue up on the site soon.
我今天在达拉斯的.NET达拉斯日演讲。 在我的主题演讲中-它包含了很多NuGet演示-出于某种原因,NuGet.org网站恰好在当时关闭。 我最终来到中间的某个地方。 我不在雷德蒙德(Redmond),所以我不知道发生了什么,我也不会为球队讲话。 但是,我最初的React是“我被搞砸了”,人群对我将如何继续下去很感兴趣。 我们都依赖于NuGet(系统)和NuGet.org(服务器)。 我知道该团队的目标是通过NuGet.org网站实现“五个九”的可用性,并且它现在可以在Azure中运行。 我认为他们会尽快在网站上对此问题进行解释。
Regardless, you might think I was stuck. Well, remember that NuGet caches the packages it downloads on your local hard drive. My cache was located at C:\Users\scottha\AppData\Local\NuGet\Cache.
无论如何,您可能会认为我被困住了。 好吧,请记住,NuGet会将下载的软件包缓存在本地硬盘上。 我的缓存位于C:\ Users \ scottha \ AppData \ Local \ NuGet \ Cache。
You can add that cache folder as a NuGet Source by going to Options | Package Manager | Package Sources. You can see I added it in my dialog below.
您可以通过转到选项|添加该缓存文件夹作为NuGet源。 包管理器| 软件包来源。 您可以在下面的对话框中看到我添加的内容。
Then later, when I'm using NuGet offline I can select my cache if need be. Again, I should never need to, but you get the idea:
然后,当我离线使用NuGet时,可以根据需要选择我的缓存。 再说一次,我永远不需要,但是您明白了:
If you're concerned about external dependencies on a company-wide scale, you might want to have a network share (perhaps on a shared builder server) within your organization that contains the NuGet packages that you rely on. This is a useful thing if you are in a low-bandwidth situation as an organization.
如果您担心公司范围内的外部依赖关系,则可能希望在组织内拥有网络共享(也许在共享的构建器服务器上),其中包含您依赖的NuGet软件包。 如果您作为组织处于低带宽情况,这将很有用。
If you think a feature that makes offline a more formal state is useful, please go vote up this "offline" issue on NuGet's CodePlex site and join the conversation with ideas on how you think "NuGet on an airplane" or "low/no bandwidth NuGet" should work. For example, should it automatically fall back? Should there be a timeout? Should there by an -offline explicit option? Should the existing Offline Cache be added automatically?
如果您认为使离线状态更正式的功能很有用,请在NuGet的CodePlex网站上对该“离线”问题进行投票,并加入有关您如何认为“飞机上的NuGet”或“低带宽/无带宽”的想法NuGet”应该起作用。 例如,它应该自动回退吗? 应该超时吗? 是否应该使用-offline显式选项? 是否应该自动添加现有的脱机缓存?
翻译自: https://www.hanselman.com/blog/how-to-access-nuget-when-nugetorg-is-down-or-youre-on-a-plane
正在下载nuget.org