We are currently using Delphi 2009 and GIT to develop the application. We created a prebuild script to generate the version number and build ID using the information from GIT, and compile it as a resource that is included in the project. The problem is that this script does not work on regular compilation. This means that other developers may get a mismatch between the actual version number and the number in the resource (especially when switching branches in git).
Since we use our software to perform some critical calculations, we would like to use this assembly identifier to reproduce the calculations and troubleshoot.
Besides trying to get my developers to press shift-F9 often, how can I make sure that the prebuild script runs when necessary (ideal for every compilation)?
Jason
UPDATE: it is true that the pre-build script runs every time you compile. The problem was that I expected to get a different result by pressing F9 after creating the tag in git, although the code has not changed.
source
share