Nuget包备份
将解决方案中使用的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该看看 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
我不知道任何现有的备份解决方案,但这绝对是我们希望在某个时候解决的问题。我想到了几个想法。
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.