Search code examples
delphiprojectdelphi-11-alexandria

Comprehensive list of all possible AppType values in DPROJ file?


The Delphi DPROJ file contains an AppType XML tag-pair, for example:

<AppType>Application</AppType>

...where the value of AppType could be: 'Application', 'Library', 'Package', etc. etc.

Where is a comprehensive list of all possible AppType values?

Also, in some cases, the AppType XML tag-pair is missing or is empty in the DPROJ file. What are the conditions to make the AppType XML tag missing from the DPROJ file?


Solution

  • There are some constants declared in ToolsAPI.pas:

      { Default IDE application/project types }
      sApplication = 'Application';
      sLibrary = 'Library';
      sConsole = 'Console';
      sPackage = 'Package';
      sStaticLibrary = 'StaticLibrary';
      sOptionSet = 'OptionSet';
    //  sAndroidService = 'AndroidService';
    

    This list may be extended in the future.