将程序集版本号与 TFS 内部版本号对齐 [英] Aligning assembly version numbers with TFS Buildnumber

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

问题描述

我想知道是否有一种方法可以在不使用 BuildNumberOverrideTarget 的情况下同步内部版本号 (20080213.1),而我必须生成自己的内部版本号?我基本上想使用默认/内置的 tfs buildnumber 生成器,但想访问它以使我的程序集版本与之对齐.可以这样做吗?这样做是否明智?

I am wondering if there is a way to synchronize the build numbers (20080213.1) without using the BuildNumberOverrideTarget where I would have to generate my own build number? I basically want to use the default/built-in tfs buildnumber generator but want to access it to align my assembly versions with it. Can this be done and is it a sensible way to do it this way?

推荐答案

你的要求是非常明智的,有很多方法可以实现.

What you are asking for is very sensible and there are a number of ways to achieve this.

就我个人而言,当我这样做时,我不喜欢将包含构建服务器生成编号的文件签入到版本控制中 - 它只是在跨分支合并代码时引入了太多的头痛,但我也喜欢开发人员在进行工作站构建与正确的构建服务器派生程序集时使用的已知版本号,以便很容易区分它们.

Personally, when I do this I don't like to check the files in to version control that have the build server generated number in them - it just introduces too many head-aches when merging code across branches but also I like a known version number to be used when a developer does a workstation build vs a proper build server derived assembly to make it really easy to tell them apart.

有关我喜欢如何做的更多信息,请查看 TFS Build Recipies wiki:

For more information on how I like to do it, take a look at the TFS Build Recipies wiki:

或我关于该主题的博文

希望对你有帮助,

马丁.

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

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