Skip to content

Add branch name override property for CI#5

Merged
stephanprobst merged 1 commit intomainfrom
feature/branch-override-property
Jan 2, 2026
Merged

Add branch name override property for CI#5
stephanprobst merged 1 commit intomainfrom
feature/branch-override-property

Conversation

@stephanprobst
Copy link
Owner

Adds SimpleBranchVersioning_Branch MSBuild property to override the detected branch name.

Useful for CI environments where checkout is in detached HEAD state but you want the correct branch name for versioning.

Usage:

dotnet build -p:SimpleBranchVersioning_Branch=${{ github.head_ref }}

@stephanprobst stephanprobst merged commit 0d60a01 into main Jan 2, 2026
1 check passed
@stephanprobst stephanprobst deleted the feature/branch-override-property branch January 4, 2026 05:54
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