Stop Delphi generating .res files for unit test applications
Posted by jpluimers on 2018/06/27
By default, Delphi always generates .res resource files when compiling a project.
There are two things you need to change to turn this off; the first is on by default, the second could be your own change:
- Remove the
{$R *.res}
from your .dpr file and turn “Runtime Themes” to “None” from the default “Enable runtime themes” under “Target” settings “All configurations – 32-bit Windows platform” and “All configurations – 64-bit Windows platform” - Disable “Include version information in project” under “Target” settings “All configurations – 32-bit Windows platform” and “All configurations – 64-bit Windows platform”
–jeroen
PS:
Thomas Mueller (dummzeuch) commented on G+ :
First, turn off these options, and only afterwards change the DPR. Because after removing the *.res line, some of these options will be disabled, e.g. version information.
Rudy Velthuis said
Well yes, you can do that (even modify the source to remove the res directive), but WHY? What is it good for?