Hi William, I like the Drops folder idea, thanks for the tip.
Cheers, Eddie From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of William Bartholomew Sent: Monday, 3 December 2007 10:05 AM To: [email protected] Subject: RE: [OzTFS] BuildNumberOverrideTarget and detecting existing build number? Eddie, What we did was store the next version number in a text-file in the drops folder; we read that in in the BuildNumberOverrideTarget and then increment it by 1 and write the result back out to the text-file. You could also use the BuildStore class from the TFS API to query the build history and do it that way. You will find an example of how to use the BuildStore class in the Getting Started with the TFS API presentation and sample application I presented at the Queensland VSTS User Group: http://qvstsug.org/Lists/Announcements/DispForm.aspx?ID=9&Source=http%3A%2F%2Fqvstsug%2Eorg%2Fdefault%2Easpx Regards, William ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eddie Tse Sent: Monday, 3 December 2007 8:22 AM To: [email protected] Subject: [OzTFS] BuildNumberOverrideTarget and detecting existing build number? Hi, When you override the target <BuildNumberOverrideTarget> to generate a custom build number, is there a way check in team build if the newly generated BuildNumber does not exist? So I can increment the build number by 1 if the generated number already exist so it won't generate a error like this TF42064: The build number 'x.x.x.x' already exists for build definition Regards, Eddie Tse OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net
