Importing a package from a TWINPACK file

To import a package directly from a TWINPACK file (instead of using TWINSERV), follow these steps.

  • open the project from which you want to use a package
  • open Project Settings, with the gear button of the Project Explorer or Project > Project Settings…
  • select Library References in the rail on the left of the dialog
  • select the Available Packages tab

    Project Settings with the Library References group chosen in its rail and the Available Packages tab open. Numbered callouts mark the Project Explorer’s Project Settings gear, the Library References item of the rail and the Available Packages tabProject Settings with the Library References group chosen in its rail and the Available Packages tab open. Numbered callouts mark the Project Explorer’s Project Settings gear, the Library References item of the rail and the Available Packages tab
  • press the Import from file… button:

    A callout numbered 4 marking the Import from file button below the Available Packages list, with the LOGIN button for private packages at the right
  • choose the TWINPACK file you want to import. The package is added to the Available Packages list, but BETA 1033 does not tick it: tick it yourself. It then appears, ticked, on the Enabled Libraries tab, marked [EMBEDDED-PACKAGE]:

    The Enabled Libraries list with the CSharpishStringFormater and FilePropertyExplorer packages ticked and marked EMBEDDED-PACKAGE
  • press Apply Changes

A project cannot import a package it already contains. If it holds an earlier build of the same package, the import is refused with Failed to add package; '<name>' conflicts with an existing imported package., whatever the new build’s Version. To replace the earlier build, see Updating a package you built yourself.

Now you’re ready to use the package! In the example shown above I added a reference to the CSharpishStringFormater package, and I can now confirm that I can access components from the package in my code:

The code editor offering completions from the Fmt namespace after typing fmt followed by a dotThe code editor offering completions from the Fmt namespace after typing fmt followed by a dot