Delphi10.3 项目的构成(File Extensions of Files Generated by RAD Studio)
Step1、打开 Delphi10.3,选择【File | New | VCL Forms Application - Delphi】,创建一个 Delphi 应用程序;
Step2、选择【File | Save All】,将我们的默认Delphi程序保存到一个独立的文件夹(例如 F:\Delphi10.2\First)中;
Step3、在 Project Manager 中的 Build Configurations 和 Target Platforms 选项中分别选择 32位 Debug、32 位 Release、64位 Debug和64位 Release组合,并按【F9】运行我们的程序;
Step4、接下来打开Windows资源管理器,打开刚刚保存的文件夹看看,如下图:
并且 Win32(Win64) 的 Debug(Release) 目录下文件如下:
下面结合 Delphi10.2 的帮助文件说明下每个文件的具体意义:
- 【Project1.dpr】Delphi project source; when compiled, produces .exe, .dll, or .ocx file.
- 【Project1.dproj】Delphi project file created by the IDE. Contains the current settings for project options, such as compiler and linker settings, directories, conditional directives, and command-line parameters. Set these options using Project > Options. This file is not used when compiling a project from the command line using the command line compiler.
- 【Project1.dproj.local】User-specific project options.
- 【Project1.identcache】Information used for refactoring.
- 【Project1.res】Compiled and uncompiled resource files.
- 【Unit1.dfm】A Windows VCL form file.
- 【Unit1.pas】Delphi source file.
- 【_history 文件夹】 There are now three versions of the file stored in the current directory in a hidden directory named __history.
- 【_recovery 文件夹】 When Tools > Options > Environment Options > AutoRecover is enabled, RAD Studio saves the recovery files in the hidden folder called
_recovery
, in the folder of your project. - 【Win32 文件夹 】Output folder, 32-bit Windows platform
- 【Win64 文件夹】 Output folder, 64-bit Windows platform
- 【Project1.exe】 应用程序
- 【Unit1.dcu】Delphi compiled unit file.
-----------------------------------------
【Project1.dpr】Delphi项目源码; 编译时,生成.exe,.dll或.ocx文件。
【Project1.dproj】 由IDE创建的Delphi项目文件。包含项目选项的当前设置,例如编译器和链接器设置,目录,条件指令和命令行参数。
使用项目>选项设置这些选项。
使用命令行编译器从命令行编译项目时,不使用此文件。
【Project1.dproj.local】用户特定的项目选项。
【Project1.identcache】用于重构的信息。
【Project1.res】编译和未编译的资源文件。
【Unit1.dfm】Windows VCL表单文件。
【Unit1.pas】Delphi源文件。
【_history文件夹】现在有三个版本的文件存储在名为__history的隐藏目录中的当前目录中。
【_recovery文件夹】当启用工具>选项>环境选项>自动恢复时,RAD Studio会将恢复文件保存在项目文件夹中名为_recovery的隐藏文件夹中。
【Win32文件夹】输出文件夹,32位Windows平台
【Win64文件夹】输出文件夹,64位Windows平台
【Project1.exe】应用程序
【Unit1.dcu】 Delphi编译单元文件。