Updates the version property in a NuGet project file.
This plugin is distributed as the standalone Go binary semrel-plugin-updater-nuget. Semrel executes the binary as a subprocess, provides plugin configuration through SEMREL_PLUGIN_* environment variables, provides release context through SEMREL_* environment variables, reads standard output, and treats exit code 0 as success and any non-zero exit code as failure. Install the binary in ~/.semrel/plugins/ or anywhere on your $PATH.
go install github.com/SemRels/updater-nuget/cmd/plugin@latestPre-built, multi-platform images (linux/amd64, linux/arm64) are published to the GitHub Container Registry on every release:
docker pull ghcr.io/semrels/updater-nuget:latestImages are signed with cosign and include a full SBOM attestation. Verify the signature:
cosign verify ghcr.io/semrels/updater-nuget:latest \
--certificate-identity-regexp 'https://github.com/SemRels/updater-nuget/.github/workflows/release.yml.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.complugins:
- name: updater-nuget
path: ~/.semrel/plugins/semrel-plugin-updater-nuget
env:
SEMREL_PLUGIN_FILE: "src/MyApp/MyApp.csproj"
SEMREL_PLUGIN_PROPERTY: "Version"| Name | Required | Description | Default |
|---|---|---|---|
SEMREL_PLUGIN_FILE |
Optional | Path or glob that resolves to the .csproj file to update. |
*.csproj |
SEMREL_PLUGIN_PROPERTY |
Optional | XML property name that stores the package version. | Version |
| Variable | Description |
|---|---|
SEMREL_VERSION |
Resolved release version for the current run. |
SEMREL_NEXT_VERSION |
Next version computed by semrel for the release. |
SEMREL_DRY_RUN |
Whether semrel is running in dry-run mode. |
The plugin updates the configured XML property in the selected project file to the next version.
Apache-2.0