Skip to content

build: let the release tag define the package version - #15

Merged
TC-jBautista merged 1 commit into
masterfrom
ci-version-from-tag
Oct 20, 2026
Merged

TC-jBautista merged 1 commit into
masterfrom
ci-version-from-tag

Conversation

@TC-jBautista

Copy link
Copy Markdown

Tag 3.21.1 ran dotnet pack ... /p:Version=3.21.1 but published TigerConnect.WorkflowCore and TigerConnect.WorkflowCore.Providers.AWS as 3.21.0. src/Directory.Build.props pins PackageVersion, AssemblyVersion and FileVersion, which take precedence over the Version global property. The next tag would also try to push 3.21.0 again and fail as a duplicate.

Change

Remove PackageVersion, AssemblyVersion and FileVersion from Directory.Build.props. Version stays as the default for local builds; with /p:Version=<tag> the SDK derives package, assembly and file versions from it.

Verified

dotnet pack of both projects with /p:Version=3.21.1 produces TigerConnect.WorkflowCore.3.21.1.nupkg and TigerConnect.WorkflowCore.Providers.AWS.3.21.1.nupkg; the AWS nuspec depends on TigerConnect.WorkflowCore 3.21.1.

Note

The packages currently in the feed are 3.21.0 (published by the 3.21.1 tag run). After merging, the next tag (e.g. 3.21.2) publishes under its own version.

🤖 Generated with Claude Code

Directory.Build.props pinned PackageVersion/AssemblyVersion/FileVersion,
which override /p:Version passed by the release workflow. Tag 3.21.1
therefore published 3.21.0 packages. Keep only Version (default for local
builds) so /p:Version drives package, assembly and file versions.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@TC-jBautista
TC-jBautista merged commit 5fe2c55 into master Oct 20, 2026
9 of 10 checks passed
@TC-jBautista
TC-jBautista deleted the ci-version-from-tag branch October 20, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant