I just upgraded one of my projects from Delphi XE to XE7. The version info for 'All platforms/All configurations' global target (should I call it 'base'?) was copied correctly from the old project.
Company name: xxx
File version: 3.2.1
etc
However, when I checked the sub-targets (32 bit /release, 32 bit /debug, etc) they are all set to ''. So they don't copy/inherit the info from 'All platforms/All configurations'.
Company name: ''
File version: 1.0.0
etc
How do I force the sub-targets to inherit from 'All platforms/All configurations'.
UPDATE: It seems to be a design issue with Delphi XE7. The sub-targets stay in sync as long as you DON'T edit them. A 'Sync sub-targets to main target' button is missing from that window. There is also a BUG close related to this (see my answer for details).
This is a bug in the IDE (Delphi XE7).
How to reproduce:
Set the main target to version 1.0.0.0.
Save project.
Restart IDE.
All sub-targets are in sync.
Now open the DPR and edit anything in it. Save it.
Set the main target to version 2.0.0.0.
Save project.
Restart IDE.
The current sub-target (the one that was active while you edited the DPR file) is not in sync anymore. It will get stuck to 1.0.0.0
Solution:
Close the project in IDE. Open the DPROJ file in a text editor (not in IDE!) and deleted the entries containing the wrong version info, for ex. where VerInfo_MajorVer=1 instead of 2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With