Skip to content

Help! Prevent Delphi modifying its DPK unexpectedly #13

@giorgiobazzo

Description

@giorgiobazzo

Hi Andreas,

I would like to know if you know any solutions to prevent the IDE from removing INCLUDE directives from .dpk or .dpr files. I have a specific situation where I need to use something like {$INCLUDE units.inc} right above "end." in the .dpk file. The units.inc file has the entire definition of the "contains" clause, so instead of declaring the "contains" and the units directly in the .dpk file, I would like to use an .inc file.
This even works for me. The big problem with this is, every time the project makes any changes to its options, through the menu: Project / Options, the IDE reformats the entire .dpk file, and removes all $INCLUDE directives, which forces me to redo it them.

As you've already done an excellent job with DDevExtensions and IDE Fix Pack, I believe you might know something along these lines.

Any chance that DDevExtensions has an option for this? :)

Grateful for the attention!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions