Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incrementing Delphi XE project version number from command line

I have a Delphi XE project and I'm trying to change the version number of the program before building it with MSBuild. Version number information is located in the DPROJ file but if I change these values the version number does not change. I think the reason for this is that when you change version number in the IDE, Delphi saves the changes to both DPROJ and RES files.

Is there a way to compile the RES file from the command line with the changes in DPROJ file? I found this question which suggested saving the version number in an INC file and including that to the project but this feels a bit more complex solution compared to just making changes in DPROJ.

like image 317
Ville Salonen Avatar asked Mar 22 '11 08:03

Ville Salonen


1 Answers

shameless plug: http://www.dummzeuch.de/delphi/dzprepbuild/englisch.html

like image 195
dummzeuch Avatar answered Oct 13 '22 01:10

dummzeuch