|Summary: this page explains how to create a custom extension to share an add-on to CAST AIP.|
If you have developed an add-on for CAST AIP, for example, a script to do something specific, a custom Assessment Model, DLM rule files or any other item that you wish to share with the wider CAST user community, then you can use the instructions below to do so. These custom extensions cannot be "installed" using CAST Server Manager, therefore the idea is to simply package the "add-on" item as a custom extension so that it can be shared more easily with other users.
The first step involves creating the folder that will contain the extension files - the folder should use the naming conventions described in the "id" element of the .nuspec file - see Extension description file. In this example we will create a folder called com.castsoftware.uc.my_assessment_model.
This step involves copying the file or files you want to share as an extension into the folder you created in Step 1. In this example we are creating an extension to share a custom Assessment Model, so we will copy in one .PMX file containing the custom Assessment Model.
This step involves creating the plugin.nuspec description file and then adding this file to the the folder you created in Step 1. Please see Extension description file for more information about how to create the plugin.nuspec file. The description file for this example will look like this:
<?xml version="1.0" encoding="utf-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> <id>com.castsoftware.uc.nameoftheextension</id> <version>x.x.x</version> <title>MyExtension</title> <authors>User Community</authors> <owners>CAST</owners> <licenseUrl>http://www.castsoftware.com/ps/doc/extension/license</licenseUrl> <projectUrl>https://github.com/CAST-Extend/</projectUrl> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description>This is a great extension that creates great objects and even greater links</description> <tags>Language FP CSS CAIP8.0.x</tags> <dependencies> <dependency id="CAIP" version="8.0.0" /> </dependencies> </metadata> <files /> </package>
The custom extension folder should now contain two files:
The extension can then be shared by uploading to the CAST Extend website. See Upload an extension for more information.