diff --git a/packaging/msix/AppxManifest.xml b/packaging/msix/AppxManifest.xml
index a10377c..d3ddf0a 100644
--- a/packaging/msix/AppxManifest.xml
+++ b/packaging/msix/AppxManifest.xml
@@ -25,7 +25,7 @@
diff --git a/packaging/msix/build-msix.ps1 b/packaging/msix/build-msix.ps1
index 2575dfd..9bad5df 100644
--- a/packaging/msix/build-msix.ps1
+++ b/packaging/msix/build-msix.ps1
@@ -160,9 +160,9 @@ $manifest = Get-Content (Join-Path $scriptDir "AppxManifest.xml") -Raw
$manifest = $manifest.Replace("__IDENTITY_NAME__", $IdentityName)
$manifest = $manifest.Replace("__PUBLISHER_ID__", $PublisherId)
$manifest = $manifest.Replace("__PUBLISHER_DISPLAY_NAME__", $PublisherDisplayName)
-# Case-sensitive so it targets Identity's Version="..." and NOT the lowercase
-# version="1.0" in the declaration.
-$manifest = $manifest -creplace 'Version="[\d.]+"', "Version=`"$Version`""
+# Token replace (not regex) so we only touch Identity's Version and never the
+# declaration or TargetDeviceFamily Min/MaxVersion.
+$manifest = $manifest.Replace("__VERSION__", $Version)
Set-Content -Path (Join-Path $layout "AppxManifest.xml") -Value $manifest -Encoding UTF8
# --- 4. Pack -----------------------------------------------------------------