From 206d03b050df2def42fcd1c05173294b34314c70 Mon Sep 17 00:00:00 2001 From: minilan677-netizen <321019851+minilan677-netizen@users.noreply.github.com> Date: Sat, 21 Nov 2026 06:00:25 +0600 Subject: [PATCH 1/2] docs: fix typo in CONTRIBUTING ("occured") Corrected "occured" to "occurred" in the versioning section of the contributor guide. No other changes. --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e1a7488f6..3c99c5ce8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ This library uses [Nerdbank.GitVersioning](https://github.com/AArnott/Nerdbank.GitVersioning) for generating stable and reproducible version numbers. -The base version is manually maintained in [the version config](version.json). Every build calculates its final version number based on the base version and the number of changes that occured since the last change to the version config. +The base version is manually maintained in [the version config](version.json). Every build calculates its final version number based on the base version and the number of changes that occurred since the last change to the version config. The base version represents the MAJOR and MINOR parts of [SemVer](https://semver.org). If a PR contains breaking changes or new features the base version has to be changed accordingly. If a PR solely contains minor changes (bug fixes, code improvements) nothing needs to be done as the PATCH number will automatically increment with each commit. From 26e448dcccdf1127175533935896312f6f96e611 Mon Sep 17 00:00:00 2001 From: minilan677-netizen <321019851+minilan677-netizen@users.noreply.github.com> Date: Sat, 21 Nov 2026 07:02:09 +0600 Subject: [PATCH 2/2] docs: update outdated versioning section in CONTRIBUTING --- CONTRIBUTING.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3c99c5ce8..c63b9262e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,16 +2,16 @@ ## Versioning -This library uses [Nerdbank.GitVersioning](https://github.com/AArnott/Nerdbank.GitVersioning) for generating stable and reproducible version numbers. +This library follows [Semantic Versioning](https://semver.org). The version is calculated by [GitVersion](https://gitversion.net) in the build pipeline from the Git history and tags, so there is no version file to update and a PR doesn't need to change any version number. -The base version is manually maintained in [the version config](version.json). Every build calculates its final version number based on the base version and the number of changes that occurred since the last change to the version config. +Releases are made by pushing a tag of the form `vMAJOR.MINOR.PATCH` (for example `v23.0.1`), optionally with a pre-release suffix (for example `v23.1.0-beta.1`). The build for that tag packs the packages with that version and publishes them to `nuget.org`. -The base version represents the MAJOR and MINOR parts of [SemVer](https://semver.org). If a PR contains breaking changes or new features the base version has to be changed accordingly. If a PR solely contains minor changes (bug fixes, code improvements) nothing needs to be done as the PATCH number will automatically increment with each commit. +Please still mark breaking changes and new features in the PR title (see below), so the next release can be versioned accordingly. ## Branches / tags -- `main` contains the latest sources. Each merge there triggers a deploy to `nuget.org`. -- All versions on `nuget.org` have a matching GitHub release/tag. +- `main` contains the latest sources. +- Each `v*` release tag triggers a deploy to `nuget.org`, so all versions on `nuget.org` have a matching GitHub tag. Tags without a pre-release suffix also get a GitHub release. ## Commits and PR title