Skip to content

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.

Terminal window
semrel plugin install @semrel/nuget

semrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.

version: 1
plugins:
- uses: @semrel/nuget
args:
file: src/App/App.csproj
property: Version
NameRequiredDefaultDescription
SEMREL_PLUGIN_FILEno*.csprojProject file or glob to update.
SEMREL_PLUGIN_PROPERTYnoVersionXML property that stores the package version.
  • SEMREL_NEXT_VERSION
  • SEMREL_CURRENT_VERSION
  • SEMREL_TAG_NAME
  • SEMREL_DRY_RUN

For a 1.4.0 release, the updater can change <Version>1.3.2</Version> to <Version>1.4.0</Version>.