I'm working on taking control of some project options external to the IDE e.g. version numbering. I can do this OK if I either (i) compile the relevant RC file externally to create the RES file and include that in the DPR, or (ii) add the RC file to the project.
However, I cannot get it to work just by adding a line of the form {$R 'dummy.res' 'dummy.rc' } to the DPR. It will compile/build OK if and only if the RES file already exists. I'm using XE6 but I get the same behavior in XE and even Delphi 7.
But there are numerous answers that suggest that adding such a line to the DPR is all one needs to do. Can anyone clarify, please?