Skip to content

Fix Resizetizer validation failure: calendar tags → derived SemVer/platform versions#558

Merged
StuartFerguson merged 2 commits intomainfrom
copilot/update-version-strategy-for-releases
Apr 24, 2026
Merged

Fix Resizetizer validation failure: calendar tags → derived SemVer/platform versions#558
StuartFerguson merged 2 commits intomainfrom
copilot/update-version-strategy-for-releases

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 24, 2026

Calendar-format release tags (vYYYY.M.D) were passed directly as ApplicationDisplayVersion, which fails Microsoft.Maui.Resizetizer's strict 3-part SemVer requirement and breaks Windows release builds.

Version derivation strategy

Given tag vYYYY.M.D:

Output Formula v2026.4.1 example
ApplicationDisplayVersion (SemVer, both platforms) YY.M.DOY 26.4.91
Windows ApplicationVersion (MSIX 4-part) YYYY.M.D.0 2026.4.1.0
Android ApplicationVersion (versionCode int) YYYY * 1000 + DOY 2026091

Where YY = YYYY - 2000, DOY = day-of-year (1–366).

Changes

  • release_windows.yml — Replaces raw tag extraction with PowerShell that validates ^v(\d{4})\.(\d{1,2})\.(\d{1,2})$, computes DOY via Get-Date, derives APP_DISPLAY_VERSION and APP_MSIX_VERSION, and passes APP_DISPLAY_VERSION to dotnet publish.

  • release_android.yml — Same tag validation in bash (date -d for DOY), derives the same APP_DISPLAY_VERSION and a monotonically increasing APP_ANDROID_VERSION integer, passed to dotnet publish.

  • README.md — Documents the required tag format, derivation formulas, and example conversions.

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 24, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copilot AI changed the title [WIP] Update version strategy for Windows and Android releases Fix Resizetizer validation failure: calendar tags → derived SemVer/platform versions Apr 24, 2026
Copilot AI requested a review from StuartFerguson April 24, 2026 11:02
@StuartFerguson StuartFerguson marked this pull request as ready for review April 24, 2026 11:30
@StuartFerguson StuartFerguson merged commit d7bc062 into main Apr 24, 2026
10 of 11 checks passed
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.

Version Strategy update for releases

2 participants