在Delphi 2010中将文件添加到DPR文件与项目路径 [英] Adding files to the DPR file vs project paths in Delphi 2010
问题描述
我们正在从D7迁移到D2010,并且正在就清理项目路径进行辩论。我们有一些目录包含大量的Pas文件,这些目录包含在一些项目路径中,但只有少数文件实际上被任何一个项目使用。
We are just migrating from D7 to D2010 and are having a debate about cleaning up the project paths. We have a number of directories with a large number of Pas files that are included on some project paths, but only a few of the files are actually used by any single project.
一个选择是完全消除项目路径,只有dpr中有所有使用的文件。
One option is to eliminate the project paths completely and only have all used files in the dpr.
第二个选项是保留dpr中所需的文件,并具有项目路径到其余文件的目录。
The second option is to keep only the needed files in the dpr and have project paths to the directories for the rest of the files.
另一个选项是否有任何参数?
Is there any argument for one option over the other?
推荐答案
在dpr中显式地显示所有单元,可以大大提高编译时间,代码完成,错误洞察和一般导航。
它不妨碍您将文件保存在文件夹和子文件夹中,但不要依赖不同的路径来找到它们。
在一个大型项目中,数百万的LOC,它使一个巨大的差异。
这篇关于在Delphi 2010中将文件添加到DPR文件与项目路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!