I have many Delphi 10 projects that are using the same units, let's call them "commons".
When I add anew unit to commons, I have to manually add it to each project. I have tried adding a {$INCLUDE commons.inc}
line into the uses
part of each .dpr
file:
uses
Forms,
{$INCLUDE commons.inc}
projectUnit1,
...;
commons.inc
has this content:
common1,
common2,
I can compile a project but cannot manage the units from commons.inc
. By manage, I mean Ctrl-F12, remove from project, etc.
This is from Delphi's help:
There is one restriction to the use of include files: an include file can't be specified in the middle of a statement part. In fact, all statements between the begin and end of a statement part must exist in the same source file.
I suppose that is why my idea does not work?
Am I doing something wrong, or is there another solution?