PDA

View Full Version : Set specific version number on build of new output


james_cline
10-12-2005, 01:00 PM
I'm not sure how or if this is possible but, with Visual Build Pro 6.0, how can I specify that I want the version to be 1.123.456.7 if and only if the VS.Net 2005 C# project has produced (or will produce) a new assembly?


here's the logic,

if Project has changed
then set specific version and build
else skip


Any ideas or hints?

Thanks,
Jim C

kinook
10-12-2005, 02:34 PM
You would need to retrieve the project's assembly file timestamp, build the project, then conditionally build the project (setting the version) if the timestamp changed. See attached sample.