From 422135eb0842f6bd01146cc762b25f1474dc1c9b Mon Sep 17 00:00:00 2001 From: Dmitry Kurochkin Date: Mon, 14 Sep 2026 14:20:40 +0000 Subject: [PATCH] fix: stamp assembly version from the release tag The publish workflow passed the tag as -p:PackageVersion, which the SDK reads only when writing the .nuspec. AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion default from Version, which was never set, so every published assembly carried 1.0.0.0 while the package carried the tag. Pass the tag as -p:Version instead. It is the root property the others default from, so the package version is unchanged and the assembly attributes now match. --- .github/workflows/publish-nuget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index f2caad1..d63dae8 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -22,7 +22,7 @@ jobs: with: dotnet-version: 10.x.x - name: Package - run: dotnet pack --configuration Release -p:PackageVersion=${{ github.ref_name }} --output . + run: dotnet pack --configuration Release -p:Version=${{ github.ref_name }} --output . - name: Upload package artifact uses: actions/upload-artifact@v7 with: