Nuget包备份

发布于 2024-12-22 01:44:46 字数 452 浏览 0 评论 0原文

将解决方案中使用的 nuget 包检查到源代码管理中是一种常见的做法。使用 nuget 1.6 的新包恢复功能不再需要将包签入源代码管理。但是,这会使您的项目依赖于 nuget.org。有时,所需的包在 nuget.org 上不可用,并且在您的组织本地不可用,否则您将无法构建项目。

是否有任何企业解决方案可以集中备份项目中使用的 nuget 包?一种场景是拥有一个企业 nuget 代理服务器,项目可以从该服务器获取其 nuget 包。该代理服务器可以以某种方式备份所请求的包,例如将它们存储在备份文件夹中并将内容签入共享源代码控制存储库。另一种情况是让备份逻辑在每个开发人员的机器上自动完成。

总之,备份 nuget 包有哪些好的自动化选项?

It has been common practice to check nuget packages used in a solution into source control. With the new package restore feature of nuget 1.6 it is no longer necessary to check packages into source control. However, this leaves your projects dependent on nuget.org. There may come a time when a needed package is not available on nuget.org and not available locally in your organization, without which you would not be able to build your project.

Are there any enterprise solutions for backing up nuget packages used in projects in a centralized fashion? One scenario is to have an enterprise nuget proxy server, from which projects get their nuget packages. This proxy server can backup the requested packages in some fashion, like storing them on a backed up folder and checking the content into a shared source control repository. Another scenario is to have the backup logic done automatically on each developer's machine.

In summary, what are some good automated options for backing up nuget packages?

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

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

发布评论

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

评论(2

默嘫て 2024-12-29 01:44:46

您应该看看 JFrog 的 Artifactory (http://www.jfrog.com/):他们最近添加了支持对于 NuGet。 Artifactory 可以充当多个 NuGet 源的中央缓存。我在今年早些时候的一次会议上与开发团队进行了交谈,他们真的很兴奋。

还有 ProGet,虽然我没有使用过这个: http://inedo.com/proget/overview

You should look at Artifactory from JFrog (http://www.jfrog.com/): they recently added support for NuGet. Artifactory can act as a central cache for multiple NuGet feeds. I spoke to the development team at a conference earlier this year, and they're really switched on.

There is also ProGet, although I have not used this: http://inedo.com/proget/overview

御弟哥哥 2024-12-29 01:44:46

我不知道任何现有的备份解决方案,但这绝对是我们希望在某个时候解决的问题。我想到了几个想法。

  1. 使用 DropBox 将包目录备份到另一个位置。
  2. 在本地运行您自己的 NuGet.org 实例,并让您的 CI 服务器使用已安装的包填充本地实例。
  3. 使用 MyGet.org 托管您的团队已安装的所有软件包的私人源。

I don't know of any existing backup solutions, but this is definitely something we'd like to solve at some point. A couple of ideas come to mind.

  1. Use DropBox to backup the packages directory into another location.
  2. Run your own instance of NuGet.org locally and have your CI server populate the local one with installed packages.
  3. Use MyGet.org to host a private feed of all the packages your team has installed.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文