Skip to content

fix: raise MSIX minimum Windows version for Store submission#52

Merged
sparshsam merged 1 commit into
mainfrom
fix/store-minversion-v1.2.2
Jun 18, 2026
Merged

fix: raise MSIX minimum Windows version for Store submission#52
sparshsam merged 1 commit into
mainfrom
fix/store-minversion-v1.2.2

Conversation

@sparshsam

Copy link
Copy Markdown
Owner

Fix: MSIX Manifest Patching Bug — Partner Center Rejection

Root Cause

The CI workflow used regex -creplace 'Version="[^"]+"' to patch the app version into AppxManifest.xml. This regex matched inside MinVersion and MaxVersionTested attributes because they contain the substring Version=.

Generated MSIX for v1.2.1 had:

<TargetDeviceFamily MinVersion="1.2.1.0" MaxVersionTested="1.2.1.0" />

Partner Center rejects packages with MinVersion <= 10.0.17134.0. Since 1.2.1.0 < 10.0.17134.0, the upload was rejected.

Fix

Replaced all regex-based version patching with proper XML DOM manipulation in:

  • release.yml (CI release build)
  • build-windows.yml (CI dev build)
  • build-msix.ps1 (local build script)

Added CI validation logging for MinVersion and MaxVersionTested.

Source Manifest (unchanged, already correct)

<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.22621.0" />

Version Bump

  • App: 1.2.2
  • MSIX: 1.2.2.0

Files Changed

12 files, +64/-37

- Fix MSIX manifest patching: replaced regex -creplace with proper XML DOM
  to avoid corrupting MinVersion and MaxVersionTested attributes
- Root cause: 'Version="[^"]+"' regex matched inside MinVersion and
  MaxVersionTested, overwriting them with the app version number
- v1.2.1 generated MSIX had MinVersion="1.2.1.0" instead of 10.0.17763.0
- Fixed in: release.yml, build-windows.yml, build-msix.ps1
- Added CI validation logging for MinVersion and MaxVersionTested
- Added MinVersion check to store submission checklist
- Version bumped to 1.2.2 (MSIX 1.2.2.0)

Co-Authored-By: Claude <noreply@anthropic.com>
@sparshsam sparshsam merged commit f94e58e into main Jun 18, 2026
6 checks passed
@sparshsam sparshsam deleted the fix/store-minversion-v1.2.2 branch June 18, 2026 22:59
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