Skip to main content
Version: 2.0.0-preview

Publishing Extensions

This guide explains how to publish Beutl extensions to the store.

In this guide, the C# project name is YOUR_PROJECT.

Creating a NuGet Package​

Run the following command in the directory where YOUR_PROJECT.csproj is located:

dotnet pack -c Release

This will generate a YOUR_PROJECT.1.0.0.nupkg file as shown below:

YOUR_PROJECT
┣━ YOUR_PROJECT.csproj
┗━ bin
┗━ Release
┗━ YOUR_PROJECT.1.0.0.nupkg

Creating a New Package​

  1. Go to Developer
  2. Sign in if you are not already signed in. 3.
  3. Click [Create New Extension]. Create New Extension
  4. Enter the package ID (in this case, YOUR_PROJECT)
  5. Click [Create]. ! Create Package

Creating a Release​

  1. Click [Create Release]. Create Release

  2. Enter the version. Create Release

  3. Click [Create].

  4. The release will be created. Create Release

  5. Click the edit button.

  6. Click [Select File]. Edit Release

  7. Select YOUR_PROJECT.1.0.0.nupkg.

  8. Click [Publish]. (To make the package available for users to download, you need to change the package's publish settings)

  9. Click [Save].

Publishing the Package​

Click [Publish]. Publish Package

Target version and automatic updates​

A release also has a Target version, the Beutl versions it runs on: a version such as 2.0.0-preview.14, which means that version and later, or a NuGet version range such as [2.0.0-preview.14, 2.0.0-preview.15). Beutl offers or installs a release only for a Beutl version that its target version includes.

Since preview.14, Beutl updates installed extensions from the store by itself unless the user chose otherwise: Settings → Extensions → Update timing is Always update automatically by default. Beutl then checks at startup and every six hours while it runs, downloads the newest release that fits, verifies it, and applies it before a project opens on the next launch. With With Beutl updates, it prepares the releases that fit a new version of Beutl when Beutl updates, and with Notify only, the user installs them. A release you publish therefore reaches most users without a click, so give it a target version that covers only the Beutl versions it works with.

Material and template packages​

Place the materials you want to distribute in a top-level materials/ directory in the .nupkg, and object templates in templates/.

See Materials and Templates for the user workflow.

Source​