Skip to content

Alchemy Public

Workflow 1 min read View Markdown

Upgrade package runtimes to v4.7#

With the introduction of enforced licensing in Alchemy, there are some maintenance tasks that should be performed when updating a package in which licensing was previously optional to a package that requires licensing.

Applies to: Alchemy

These tasks, all of which are included in the .ps1 file at the end of this article, are as follows:

  • Remove the Start/Stop events from the AAV.clc. If these are left in the package, the usage.exe.config will result in errors that are now irrelevant given the deprecation of usage reporting.
  • Remove the usage executable and usage executable config from the package as these are no longer in use.
  • Remove the licensing enabled flag from the chmetadata.json as this is no longer used.

You can run these tasks on a package after updating it by downloading the Update-ToLicensingEnforced.ps1 and executing the file as follows:

. .\Update-ToLicensingEnforced.ps1
Update-ToLicensingEnforced {PathToPackage}

Note

Replace {PathToPackage} in the above script with the path to the package you'd like to update.

By running this script, your recently updated package will be tidied up, and the various pieces listed above will be removed as they are no longer needed with the new licensing requirements.