bump-version
Bump Version
Assess and bump the SDK version in src/Directory.Build.props to prepare for the next release. This skill owns the Semantic Versioning 2.0.0 assessment logic — the SemVer assessment guide is the single source of truth for version assessment criteria used across the release workflow by both the prepare-release and publish-release skills.
Use the shared release branch reference for branch roles, previous-release lookup rules, and release work-branch naming.
Note: For comprehensive release preparation — including ApiCompat/ApiDiff, documentation review, and release notes — use the prepare-release skill, which incorporates version assessment as part of its broader workflow.
Process
Step 1: Read Current Version and Previous Release
Read src/Directory.Build.props on the current branch and extract:
<VersionPrefix>— theMAJOR.MINOR.PATCHversion<VersionSuffix>— the prerelease suffix, when present
The candidate version is {VersionPrefix} plus -{VersionSuffix} when the suffix is present (for example, 2.0.0-preview.1). Display the current candidate version to the user.
Determine the previous release tag from gh release list (most recent published release). Draft releases must be ignored — they represent a pending release that has not yet shipped. Use --exclude-drafts or filter to only published releases when querying. The lookup is branch-aware: from a release/{MAJOR}.x branch, restrict candidates to tags matching v{MAJOR}.*; from main, use the most recent published release globally. See release-branches.md for details.