Incrementing automatically the third field in the version number  
Author Message
Javier Martinez





PostPosted: Team Foundation Server - Build Automation, Incrementing automatically the third field in the version number Top

Hi

Is there any way to automatically increment third field in the version number to represent a nightly build

thanks

Javier



Visual Studio Team System35  
 
 
Aaron Hallberg





PostPosted: Team Foundation Server - Build Automation, Incrementing automatically the third field in the version number Top

There is no out-of-the-box support for this, but it should be possible to implement it. You will need to use the AssemblyInfo task (available on GotDotNet, I believe), and you'll need to come up with a method for determining the next number. One possibility would be to add a text file to version control that contains your number and then write a custom task to check it out, increment the number (and return it), and check it back in. Another possibility would be to use your number for both the version number on the assembly and for the Team Build BuildNumber. Then you could use the GetListOfBuilds web method (on the BuildStore service) to get all the builds, sort them by number, and add one to the last number you find.

-Aaron



 
 
Buck Hodges





PostPosted: Team Foundation Server - Build Automation, Incrementing automatically the third field in the version number Top

Gautam Goenka discusses this in the blog post http://blogs.msdn.com/gautamg/archive/2006/01/04/509146.aspx.

Buck