内部版本VS版本号 [英] Build Version vs Revision number

查看:370
本文介绍了内部版本VS版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用颠覆源控制的asp.net/C#应用程序。

I have an asp.net/C# app that uses subversion for source control.

我的应用程序会自动增加它的AssembleVersion和的AssemblyFileVersion上就像一个魅力每个构建,并显示在网站的管理方内部版本号。

My app automatically increases it's AssembleVersion and AssemblyFileVersion on each build which works like a charm, and displays the build number in the administration side of the site.

我们跟踪AssembleVersion和的AssemblyFileVersion的时候我们做的部署,但是,当一个问题出现,我们需要。回滚到某个版本,我们不知道在颠覆定位到哪些修改

We keep track of AssembleVersion and AssemblyFileVersion's when we do deployment, however, when an issue arises and we need to roll back to a certain version, we have no idea which revision to target in subversion.

我有几点想法:


  1. 保存AssembleVersion在每个文件注释

  2. 有一个关键字在提交该得到的换成AssembleVersion每个意见提交(仍然需要弄清楚如何要做到这一点)

任何帮助和建议,可以理解的。

Any help and suggestions will be appreciated

< STRONG>更新:
选项1,实际上是一个愚蠢的想法,造成这将意味着每次我建,所有的文件将被标记为已更新,当我承诺,每一个文件将被更新

Updated: option "1" is actually a stupid idea,cause this will mean that everytime i build, all files will be marked as updated and when i commit, every single file will be updated

推荐答案

当我建,我把版本号无处不在。

When I build, I put that build number everywhere.


  • 我把它放在一个标记在SVN

  • 我把它放在我每次建立组装的程序集元数据。

  • 我把它添加到我的安装程序的文件名末尾。

  • 我把它放在我的每一个部署的网页页脚。

  • 我把它放在我的报告的页脚。

  • 我把它放在我的客户端应用程序的启动画面。

  • 我把它放在我的安装程序的欢迎屏幕。

  • I put it in a tag in svn.
  • I put it in the Assembly metadata of every assembly I build.
  • I append it to the end of the filename in my installers.
  • I put it in the footer of each of my deployed webpages.
  • I put it in the footer of my reports.
  • I put it in the splash screen of my client side apps.
  • I put it in the welcome screen for my installers.

我不把它的唯一的事情就是我的咖啡,其中的我带黑色

The only thing I don't put it in is my coffee, which I take black.

所有这一切都让维护者一目了然知道究竟在何处的代码来自于他们所看到的,无论他们正在浏览的网页,或寻找在资源管理器中,或任何内置组件之一的属性。

All of this lets a maintainer know at a glance exactly where the code came from for what they're seeing, whether they're viewing a webpage, or looking at the properties of one of the built assemblies in Explorer, or whatever.

这篇关于内部版本VS版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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