Hard Linking Delphi.Net Packages into Your Application

I spent quite a while looking for this option because it is done in quite a different way from Delphi 5.  In Delphi 5 there was a single link option that either caused your application to use dynamic run time packages or statically linked run time packages.  That was it, all or nothing.  In Delphi.Net you can pick which packages to use statically while leaving everything else dynamic.

To do this, open the Project Manager and expand the References folder in your project.  For each package that you want statically linked, right click the name of the package and click Link in Delphi Units so that it is checked.  Then rebuild your project.

Leave a Reply