Skip to content

Add --version flag and tag-based version stamping for releases - #3

Merged
marcelloformica merged 2 commits into
mainfrom
feature/version-stamping
Mar 21, 2026
Merged

marcelloformica merged 2 commits into
mainfrom
feature/version-stamping

Conversation

@marcelloformica

Copy link
Copy Markdown
Contributor

Changes

  • C# EXE: Added --version\ / -v\ flag that prints \GetAvailability \ and exits, reading version from assembly metadata.
  • PowerShell: Added -Version\ switch (via parameter sets so it works without mandatory params) that prints \get-availability \ and exits.
  • Version default: Set <Version>0.0.0\ in the csproj and \ = '0.0.0-dev'\ in the PS1, so CI/local builds show 0.0.0.
  • Release workflow: Extracts semver from the git tag (e.g. \�1.2.3\ → \1.2.3), passes -p:Version\ to \dotnet publish, and replaces \

@marcelloformica
marcelloformica merged commit a5f5206 into main Mar 21, 2026
1 check passed
@marcelloformica
marcelloformica deleted the feature/version-stamping branch March 21, 2026 16: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