Open jpluimers opened 5 years ago
Unit aliases should work, as for the Delphi 1 -> Delphi 2 migrations, these aliases were used where multiple units pointed to the same one:
WinTypes=Windows;WinProcs=Windows;DbiProcs=BDE;DbiTypes=BDE;DbiErrs=BDE
This means a unit alias should work.
Adding this after each <DCC_UNIT_PLATFORM>False</DCC_UNIT_PLATFORM>
line in the below Delphi 2007 projects should work:
<DCC_UnitAlias>UITypes=Types</DCC_UnitAlias>
If it fails, then try this one:
<DCC_UnitAlias>Actions=ActnList;ImageList=ImgList;UITypes=Types</DCC_UnitAlias>
Based on https://github.com/jpluimers/GExperts/commit/790c84b79c1aaeb6420388d3c919dcd42ed6aa83
Affected .dproj files:
Not needed:
Partially worked around in https://github.com/jpluimers/GExperts/commit/a909add691c316909cd6f318d1391b24415c2d71 originating from https://sourceforge.net/p/gexperts/code/2478
This will break again when Delphi >= XE2 auto adds the UITypes in a uses-list.
https://github.com/jpluimers/GExperts/blame/master/Source/Utils/GX_GenericUtils.pas via https://sourceforge.net/p/gexperts/code/2200/ added unit
UITypes
to the interface uses list ofGX_GenericUtils
which causes the build to fail as it was only added in Delphi XE2, so it is not available in Delphi XE or lower.This fails in the Delphi 2007 based standalone projects.
A unit alias might solve this, but I need to investigate if this always works.