Opening Delphi project files - Any downside of opening DPR instead of existing DPROJ file?

Darian Miller picture Darian Miller · Dec 6, 2012 · Viewed 13.2k times · Source

By default, the file extension descriptions for .DPR and .DPROJ are the same, so in Explorer when opening a project file with the same base name, both file descriptions are listed as "Delphi Project File" This presents a choice to the developer - which file to open?

I typically open the second file listed, assuming it's the DPROJ.

Are there any downsides of opening a DPR when there is a corresponding DPROJ file on file? Does the IDE handle this gracefully?

I sometimes open the first file listed and I haven't noticed any problems, but it's one of those curiosities remaining unanswered. I looked through the help and couldn't find anything.

Answer

Sir Rufo picture Sir Rufo · Dec 6, 2012

A *.dpr file contains delphi source and *.dproj contains the project configuration.

Opening one of them the IDE is looking for the other automatically.

Try to remove the *.dproj file and open the (remaining) *.dpr the IDE will inform you, that a new *.dproj file will be generated.

Do not try to remove the *.dpr :o)