The dotnet plugin

The dotnet plugin is used to build .NET Core runtime parts.

The plugin uses the .NET SDK to install dependencies via the NuGet package manager, and follows the standard semantics for a .NET Core project.

Plugin-specific features and syntax are dependent on which base is being used, as outlined below:

For examples, search GitHub for projects using the plugin.

ⓘ This is a snapcraft plugin. See Snapcraft plugins and Supported plugins for further details on how plugins are used.

base: core24 | core22

This plugin uses the following plugin-specific keywords:

  • dotnet-build-configuration (string, default: Release) The dotnet build configuration to use.

  • dotnet-self-contained-runtime-identifier (string) Runtime identifier to use when building a self-contained application (e.g. linux-x64).

Requires Snapcraft version 8.0+ for core24.

Requires Snapcraft version 7.0+ for core22.

base: core18 | core

This plugin uses the following plugin-specific keywords:

  • debug: builds using a Debug configuration.

Requires Snapcraft version 3.x+.

The GitHub link does not work anymore. I got the following error message:

Unrecognized qualifier. Looking for a filename? Try using the path qualifier
filename:snapcraft.yaml "plugin: dotnet"
Suggestion: path:**/snapcraft.yaml “plugin: dotnet”

Using the suggestion seems to show the intended result.

Thanks for letting us know. I’ve updated the GitHub embedded search.