开发者

Auto-increment Version Number on Check-in for Team Foundation

开发者 https://www.devze.com 2023-02-20 11:35 出处:网络
I would like to have all project files automatically increment the version number when a change is checked in. Is there a way to configure TFS to automatically increment on check-in or at least execut

I would like to have all project files automatically increment the version number when a change is checked in. Is there a way to configure TFS to automatically increment on check-in or at least execute a script on the project to do it for me?

I understand that in standard practice builds usually increment the version number but this doesn't make too much sense to me as you can have 2 subsequent builds that may not have any differences at all yet the v开发者_开发百科ersions will be different.


You need to get a little into the Workflow Foundation, but I used this very clear description from Richard Banks:

http://www.richard-banks.org/2010/07/how-to-versioning-builds-with-tfs-2010.html

If you know a little C# you can easily edit it to your own needs.

0

精彩评论

暂无评论...
验证码 换一张
取 消