Update package source not working with Delphi.NET 2007 package

Hi,

I'm trying to build a Delphi.NET 2007 package using FinalBuilder 6.2.0.1265 and the "Compile Delphi for .NET Project" action. It works mostly, but the option Update Package Source does not seem to have any effect. As I understand it, that option is supposed to alter the directives like $OPTIMIZATION OFF that are put in the .dpk file by the IDE. Right now, that does not work, so that the package is compiled without optimization and with debug info because that's what's in the .dpk, although in the FinalBuilder action, optimization is turned on and debug info off.

I also tried watching the build process with Sysinternals/Microsoft Process Monitor, and I don't see any attempts to write to the .dpk file.

My question therefore, is this a bug in FinalBuilder, or could I have configured something incorrectly?

Thanks in advance,
Robert

Hi Robert

I just had a look at this and it worked fine for me here. However, I did find that the Update Package Source option does not work when you have the option to use the Compiler settings in the project file. This was done intentionally but I’m not sure of the reasoning behind it (was done a while back, so I will have to look into that). Is this how you have your action configured.



Hi Vincent,

thank you for the quick response! I must confess I'm not sure which "option to use the Compiler settings in the project file" you are talking about. I have enabled the option to "Use references setting in .bdsproj/.dproj" - is that the one? On the Compiler tab, I don't see any option to use those settings from the dproj file.

I'll attach an image with all the settings as well as a small test project I created.

Best regards

Robert

 

FBpk.zip (4.946 KB)settings.zip (174.531 KB)