Importing a package from TWINSERV

Open the project from which you want to use a package, open the Settings file within it and navigate to the References section. Select the ‘Available Packages’ button, and all packages that are on the server should be shown:

The Project Settings dialog open over the IDE, with hand-drawn red numbers marking the route: 1 on the toolbar settings gear, 2 on the Library References heading, 3 on the Available Packages tab. That tab lists the published packages with tick boxes and Library Symbol, Version and Publisher columns.

If you tick one of the available packages, it will be downloaded and imported into the project:

The Enabled Libraries tab after the tick, where FilePropertyExplorer and CSharpishStringFormater now appear marked IMPORTED below the built-in compatibility packages. Behind it the Project Explorer shows the downloaded FileProps and Fmt folders under the project’s Packages branch.

Once you’re finished, save and close the Settings file which will cause the compiler to be restarted. 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:

A code editor where typing fmt. has opened the completion list, offering the package’s members: AsciiEscapeBase, CopyCapitalisation, CurrencySFI, DateTimeSFI, DecimalSFI and EscapeSequence.

Note: If you have any PRIVATE packages that you have published, they are only available when signed in. If you are not already signed in, you will see a warning link that you can click to login:

The yellow TIP link below the package list, offering to log in to see private packages

After logging in, press the ‘Available’ button again to refresh the list.