1

I am looking for a way to incorporate an incremental version number into a large delphi application. We have automated the Delphi build process by using a script to call MSBUILD with the appropriate parameters for each Delphi project within the entire application. Ideally, I want to be able to generate the next version number at the beginning of the build script and have that included in each .EXE and .BPL that is created by the build.

Does anyone have any suggestions for doing this without spending $$$ on a third party build tool?

BTW we are using Delphi XE2.

Thank You

sboydlns
  • 29
  • 4

1 Answers1

2

I would strongly suggest to disable including the version resource information by Delphi, and include your own (central) version .rc script. Then write a tool/script that (re)generates this version resource script up front of the MSBuild configuration. (For an example VERSIONINFO rc, see here)

Stijn Sanders
  • 35,982
  • 11
  • 45
  • 67