如何安全地管理本地 nuget 包? [英] How do I manage local nuget packages safely?

查看:68
本文介绍了如何安全地管理本地 nuget 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的团队刚刚开始使用 Nuget 包,目前在本地服务器目录中.当几个开发人员在同一个项目上工作时,问题就开始了,并且都意外地将他们的补丁版本升级到相同的版本,并且在发布时他们相互覆盖.安全使用本地 nuget 包的最佳方法是什么?

Our team has just started working with Nuget packages, for now locally on a local server directory. The problem starts when several developers are working on the same project and both accidentally up their patch build to the same version and upon publishing it they override each other. What the best way to work with local nuget packages safely?

推荐答案

如果你使用 git 你可以使用 Nerdbank GitVersioning.

If you're using git you can use Nerdbank GitVersioning.

它使用您的 git 历史记录来计算每个提交的唯一版本号,因此来自 2 个不同提交的构建将始终具有不同的版本号

It uses your git history to calculate a unique version number from each commit, so builds from 2 different commits will always have different version numbers

这篇关于如何安全地管理本地 nuget 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆