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
go install github.com/SemRels/updater-nuget@latest

Each plugin is a standalone Go binary. Keep it on your PATH or reference it with path: in .semrel.yaml. If you keep secrets in a .env file, load them with semrel --env-file .env release.

version: 1
plugins:
- name: updater-nuget
path: updater-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>.