Write the extension description file

Create the plugin.nuspec file that identifies a custom extension, its version, its dependencies and its tags
Updated

Overview

Every extension must contain a description file named plugin.nuspec. It holds the metadata that CAST Extend and CAST Imaging use to identify, display and install the extension. This page describes the file, its elements and the tags that CAST requires.

File name, location and encoding

  • Name the file plugin.nuspec.
  • Place it at the root of the extension folder, next to the folders and files that make up the extension:
com.castsoftware.uc.nameoftheextension\
    plugin.nuspec
    Configuration\
    ...
  • Encode the file in UTF-8 without a byte order mark (BOM).

The file uses the NuGet .nuspec format. See the NuGet .nuspec reference external link for the complete format.

Template

Use the following template for a User Community extension:

<?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>1.0.0</version>
        <title>Technology support for MyLanguage</title>
        <authors>User Community</authors>
        <owners>CAST</owners>
        <licenseUrl>https://extend.castsoftware.com/api/package/license/uc</licenseUrl>
        <projectUrl>https://github.com/CAST-Extend/com.castsoftware.uc.nameoftheextension/wiki</projectUrl>
        <iconUrl>https://raw.githubusercontent.com/CAST-Extend/com.castsoftware.uc.nameoftheextension/main/icon.png</iconUrl>
        <requireLicenseAcceptance>false</requireLicenseAcceptance>
        <description>Analyzes MyLanguage source code and creates programs, functions and the call links between them.</description>
        <releaseNotes>https://github.com/CAST-Extend/com.castsoftware.uc.nameoftheextension/wiki#release-notes</releaseNotes>
        <tags>Language Quality CSS CAIP8.3.x</tags>
        <dependencies>
            <dependency id="CAIP" version="8.3.0" />
        </dependencies>
    </metadata>
</package>

For a CAST Labs extension, use the com.castsoftware.labs. prefix in id, projectUrl and iconUrl, and set authors to CAST Labs.

Elements

All the elements in the template are required.

Element Description
id The id of the extension. It must be identical to the name of the extension folder, be no longer than 99 characters and contain only lowercase characters: CAST Extend rejects an id that contains an uppercase character. The prefix depends on the contributor type: com.castsoftware.uc. for User Community and com.castsoftware.labs. for CAST Labs.
version The version of the extension. See Version.
title A meaningful title. Include the name of the technology or framework the extension supports, and the name of the vendor of the targeted product where this adds clarity. If the extension involves an existing CAST component, name it. Do not include “CAST”.
authors The contributor type: User Community or CAST Labs. Outside CAST, the authors can also be a comma-separated list of email addresses.
owners The owner of the extension: CAST.
licenseUrl A link to the licence of the extension. For a User Community extension, use https://extend.castsoftware.com/api/package/license/uc. See Prerequisites.
projectUrl A link to the documentation of the extension, which must be freely available on the internet. See Prerequisites.
iconUrl A link to the icon of the extension. See Prerequisites.
requireLicenseAcceptance Whether users must accept the licence before installing the extension. Set it to false for User Community extensions.
description A short description, no longer than 200 characters: what the extension does, the situations it applies to and the results to expect.
releaseNotes A link to a description of the changes in each release of the extension.
tags A space-delimited list of tags. See Tags.
dependencies The minimum CAST release the extension requires, and any other extensions it depends on. A dependency on CAIP is mandatory: see Dependencies.

Version

The version must follow Semantic Versioning 2.0.0 external link and be no longer than 30 characters:

  • x.y.z, for example 1.3.0, is a stable version
  • x.y.z-<suffix>, for example 1.1.0-beta1 or 1.2.0-funcrel, is a pre-release version

Official CAST extensions use the alpha, beta and functional release suffixes described in Release types. User Community extensions do not follow this release process, so use a plain version number such as 1.3.0.

The version also sets the name of the package: packaging com.castsoftware.uc.nameoftheextension at version 1.3.0 produces com.castsoftware.uc.nameoftheextension.1.3.0.nupkg.

Dependencies

The CAIP dependency sets the minimum release of the CAST analysis engine that the extension requires:

The extension runs on CAIP version
CAST Imaging v3 only (Imaging Core 8.4.x) 8.4.0
CAST Imaging v3 and CAST AIP 8.3.x 8.3.0, which includes 8.4.x

The template uses 8.3.0. Set it to 8.4.0 if your extension relies on a feature that only Imaging Core 8.4 provides, or if you have tested it on CAST Imaging v3 only.

Declare each extension that yours depends on in its own dependency element, with the minimum version required. For example, an extension that relies on a file discoverer:

<dependencies>
    <dependency id="CAIP" version="8.3.0" />
    <dependency id="com.castsoftware.dmtgenericfilediscoverer" version="1.0.6" />
</dependencies>

Tags

Tags help users find the extension on CAST Extend. You can add any tag you want, but CAST requires at least one tag from each of the following categories, where the category applies to your extension.

Extension type

Extension type Tag
Reporting Reporting
Utility Utility
Language Language
Framework Framework
Rules Rules
Automation Automation
Integration (inbound or outbound) Integration
Data import for analysis enhancement DataImportEnhancement
Data import for source code DataImportSourceCode
Data import for dashboards DataImportDashboard
Data export DataExport
Configuration Configuration

Coverage

Coverage Tag
Function points FP
Quality Quality
Function points and quality FPQuality

Hosting platform

Database Tag
CAST Storage Service or PostgreSQL CSS
Oracle Server Oracle
Microsoft SQL Server MS

CAST component

Use only if the extension targets a specific component:

Component Tag
Application Analytics Dashboard AAD
Application Engineering Dashboard AED
Report Generator RepGen
Function point configuration FPConfiguration

Technology and framework

If the extension targets a specific technology, such as JEE, .NET, Fortran or RPG, or a specific framework, such as jQuery, AngularJS, WCF or WPF, add its name as a tag. To have the extension listed under the technology on the CAST Extend home page, also add the tag prefixed with techno:, for example techno:JEE.

CAST release compatibility

Add one tag per compatible CAST release, in the form CAIP8.3.x. CAST Extend rejects tags for releases earlier than CAIP8.0.x.