I have a Delphi (2开发者_运维百科007) project which, when I opened it, gave a very long delay (i.e., 2 full minutes) before the IDE became responsive.
I have other projects that are as large as this one, and there was no such delay. Finally I took a look inside the .DPROJ file, and found hundreds of entries like this one:
<None Include="ModelSupport_MyProjectName\Unit1\default.txaPackage" />
<None Include="ModelSupport_MyProjectName\Unit2\default.txaPackage" />
<None Include="ModelSupport_MyProjectName\Unit3\default.txaPackage" />
I deleted all of those lines, and now the huge delay is gone.
So what is the purpose of these lines? Why did they create such a long delay? Did I do any harm by removing them? More generally, is there good documentation on the structure of the .DPROJ file format from Codegear/Embarcadero?
These are Together files. To display your code as UML class diagram for example. I'm not sure but the delay could be from the Together packages loading or maybe the diagrams loading or updating.
There is no harm in removing them, unless you wanted to use the model support. Some refactorings also require them.
.dproj files are Microsoft msbuild files of which the structure is documented here, but there is no documentation to my knowledge of the Delphi specific use of msbuild there.
I'v noticed on more than one occasion the IDE in 2007 is messing up the dproj file, i.e. adding random dependencies. I hope the later version have this fixed because it can be a real pain in the *ss ;-)
精彩评论