Plugin: updater-nuget
Updates the version property inside a .csproj or other NuGet project file. It helps keep .NET package metadata in sync with SemRel releases.
Installation
Section titled “Installation”semrel plugin install @semrel/nugetsemrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.
Configuration
Section titled “Configuration”version: 1plugins: - uses: @semrel/nuget args: file: src/App/App.csproj property: VersionEnvironment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_FILE | no | *.csproj | Project file or glob to update. |
SEMREL_PLUGIN_PROPERTY | no | Version | XML property that stores the package version. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_NEXT_VERSIONSEMREL_CURRENT_VERSIONSEMREL_TAG_NAMESEMREL_DRY_RUN
Behavior
Section titled “Behavior”For a 1.4.0 release, the updater can change <Version>1.3.2</Version> to <Version>1.4.0</Version>.