Fix Release Windows: correct MAUI ApplicationVersion and ApplicationDisplayVersion#559
Merged
StuartFerguson merged 3 commits intomainfrom Apr 24, 2026
Merged
Conversation
Up to standards ✅🟢 Issues
|
… release_windows workflow Agent-Logs-Url: https://github.com/TransactionProcessing/TransactionMobile/sessions/5723aec5-24ae-4f58-b315-cec2d46264dd Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions workflow for Windows release
Fix Release Windows: correct MAUI ApplicationVersion and ApplicationDisplayVersion
Apr 24, 2026
Agent-Logs-Url: https://github.com/TransactionProcessing/TransactionMobile/sessions/9cfce4ec-3a57-4a7c-af04-0b9309503980 Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vprefix optional in tag regex (^v?...), update error messagevprefix optional in tag regex (^v?...), update error messageOriginal prompt
Fix the failing GitHub Actions workflow "Release Windows".
Context:
Failure:
Root cause:
Requested changes:
Acceptance criteria:
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: How can I fix this build?
Assistant: The build is failing in MAUI Resizetizer because your app version values don’t match what MAUI/Windows packaging expects:
This run is on ref
ec97210f42460b8b5c97154d4caaec1cdfa087ae(workflow:.github/workflows/release_windows.yml).What’s happening
You’re tagging releases like
v2026.4.9, and somewhere in the pipeline/app config that becomes:ApplicationDisplayVersion = 26.4.9← invalid for MAUI here (it wants a stricter SemVer-like value)ApplicationVersion = 2026.4.9.0← invalid becauseApplicationVersionmust be an integer on MAUI (especially for Android), not a dotted versionFix
Update your versioning so that:
2026.4.9(or2026.04.09)2026040901or a build counter)Where to change it
Look in your MAUI project file (typically
TransactionProcessor.Mobile.csprojor similar) for something like:Set them like:
If you’re setting these in the workflow
If
.github/workflows/release_windows.yml(or a script it calls) is deriving versions from the git tag, make sure it outputs:2026.4.9(NOT26.4.9)2026.4.9.0)Quick clarification so I can point to the exact line to edit
Are these values coming from:
/p:ApplicationDisplayVersion=...and/p:ApplicationVersion=...?If you tell me which (or paste the relevant snippet), I’ll give you the exact change to make.
User: workflow
Assistant: The workflow is passing the wrong value into
/p:ApplicationVersion.In your workflow, you set:
APP_DISPLAY_VERSIONtoYY.M.D(e.g.26.4.9) and pass it toApplicationDisplayVersionAPP_MSIX_VERSIONtoYYYY.M.D.0(e.g.2026.4.9.0) and pass it toApplicationVersionBut in .NET MAUI,
ApplicationVersionis not the MSIX/Appx version. It must be an integer (and MAUI resizetizer validates it), which is why2026.4.9.0fails.Fix in
.github/workflows/release_windows.yml(refec97210f42460b8b5c97154d4caaec1cdfa087ae)YYYY.M.Dinstead ofYY.M.Dto avoid edge cases).ApplicationVersionto an integer (build number).This pull request was created from Copilot chat.