From f88fda61c00df57f5f0650ea459826acd703085b Mon Sep 17 00:00:00 2001 From: Stuart Meeks Date: Wed, 1 Jul 2026 07:50:11 +0000 Subject: [PATCH 1/2] fix(ci): allow nbgv downgrade so the release job installs the pinned version The windows-latest runner now preinstalls a newer nbgv (3.10.85) than the version this workflow pins (3.9.50, kept in sync with the Nerdbank.GitVersioning package), and `dotnet tool install` refuses to downgrade, failing the release job before it builds. Add --allow-downgrade so the exact pinned version installs regardless of what the runner ships. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa7aba4..91c31a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,11 @@ jobs: **/*.csproj - name: Install Nerdbank.GitVersioning CLI - run: dotnet tool install --global nbgv --version 3.9.50 + # --allow-downgrade: the hosted runner now preinstalls a newer nbgv than + # the version pinned here (kept in sync with the Nerdbank.GitVersioning + # package for reproducible stamping), and a plain install refuses to + # downgrade. The flag lets us pin the exact version regardless. + run: dotnet tool install --global nbgv --version 3.9.50 --allow-downgrade - name: Derive version + channel from NBGV id: meta From dea37e6cb2789ee573c81a902d029e52df1b4d6c Mon Sep 17 00:00:00 2001 From: Stuart Meeks Date: Wed, 1 Jul 2026 07:56:26 +0000 Subject: [PATCH 2/2] chore(deps): bump all NuGet references to latest stable Pin nbgv to the latest stable (3.10.85, matching the hosted runner) and keep the release CLI in sync via the same version plus --allow-downgrade, fixing the release job that broke when the runner preinstalled a newer nbgv. Also refresh the remaining out-of-date packages to their latest stable: Markdig 1.2.0 -> 1.3.2 Microsoft.Web.WebView2 1.0.3967.48 -> 1.0.4022.49 Microsoft.Windows.SDK.BuildTools 10.0.28000.1839 -> 10.0.28000.2270 Spectre.Console 0.56.0 -> 0.57.1 Microsoft.NET.Test.Sdk 18.6.0 -> 18.7.0 Spectre.Console.Cli stays at 0.55.0 (no newer stable). All test suites pass and the full solution builds clean on the Windows head. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release.yml | 10 +++++----- CHANGELOG.md | 8 ++++++++ Directory.Packages.props | 18 +++++++++--------- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91c31a1..75cf939 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,11 +45,11 @@ jobs: **/*.csproj - name: Install Nerdbank.GitVersioning CLI - # --allow-downgrade: the hosted runner now preinstalls a newer nbgv than - # the version pinned here (kept in sync with the Nerdbank.GitVersioning - # package for reproducible stamping), and a plain install refuses to - # downgrade. The flag lets us pin the exact version regardless. - run: dotnet tool install --global nbgv --version 3.9.50 --allow-downgrade + # Pinned to the latest stable nbgv, kept in sync with the + # Nerdbank.GitVersioning package so the CLI's version math matches the + # assembly stamping. --allow-downgrade keeps this deterministic if the + # hosted runner ever preinstalls a newer nbgv than we pin. + run: dotnet tool install --global nbgv --version 3.10.85 --allow-downgrade - name: Derive version + channel from NBGV id: meta diff --git a/CHANGELOG.md b/CHANGELOG.md index 49de299..ff4c2d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 restores it. The Reset button turns the hotkey back on and restores the Ctrl+Alt+S default. +### Changed +- Refreshed dependencies to their latest stable releases (Markdig, WebView2, + Windows SDK build tools, Spectre.Console, the test SDK and the versioning tool). + +### Fixed +- The release pipeline no longer fails to install the pinned Nerdbank.GitVersioning + CLI when the hosted runner ships a newer build. + ## [1.0.4] - 2026-06-10 ### Changed diff --git a/Directory.Packages.props b/Directory.Packages.props index e47f405..4086367 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,14 +7,14 @@ - + - + @@ -28,24 +28,24 @@ - - + + - + - + - +