Auto-increment Version Number on Check-in for Team Foundation
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.
精彩评论