[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699K3AH3D3Q9F0598CN741P":3,"skill-same:01M699K3AH3D3Q9F0598CN741P":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M699K3AH3D3Q9F0598CN741P","winapp-maui",null,"Package and sign .NET MAUI Windows apps with winapp: publish the Windows head first, then point packaging at the resolved resizetizer manifest. Use for a MAUI MSIX or signed unpackaged build, MAUI packaging in CI, or 'manifest contains unresolved placeholders' errors from winapp package.","microsoft\u002FwinappCli","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699J7Q2FM9V32CFV0Q8VPF9",1381,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinapp\u002Fskills\u002Fwinapp-maui\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"winapp maui","maui","use","point","for","at","errors","with","apps","head","build","msix","packaging","first","manifest","publish","ci","package","winapp package","windows","2026-11-10 10:12:30",false,"---\nname: winapp-maui\ndescription: \"Package and sign .NET MAUI Windows apps with winapp: publish the Windows head first, then point packaging at the resolved resizetizer manifest. Use for a MAUI MSIX or signed unpackaged build, MAUI packaging in CI, or 'manifest contains unresolved placeholders' errors from winapp package.\"\n---\n\n**If you can't run `winapp` yourself** (no shell, or the command is denied), give the user the exact `winapp` command(s) for their project instead of only describing the steps.\n\n## When to use\n\nUse this skill when:\n- **Packaging or signing a .NET MAUI Windows app** with winapp (`winapp package` \u002F `winapp sign`)\n- **`winapp package` fails** with an error like *\"manifest contains unresolved placeholders: `$placeholder$`\"*\n- **Deciding which manifest to hand to winapp** for a MAUI Windows head project\n- **Setting up CI\u002FCD** (GitHub Actions) that builds a MAUI app and produces a signed MSIX and\u002For signed unpackaged build\n\nMAUI is **not** a \"run `winapp init`\" framework — the Windows head already has a manifest and a build system that generates the real one for you. The only trick is pointing winapp at the **generated** manifest, never the source one.\n\n## The resizetizer dependency (root cause)\n\nA .NET MAUI project has a **source** manifest at `Platforms\u002FWindows\u002FPackage.appxmanifest` with placeholder tokens that the MAUI build pipeline resolves:\n\n```xml\n\u003CIdentity Name=\"maui-package-name-placeholder\" Publisher=\"CN=User Name\" Version=\"0.0.0.0\" \u002F>\n\u003CProperties>\n  \u003CDisplayName>$placeholder$\u003C\u002FDisplayName>\n  \u003CPublisherDisplayName>User Name\u003C\u002FPublisherDisplayName>\n  \u003CLogo>$placeholder$.png\u003C\u002FLogo>\n\u003C\u002FProperties>\n...\n\u003Cuap:VisualElements DisplayName=\"$placeholder$\" ... Square150x150Logo=\"$placeholder$.png\" Square44x44Logo=\"$placeholder$.png\">\n```\n\nThese are resolved at **build\u002Fpublish time** by **`Microsoft.Maui.Resizetizer`** (bundled with the MAUI workload), which reads MSBuild properties (`ApplicationTitle`, `ApplicationId`, `ApplicationDisplayVersion`, the `MauiIcon`\u002F`MauiSplashScreen` items, etc.), generates the app icon\u002Ftile\u002Fsplash assets, and writes a **resolved** manifest into the intermediate output.\n\n**Why winapp trips on this:** `winapp package` only auto-resolves its own entry-point tokens — `$targetnametoken$` and `$targetentrypoint$` (via `--executable`). It does **not** understand MAUI's `$placeholder$` tokens. If you point winapp at the raw `Platforms\u002FWindows\u002FPackage.appxmanifest`, packaging fails because those placeholders are still literal `$placeholder$` strings.\n\n> **Do not replace MAUI's placeholders in `Platforms\u002FWindows\u002FPackage.appxmanifest` just to satisfy winapp.** Keep framework-managed tokens in the source manifest and point winapp at the generated manifest. Files under `obj`\u002F`bin` are regenerated on every build, so never edit those generated copies.\n\n## Where the resolved manifest lives\n\nAfter a **Windows-targeted build or publish**, MAUI produces a fully-usable resolved manifest:\n\n| Manifest | Path (relative to project) | State |\n|----------|----------------------------|-------|\n| **Resizetizer manifest** | `obj\\\u003CConfig>\\\u003CTFM>\\\u003CRID>\\resizetizer\\m\\Package.appxmanifest` | MAUI `$placeholder$` tokens resolved; `$targetnametoken$`\u002F`$targetentrypoint$` remain (winapp resolves these via `--executable`) |\n\n> **Note:** When building with `WindowsPackageType=MSIX` (the default), MAUI also produces `bin\\\u003CConfig>\\\u003CTFM>\\\u003CRID>\\AppxManifest.xml` — a fully resolved manifest. This file is **not produced** in `WindowsPackageType=None` workflows. The resizetizer manifest above works in both cases.\n\nWhere:\n- `\u003CConfig>` = `Debug` or `Release`\n- `\u003CTFM>` = the Windows target framework, e.g. `net10.0-windows10.0.19041.0`\n- `\u003CRID>` = `win-x64` or `win-arm64`\n\nBoth paths are **per-RID** — you must publish each architecture first, then pack that architecture's manifest.\n\n## Usage\n\n### 1. Publish the Windows head first\n\nThe resolved manifest only exists **after** a Windows publish, so always publish before packing:\n\n```powershell\n# Self-contained unpackaged publish (no MSIX container) — regenerates the resolved manifest\ndotnet publish .\\MyApp\\MyApp.csproj `\n  -c Release `\n  -f net10.0-windows10.0.19041.0 `\n  -r win-x64 `\n  -p:WindowsPackageType=None `\n  -p:SelfContained=true `\n  -p:WindowsAppSDKSelfContained=true `\n  --output .\\publish\\win-x64\n```\n\n> Multi-targeted MAUI projects (`net10.0-android;net10.0-ios;net10.0-windows10.0.19041.0`) build the Windows head only when you pass the Windows `-f`\u002F`-r`. The winapp MSBuild targets are inert for non-Windows TFMs.\n\n### 2. Publisher must match the certificate\n\nThe resolved manifest preserves `Identity.Publisher` from `Platforms\\Windows\\Package.appxmanifest`. Your signing certificate subject **must equal** that value exactly, or signing fails with a publisher mismatch. To use a different publisher, edit the source manifest's `Identity Publisher=\"CN=...\"` value and publish again before generating the certificate.\n\n```powershell\n$manifest = \".\\MyApp\\obj\\Release\\net10.0-windows10.0.19041.0\\win-x64\\resizetizer\\m\\Package.appxmanifest\"\n\n# Fail fast if the build didn't produce it (usually means you skipped the Windows publish)\nif (-not (Test-Path $manifest)) {\n    throw \"Resolved manifest not found — publish the Windows head first.\"\n}\n\n# Generate or replace a matching dev cert from the resolved manifest\n# The default password is 'password' — use the same for --cert-password below\nwinapp cert generate --manifest $manifest --if-exists overwrite\n```\n\n### 3. Package a signed MSIX — point `--manifest` at the resolved manifest\n\n```powershell\nwinapp package .\\publish\\win-x64 `\n  --manifest $manifest `\n  --executable MyApp.exe `\n  --cert .\\devcert.pfx `\n  --cert-password password `\n  --output .\\artifacts\\MyApp-win-x64.msix\n```\n\n`--executable MyApp.exe` resolves the remaining `$targetnametoken$`\u002F`$targetentrypoint$` in the resizetizer manifest.\n\n> **Always use the explicit `--manifest` path** for `WindowsPackageType=None` workflows — manifest auto-detection from the publish folder does not apply because no `AppxManifest.xml` is generated in that output.\n\n### 4. Sign the unpackaged build\n\nFor the loose\u002Funpackaged (`WindowsPackageType=None`) build, sign the executables in place:\n\n```powershell\nwinapp sign .\\publish\\win-x64\\MyApp.exe .\\devcert.pfx --password password\n```\n\n> `winapp sign` uses a **positional** certificate path + `--password`. `winapp package` uses `--cert` \u002F `--cert-password`. Mixing them is a common mistake.\n\n## CI\u002FCD (GitHub Actions)\n\nExample for x64 — pack the resolved manifest and sign. Store a self-signed (or CA-issued) PFX as a base64 secret. For arm64, add a second set of publish\u002Fsign\u002Fpack steps with `-r win-arm64` and the corresponding manifest path.\n\n```yaml\n- uses: actions\u002Fsetup-dotnet@v4\n  with:\n    dotnet-version: '10.0.x'\n\n- name: Install MAUI Windows workload\n  run: dotnet workload install maui-windows\n\n- uses: microsoft\u002Fsetup-winapp@v1\n\n- name: Restore signing cert\n  shell: pwsh\n  run: |\n    [IO.File]::WriteAllBytes(\"$env:RUNNER_TEMP\\sign.pfx\",\n      [Convert]::FromBase64String(\"${{ secrets.SIGN_PFX_BASE64 }}\"))\n    \"SIGN_PFX_PATH=$env:RUNNER_TEMP\\sign.pfx\" | Out-File $env:GITHUB_ENV -Append\n\n- name: Publish Windows head (x64, self-contained)\n  run: >\n    dotnet publish .\\MyApp\\MyApp.csproj -c Release\n    -f net10.0-windows10.0.19041.0 -r win-x64\n    -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true\n    --output .\\publish\\win-x64\n\n- name: Sign unpackaged binaries (x64)\n  shell: pwsh\n  env:\n    SIGN_PFX_PASSWORD: ${{ secrets.SIGN_PFX_PASSWORD }}\n  run: |\n    Get-ChildItem .\\publish\\win-x64 -Filter *.exe |\n      ForEach-Object { winapp sign $_.FullName $env:SIGN_PFX_PATH --password $env:SIGN_PFX_PASSWORD --quiet }\n\n- name: Pack signed MSIX (x64)\n  shell: pwsh\n  env:\n    SIGN_PFX_PASSWORD: ${{ secrets.SIGN_PFX_PASSWORD }}\n  run: |\n    $manifest = \".\\MyApp\\obj\\Release\\net10.0-windows10.0.19041.0\\win-x64\\resizetizer\\m\\Package.appxmanifest\"\n    if (-not (Test-Path $manifest)) { throw \"Resolved manifest not found: $manifest\" }\n    winapp package .\\publish\\win-x64 --manifest $manifest --executable MyApp.exe `\n      --cert $env:SIGN_PFX_PATH --cert-password $env:SIGN_PFX_PASSWORD `\n      --output .\\artifacts\\MyApp-win-x64.msix --quiet\n\n- name: Cleanup signing cert\n  if: always()\n  shell: pwsh\n  run: |\n    if ($env:SIGN_PFX_PATH -and (Test-Path $env:SIGN_PFX_PATH)) {\n      Remove-Item -Path $env:SIGN_PFX_PATH -Force\n    }\n```\n\n**Tips:**\n- Use `-q`\u002F`--quiet` to reduce log noise.\n- A **self-signed** cert produces a valid signature but does **not** clear SmartScreen reputation for other users — only an OV\u002FEV cert from a trusted CA builds reputation. See `winapp-signing`.\n- Add `devcert.pfx` and decoded PFX paths to `.gitignore`; never commit certificates.\n\n### End-to-end validation script\n\nFor a practical repo-level check of the MAUI workflow, run:\n\n```powershell\n.\\scripts\\test-samples.ps1 -Samples maui-app\n```\n\nThis executes `samples\\maui-app\\test.Tests.ps1`, which creates a MAUI app from scratch, publishes the Windows head, packages with the generated resizetizer manifest, and signs the unpackaged executable.\n\nThe repository also includes a concrete MAUI sample project under `samples\\maui-app\\`.\n\n## Tips\n\n- The resolved manifest is **regenerated on every Windows build\u002Fpublish** — treat `obj\\...\\resizetizer\\m\\` and `bin\\...\\\u003CRID>\\AppxManifest.xml` as build outputs, not something to check in.\n- If the manifest path doesn't exist, you almost always **forgot to publish the Windows head for that RID** (or targeted a non-Windows TFM). Publish first.\n- Package **each architecture separately** from its own per-RID publish folder and manifest, or pass both folders to `winapp package` to build an `.msixbundle` (see `winapp-package`).\n- For MSIX that shouldn't require the user to install the Windows App SDK runtime, add `--self-contained` to `winapp package` (or publish with `-p:WindowsAppSDKSelfContained=true` for unpackaged).\n- To launch the unpackaged app locally, run the published executable directly (for example, `.\\publish\\win-x64\\MyApp.exe`). `winapp run` requires a manifest in the input directory; since the `WindowsPackageType=None` publish folder does **not** contain one, pass `--manifest \u003Cresolved-manifest> --executable \u003Cexe>` explicitly if you use `winapp run`.\n\n## Related skills\n\n- **Packaging**: `winapp-package` — full `winapp package` reference, bundles, self-contained\n- **Signing**: `winapp-signing` — certificate generation, trust, timestamping, CA vs self-signed\n- **Manifest**: `winapp-manifest` — manifest structure and the `$targetnametoken$` placeholder\n- **Frameworks**: `winapp-frameworks` — other frameworks (Electron, WPF\u002FWinForms, C++, Rust, Flutter, Tauri)\n- Hitting an error? See `winapp-troubleshoot` for the error → solution table\n\n## Troubleshooting\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| \"manifest contains unresolved placeholders: `$placeholder$`\" | Pointed winapp at the **source** `Platforms\u002FWindows\u002FPackage.appxmanifest` | Point `--manifest` at the resolved manifest (`obj\\...\\resizetizer\\m\\Package.appxmanifest` or `bin\\...\\\u003CRID>\\AppxManifest.xml`) |\n| \"manifest not found\" at the resizetizer path | Windows head not published for that RID | Run `dotnet publish -f \u003Cwindows-tfm> -r \u003Crid>` **before** packing |\n| \"unresolved `$targetnametoken$` \u002F `$targetentrypoint$`\" | Packed the resizetizer manifest without an entry point | Add `--executable MyApp.exe`, or pack the fully-resolved `bin\\...\\AppxManifest.xml` instead |\n| \"Publisher mismatch\" during signing | Cert subject ≠ resolved manifest `Identity.Publisher` | Set `Identity Publisher=\"CN=...\"` in `Platforms\\Windows\\Package.appxmanifest`, publish again, then run `winapp cert generate --manifest \u003Cresolved-manifest> --if-exists overwrite` |\n| Placeholders reappear after editing the source manifest | Resizetizer overwrites its generated copy each build | Don't hand-edit the source manifest — change the MSBuild properties \u002F `MauiIcon` instead |\n","**If you can't run `winapp` yourself** (no shell, or the command is denied), give the user the exact `winapp` command(s) for their project instead of only describing the steps.\n\n## When to use\n\nUse this skill when:\n- **Packaging or signing a .NET MAUI Windows app** with winapp (`winapp package` \u002F `winapp sign`)\n- **`winapp package` fails** with an error like *\"manifest contains unresolved placeholders: `$placeholder$`\"*\n- **Deciding which manifest to hand to winapp** for a MAUI Windows head project\n- **Setting up CI\u002FCD** (GitHub Actions) that builds a MAUI app and produces a signed MSIX and\u002For signed unpackaged build\n\nMAUI is **not** a \"run `winapp init`\" framework — the Windows head already has a manifest and a build system that generates the real one for you. The only trick is pointing winapp at the **generated** manifest, never the source one.\n\n## The resizetizer dependency (root cause)\n\nA .NET MAUI project has a **source** manifest at `Platforms\u002FWindows\u002FPackage.appxmanifest` with placeholder tokens that the MAUI build pipeline resolves:\n\n```xml\n\u003CIdentity Name=\"maui-package-name-placeholder\" Publisher=\"CN=User Name\" Version=\"0.0.0.0\" \u002F>\n\u003CProperties>\n  \u003CDisplayName>$placeholder$\u003C\u002FDisplayName>\n  \u003CPublisherDisplayName>User Name\u003C\u002FPublisherDisplayName>\n  \u003CLogo>$placeholder$.png\u003C\u002FLogo>\n\u003C\u002FProperties>\n...\n\u003Cuap:VisualElements DisplayName=\"$placeholder$\" ... Square150x150Logo=\"$placeholder$.png\" Square44x44Logo=\"$placeholder$.png\">\n```\n\nThese are resolved at **build\u002Fpublish time** by **`Microsoft.Maui.Resizetizer`** (bundled with the MAUI workload), which reads MSBuild properties (`ApplicationTitle`, `ApplicationId`, `ApplicationDisplayVersion`, the `MauiIcon`\u002F`MauiSplashScreen` items, etc.), generates the app icon\u002Ftile\u002Fsplash assets, and writes a **resolved** manifest into the intermediate output.\n\n**Why winapp trips on this:** `winapp package` only auto-resolves its own entry-point tokens — `$targetnametoken$` and `$targetentrypoint$` (via `--executable`). It does **not** understand MAUI's `$placeholder$` tokens. If you point winapp at the raw `Platforms\u002FWindows\u002FPackage.appxmanifest`, packaging fails because those placeholders are still literal `$placeholder$` strings.\n\n> **Do not replace MAUI's placeholders in `Platforms\u002FWindows\u002FPackage.appxmanifest` just to satisfy winapp.** Keep framework-managed tokens in the source manifest and point winapp at the generated manifest. Files under `obj`\u002F`bin` are regenerated on every build, so never edit those generated copies.\n\n## Where the resolved manifest lives\n\nAfter a **Windows-targeted build or publish**, MAUI produces a fully-usable resolved manifest:\n\n| Manifest | Path (relative to project) | State |\n|----------|----------------------------|-------|\n| **Resizetizer manifest** | `obj\\\u003CConfig>\\\u003CTFM>\\\u003CRID>\\resizetizer\\m\\Package.appxmanifest` | MAUI `$placeholder$` tokens resolved; `$targetnametoken$`\u002F`$targetentrypoint$` remain (winapp resolves these via `--executable`) |\n\n> **Note:** When building with `WindowsPackageType=MSIX` (the default), MAUI also produces `bin\\\u003CConfig>\\\u003CTFM>\\\u003CRID>\\AppxManifest.xml` — a fully resolved manifest. This file is **not produced** in `WindowsPackageType=None` workflows. The resizetizer manifest above works in both cases.\n\nWhere:\n- `\u003CConfig>` = `Debug` or `Release`\n- `\u003CTFM>` = the Windows target framework, e.g. `net10.0-windows10.0.19041.0`\n- `\u003CRID>` = `win-x64` or `win-arm64`\n\nBoth paths are **per-RID** — you must publish each architecture first, then pack that architecture's manifest.\n\n## Usage\n\n### 1. Publish the Windows head first\n\nThe resolved manifest only exists **after** a Windows publish, so always publish before packing:\n\n```powershell\n# Self-contained unpackaged publish (no MSIX container) — regenerates the resolved manifest\ndotnet publish .\\MyApp\\MyApp.csproj `\n  -c Release `\n  -f net10.0-windows10.0.19041.0 `\n  -r win-x64 `\n  -p:WindowsPackageType=None `\n  -p:SelfContained=true `\n  -p:WindowsAppSDKSelfContained=true `\n  --output .\\publish\\win-x64\n```\n\n> Multi-targeted MAUI projects (`net10.0-android;net10.0-ios;net10.0-windows10.0.19041.0`) build the Windows head only when you pass the Windows `-f`\u002F`-r`. The winapp MSBuild targets are inert for non-Windows TFMs.\n\n### 2. Publisher must match the certificate\n\nThe resolved manifest preserves `Identity.Publisher` from `Platforms\\Windows\\Package.appxmanifest`. Your signing certificate subject **must equal** that value exactly, or signing fails with a publisher mismatch. To use a different publisher, edit the source manifest's `Identity Publisher=\"CN=...\"` value and publish again before generating the certificate.\n\n```powershell\n$manifest = \".\\MyApp\\obj\\Release\\net10.0-windows10.0.19041.0\\win-x64\\resizetizer\\m\\Package.appxmanifest\"\n\n# Fail fast if the build didn't produce it (usually means you skipped the Windows publish)\nif (-not (Test-Path $manifest)) {\n    throw \"Resolved manifest not found — publish the Windows head first.\"\n}\n\n# Generate or replace a matching dev cert from the resolved manifest\n# The default password is 'password' — use the same for --cert-password below\nwinapp cert generate --manifest $manifest --if-exists overwrite\n```\n\n### 3. Package a signed MSIX — point `--manifest` at the resolved manifest\n\n```powershell\nwinapp package .\\publish\\win-x64 `\n  --manifest $manifest `\n  --executable MyApp.exe `\n  --cert .\\devcert.pfx `\n  --cert-password password `\n  --output .\\artifacts\\MyApp-win-x64.msix\n```\n\n`--executable MyApp.exe` resolves the remaining `$targetnametoken$`\u002F`$targetentrypoint$` in the resizetizer manifest.\n\n> **Always use the explicit `--manifest` path** for `WindowsPackageType=None` workflows — manifest auto-detection from the publish folder does not apply because no `AppxManifest.xml` is generated in that output.\n\n### 4. Sign the unpackaged build\n\nFor the loose\u002Funpackaged (`WindowsPackageType=None`) build, sign the executables in place:\n\n```powershell\nwinapp sign .\\publish\\win-x64\\MyApp.exe .\\devcert.pfx --password password\n```\n\n> `winapp sign` uses a **positional** certificate path + `--password`. `winapp package` uses `--cert` \u002F `--cert-password`. Mixing them is a common mistake.\n\n## CI\u002FCD (GitHub Actions)\n\nExample for x64 — pack the resolved manifest and sign. Store a self-signed (or CA-issued) PFX as a base64 secret. For arm64, add a second set of publish\u002Fsign\u002Fpack steps with `-r win-arm64` and the corresponding manifest path.\n\n```yaml\n- uses: actions\u002Fsetup-dotnet@v4\n  with:\n    dotnet-version: '10.0.x'\n\n- name: Install MAUI Windows workload\n  run: dotnet workload install maui-windows\n\n- uses: microsoft\u002Fsetup-winapp@v1\n\n- name: Restore signing cert\n  shell: pwsh\n  run: |\n    [IO.File]::WriteAllBytes(\"$env:RUNNER_TEMP\\sign.pfx\",\n      [Convert]::FromBase64String(\"${{ secrets.SIGN_PFX_BASE64 }}\"))\n    \"SIGN_PFX_PATH=$env:RUNNER_TEMP\\sign.pfx\" | Out-File $env:GITHUB_ENV -Append\n\n- name: Publish Windows head (x64, self-contained)\n  run: >\n    dotnet publish .\\MyApp\\MyApp.csproj -c Release\n    -f net10.0-windows10.0.19041.0 -r win-x64\n    -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true\n    --output .\\publish\\win-x64\n\n- name: Sign unpackaged binaries (x64)\n  shell: pwsh\n  env:\n    SIGN_PFX_PASSWORD: ${{ secrets.SIGN_PFX_PASSWORD }}\n  run: |\n    Get-ChildItem .\\publish\\win-x64 -Filter *.exe |\n      ForEach-Object { winapp sign $_.FullName $env:SIGN_PFX_PATH --password $env:SIGN_PFX_PASSWORD --quiet }\n\n- name: Pack signed MSIX (x64)\n  shell: pwsh\n  env:\n    SIGN_PFX_PASSWORD: ${{ secrets.SIGN_PFX_PASSWORD }}\n  run: |\n    $manifest = \".\\MyApp\\obj\\Release\\net10.0-windows10.0.19041.0\\win-x64\\resizetizer\\m\\Package.appxmanifest\"\n    if (-not (Test-Path $manifest)) { throw \"Resolved manifest not found: $manifest\" }\n    winapp package .\\publish\\win-x64 --manifest $manifest --executable MyApp.exe `\n      --cert $env:SIGN_PFX_PATH --cert-password $env:SIGN_PFX_PASSWORD `\n      --output .\\artifacts\\MyApp-win-x64.msix --quiet\n\n- name: Cleanup signing cert\n  if: always()\n  shell: pwsh\n  run: |\n    if ($env:SIGN_PFX_PATH -and (Test-Path $env:SIGN_PFX_PATH)) {\n      Remove-Item -Path $env:SIGN_PFX_PATH -Force\n    }\n```\n\n**Tips:**\n- Use `-q`\u002F`--quiet` to reduce log noise.\n- A **self-signed** cert produces a valid signature but does **not** clear SmartScreen reputation for other users — only an OV\u002FEV cert from a trusted CA builds reputation. See `winapp-signing`.\n- Add `devcert.pfx` and decoded PFX paths to `.gitignore`; never commit certificates.\n\n### End-to-end validation script\n\nFor a practical repo-level check of the MAUI workflow, run:\n\n```powershell\n.\\scripts\\test-samples.ps1 -Samples maui-app\n```\n\nThis executes `samples\\maui-app\\test.Tests.ps1`, which creates a MAUI app from scratch, publishes the Windows head, packages with the generated resizetizer manifest, and signs the unpackaged executable.\n\nThe repository also includes a concrete MAUI sample project under `samples\\maui-app\\`.\n\n## Tips\n\n- The resolved manifest is **regenerated on every Windows build\u002Fpublish** — treat `obj\\...\\resizetizer\\m\\` and `bin\\...\\\u003CRID>\\AppxManifest.xml` as build outputs, not something to check in.\n- If the manifest path doesn't exist, you almost always **forgot to publish the Windows head for that RID** (or targeted a non-Windows TFM). Publish first.\n- Package **each architecture separately** from its own per-RID publish folder and manifest, or pass both folders to `winapp package` to build an `.msixbundle` (see `winapp-package`).\n- For MSIX that shouldn't require the user to install the Windows App SDK runtime, add `--self-contained` to `winapp package` (or publish with `-p:WindowsAppSDKSelfContained=true` for unpackaged).\n- To launch the unpackaged app locally, run the published executable directly (for example, `.\\publish\\win-x64\\MyApp.exe`). `winapp run` requires a manifest in the input directory; since the `WindowsPackageType=None` publish folder does **not** contain one, pass `--manifest \u003Cresolved-manifest> --executable \u003Cexe>` explicitly if you use `winapp run`.\n\n## Related skills\n\n- **Packaging**: `winapp-package` — full `winapp package` reference, bundles, self-contained\n- **Signing**: `winapp-signing` — certificate generation, trust, timestamping, CA vs self-signed\n- **Manifest**: `winapp-manifest` — manifest structure and the `$targetnametoken$` placeholder\n- **Frameworks**: `winapp-frameworks` — other frameworks (Electron, WPF\u002FWinForms, C++, Rust, Flutter, Tauri)\n- Hitting an error? See `winapp-troubleshoot` for the error → solution table\n\n## Troubleshooting\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| \"manifest contains unresolved placeholders: `$placeholder$`\" | Pointed winapp at the **source** `Platforms\u002FWindows\u002FPackage.appxmanifest` | Point `--manifest` at the resolved manifest (`obj\\...\\resizetizer\\m\\Package.appxmanifest` or `bin\\...\\\u003CRID>\\AppxManifest.xml`) |\n| \"manifest not found\" at the resizetizer path | Windows head not published for that RID | Run `dotnet publish -f \u003Cwindows-tfm> -r \u003Crid>` **before** packing |\n| \"unresolved `$targetnametoken$` \u002F `$targetentrypoint$`\" | Packed the resizetizer manifest without an entry point | Add `--executable MyApp.exe`, or pack the fully-resolved `bin\\...\\AppxManifest.xml` instead |\n| \"Publisher mismatch\" during signing | Cert subject ≠ resolved manifest `Identity.Publisher` | Set `Identity Publisher=\"CN=...\"` in `Platforms\\Windows\\Package.appxmanifest`, publish again, then run `winapp cert generate --manifest \u003Cresolved-manifest> --if-exists overwrite` |\n| Placeholders reappear after editing the source manifest | Resizetizer overwrites its generated copy each build | Don't hand-edit the source manifest — change the MSBuild properties \u002F `MauiIcon` instead |\n",{"name":5,"description":7},"main","1fe910277860e8dbb38bfbeef7e8bdb039d6ee41","plugins\u002Fwinapp\u002Fskills\u002Fwinapp-maui",96,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 07:14:37",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add microsoft\u002FwinappCli --skill winapp-maui",{"tool":59,"command":60},"bunx","bunx skills add microsoft\u002FwinappCli --skill winapp-maui",{"tool":62,"command":63},"pnpm","pnpm dlx skills add microsoft\u002FwinappCli --skill winapp-maui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinapp\u002Fskills\u002Fwinapp-maui\u002FSKILL.md",true,[67,73,77,81,85,89,93],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"agents\u002Fcritic.md","REFERENCE","参考文档",2068,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-proposal\u002Fagents\u002Fcritic.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"agents\u002Fopenai.yaml",321,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-proposal\u002Fagents\u002Fopenai.yaml",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"agents\u002Fproposer-alpha.md",1620,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-proposal\u002Fagents\u002Fproposer-alpha.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"agents\u002Fproposer-beta.md",2005,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-proposal\u002Fagents\u002Fproposer-beta.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"agents\u002Freconciler.md",2543,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-proposal\u002Fagents\u002Freconciler.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"agents\u002Fsynthesizer.md",3057,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-proposal\u002Fagents\u002Fsynthesizer.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fproposal-format.md",1760,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-proposal\u002Freferences\u002Fproposal-format.md",[98,122,154,179,197,212],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"01M699M75MK9AADQV8PQQQ6NEV","winui-wpf-migration","Migrate or port a WPF app to WinUI 3: namespaces (System.Windows to Microsoft.UI.Xaml), control mapping (DataGrid, WrapPanel, TabControl), Dispatcher to DispatcherQueue, imaging, MVVM with CommunityToolkit.Mvvm, ThemeResource. Use when converting WPF code or fixing migration build errors.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-wpf-migration\u002FSKILL.md",[],[105,106,107,108,9,38,109,110,111,112,113,114,21,115,116,117,118,119,25,120,121],"winui wpf migration","winui","wpf","migration","dispatcher","code","xaml","ui","migrate","system","mvvm","app","mapping","port","imaging","namespaces","when",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":138,"publishedAt":39},"01M699M4W3GKSVVT9CRR1E3KSW","winui-ui-testing","Write and run automated UI tests for Windows desktop apps (WinUI 3, WPF, WinForms, Win32) with the winapp ui harness: one batch script, assertions, input, file pickers, dialogs, screenshots, locally or in Windows Sandbox. Use when asked for UI tests or to verify a feature end to end.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-ui-testing\u002FSKILL.md",[128,133],{"categoryNo":129,"categoryName":130,"taxonomyType":131,"taxonomyTypeDesc":132},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":134,"categoryName":135,"taxonomyType":136,"taxonomyTypeDesc":137},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[139,140,106,112,141,142,143,38,144,145,146,147,148,149,150,27,151,152,153,23,121],"testing","winui ui testing","ui testing","screenshots","sandbox","run","win32","harness","batch","write","feature","end","input","winforms","desktop apps",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":163,"publishedAt":39},"01M699M2KTEYJZBDW7JBHM94K0","winui-setup","Install and verify WinUI 3 prerequisites — .NET SDK 8.0.100+, WinApp CLI 0.7+, and Developer Mode; identify additional Native AOT and Windows Sandbox requirements. Use when the user asks to set up or repair the toolchain, or when another WinUI skill finds a missing or outdated prerequisite.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-setup\u002FSKILL.md",[160],{"categoryNo":161,"categoryName":162,"taxonomyType":136,"taxonomyTypeDesc":137},"01JBSEEDCAT000000000000030","开发工程师",[164,165,106,166,143,167,38,168,169,170,21,171,172,173,174,175,176,177,178,121],"winui setup","setup","cli","sdk","SET","verify","install","up","repair","requirements","missing","native","toolchain","winapp cli","mode",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":188,"publishedAt":39},"01M699KZWEZ84A4J3291E6R65B","winui-packaging","MSIX packaging, signing, and Microsoft Store publishing for WinUI 3 apps with WinApp CLI 0.7+: project packaging, Native AOT, certificates, self-contained deployment, CI\u002FCD. Use when releasing or publishing a WinUI app. Not for WPF, WinForms, or Electron apps that only reference the Windows App SDK.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-packaging\u002FSKILL.md",[185],{"categoryNo":186,"categoryName":187,"taxonomyType":131,"taxonomyTypeDesc":132},"01JBSEEDCAT000000000000011","运维与部署",[189,106,31,166,167,190,9,30,38,191,35,192,193,194,195,116,27,152,175,196,177,23,121],"winui packaging","electron","windows app sdk","certificates","only","self","project","CI\u002FCD",{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":201,"categories":202,"keywords":203,"publishedAt":39},"01M699KXTHG9FHK4X3JSZ4SV8J","winui-dev-workflow","Create, build, run, and fix build errors in WinUI 3 apps (C# or C++) with WinApp CLI 0.7+: winapp new, winapp run, Native AOT, crash diagnosis. Use for a new WinUI app or a WinUI project that fails to build or crashes. Not for WPF, WinForms, or Electron apps that only reference the Windows App SDK.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-dev-workflow\u002FSKILL.md",[],[204,205,106,206,207,166,167,190,38,208,144,209,193,195,116,210,27,152,175,177,25,211],"workflow","winui dev workflow","dev","dev workflow","create","fix","diagnosis","new",{"skillNo":213,"name":214,"nameZh":6,"description":215,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":216,"categories":217,"keywords":228,"publishedAt":39},"01M699KV0Q6NE5EET5EDBH33NM","winui-design","Read before writing or changing WinUI 3 XAML: choosing controls, pages and navigation, layout, Fluent Design, theming, accessibility, x:Bind, real samples, and checking that APIs exist with winapp find-api. Not for WPF or WinForms UI, even if the app uses the Windows App SDK.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-design\u002FSKILL.md",[218,221,224,225],{"categoryNo":219,"categoryName":220,"taxonomyType":131,"taxonomyTypeDesc":132},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":222,"categoryName":223,"taxonomyType":131,"taxonomyTypeDesc":132},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":134,"categoryName":135,"taxonomyType":136,"taxonomyTypeDesc":137},{"categoryNo":226,"categoryName":227,"taxonomyType":136,"taxonomyTypeDesc":137},"01JBSEEDCAT000000000000036","内容创作者",[229,230,106,231,167,232,233,38,191,107,111,112,234,235,236,237,238,116,152,239,23,240],"design","winui design","writing","accessibility","fluent","api","read","layout","pages","bind","controls","fluent design"]