FB 7/XE2 - Delphi Action: get data from Project Settings File

New Configuration: FB 7.0.0.1864/Windows 7 x64/Delphi XE2 Professional (all Updates and Hotfixes installed)
Old Configuration: FB 7.0.0.1334/Windows XP SP3/Delphi 2010 Professional (all Updates and Hotfixes installed)

After updating our build projects from the old to the new configuration we must see that in “Delphi action|Directories” the items “… use … from Project Settings File” don’t run anymore (see attached screenshots).

The problem here from our view:
We now have to uncheck and edit these FB settings manually. This means also if a developer change a Delphi project depending build projects have to change manually.

Delphi developers and Build developers are not the same. So we have extra communications for a thing which was running before.


Another item:
It would be a nice thing at the time when you select a Delphi framework (None/VCL/FMX) that the depending “Namespace prefixes” from the project settings file are read and set also.

Regards,
Thomas

Why is it not possible anymore to attach files to a topic?

Thomas

Hi Thomas

Not sure why you cannot attache files, will look into that. Without seeing the dproj file in question it’s impossible to figure out what is happening, my suggestion would be to send it to support@finalbuilder.com so we can take a look. There has been problems with delphi XE2 projects that were upgraded from older versions of delphi not updating the dproj files correctly.

As for the framework namespaces, those are not stored in the dproj file or anywhere else except the delphi msbuild dll’s, we try to guess at them when you load the settings from the project file but it’s only a guess (based on experiments).

Hi,
we checked the configuration things with D2010/XE2 project files deeper and we found the solution.

If you insert a Delphi action for a D2010 project and load the settings from a german(!) project file you will see the project config “Basis” (= German for base).
It’s saved in the D2010 project settings and later in the FB7 project file.

If you set a Delphi action from 2010 to XE2 while upgrading a FB7 project the entry “Basis” is not deleted in the FB7 project file and still shown by FB7. But it don’t exist anymore in the Delphi project settings.

We upgraded several FB7 build projects from D2010 to DXE2 and so we got the error.

If you load a new XE2 project with FB7 you don’t see the project config “Base” anymore (Why not??? “Base” is a valid configuration which you can use to customize the FB7 build settings.).

Regards,
Thomas

There a few things going on here. Firstly, when loading the settings from the project file, we never change the selected configuration, since settings are stored in the dproj per configuration (with inheritance), so we have to use a configuration name to choose where to load the settings from.

We don’t add the Base configuration to the list because it’s not common to (or intended for) use to build from, it just provides a base configuration for the configuration inheritance model.