From 8e4340a96374d78000fb8cc0d2ffd3e6778b5878 Mon Sep 17 00:00:00 2001 From: Stuart Meeks Date: Sat, 30 May 2026 01:37:44 +0000 Subject: [PATCH] Stamp the tag-derived version into the published assemblies release.yml derives the version from the git tag and passes it to vpk pack, but the dotnet publish step ran without -p:Version, so the in-process assembly stamps as 1.0.0 (the SDK default) and the About page would lie about which build the user is running. MSBuild handles "0.1.0-alpha.1"-style versions natively: it derives AssemblyVersion/FileVersion from the numeric prefix and uses the full string verbatim for InformationalVersion, which is what the About page reads. Co-Authored-By: Claude Opus 4.7 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 901c974..edcb9f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,7 @@ jobs: run: dotnet test tests/Snipdeck.Core.Tests/Snipdeck.Core.Tests.csproj --configuration Release --no-restore - name: Publish Snipdeck.App (win-x64) - run: dotnet publish src/Snipdeck.App/Snipdeck.App.csproj --configuration Release --runtime win-x64 --self-contained true --output publish + run: dotnet publish src/Snipdeck.App/Snipdeck.App.csproj --configuration Release --runtime win-x64 --self-contained true --output publish -p:Version=${{ steps.meta.outputs.version }} - name: Install Velopack CLI run: dotnet tool install -g vpk