TurboPower LockBox 3 will not install in Delphi XE4 - error during compile

1.4k Views Asked by At

I am trying to use LockBox 3 in Delphi XE4 to replace an encryption suite that has inexplicably stopped working. I opened the Delphi project file and the three bpl's show up, but when I right-click and then choose install on LockBox3VCLDD240.bpl, it tries to compile and then gives the following error message:

[MSBuild Error] "0" is an invalid value for the "DebugInformation" parameter of the "DCC" task. The "DebugInformation" parameter is of type "System.Boolean".

I tried changing "Debug Information" to True in Project -> Options -> Delphi Compiler -> Linking, but the error still comes up. Can anyone offer assistance?

2

There are 2 best solutions below

0
Dan Swain On BEST ANSWER

I was able to get the above error message to go away by going to Project -> Options -> Delphi Compiler -> Compiling and changing Debugging -> Debug Information to true.

0
Fran On

If you want to add the new Delphi XE5 and up syntax (that uses "0" instead of "false" for DebugInformation) to Delphi XE4 or other versions you can edit C:\Program Files (x86)\Embarcadero\RAD Studio\11.0\bin\CodeGear.Delphi.Targets and append:

<PropertyGroup>
  <DCC_DebugInformation Condition=" '$(DCC_DebugInformation)'=='0' ">false</DCC_DebugInformation>
  <DCC_DebugInformation Condition=" '$(DCC_DebugInformation)'=='1' ">true</DCC_DebugInformation>
</PropertyGroup>

after the "Static Properties" block comment.

Using this trick is useful when you work with projects that must remain compatible with XE5 or upper and you don't want to edit the project debug configuration every time.