Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Project Management    [ Add a report in this area ]  
Report #:  101053   Status: Reported
Delphi ignores .dproj file contents in favour of .res file
Project:  Delphi Build #:  12.0.3420.21218
Version:    12.3 Submitted By:   Johan S
Report Type:  Feature Specification issue Date Reported:  11/16/2011 12:52:59 AM
Severity:    Extreme corner case Last Updated: 11/16/2011 6:07:05 PM
Platform:    All versions Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 11
Description
Delphi does not read project options from the .dproj file if there is a compiled .res file available. This causes problems in properly version controlling a Delphi project since even if changes are reflected in the .dproj file, each developer always has their own compiled (and outdated) .res file from which Delphi loads project options. Unless the .res file is manually removed in order to force it to be re-generated from the .dproj file, the project options are not updated.

Further information in this thread:
https://forums.embarcadero.com/thread.jspa?threadID=63656

CodeGear?Delphi? 2009 Version 12.0.3420.21218
Steps to Reproduce:
1. Start a new project, set project version information using the project options editor.
2. Save the project and then store a separate copy of the current projectname.dproj file.
3. Close the project and re-open.
4. Alter the version information for the project using the project options editor.
5. Save the project.
6. Notice that both the projectname.dproj file and the projectname.res files are modified.
7. Close the project.
8. Replace the current projectname.dproj file with the one saved in step 2.
9. Re-open the project.
10. Although the version information is different in the .dproj file, Delphi reads it from the .res file.
Workarounds
The proper solution would be to have the Delphi IDE always read from the .dproj file and never from the .res file.

A workaround is to always delete the project's .res file after any change to the project options. This workaround is of course rather error-prone for a team working on the same project.
Attachment
None
Comments

Johan S at 12/8/2011 1:57:01 AM -
A side-effect of the above workaround is that the application icon disappears, since it it stored only in the project resource file.

A functioning workaround is to move version information and icon to external resource files and simply stop using the project resource file created by Delphi.

Server Response from: ETNACODE01