winapp-troubleshoot

द्वारा microsoft

सामान्य विंडोज ऐप पैकेजिंग, साइनिंग, पहचान और SDK त्रुटियों का निदान और समाधान करें। MSIX पैकेजिंग, प्रमाणपत्र साइनिंग,… में त्रुटियों का सामना करने पर उपयोग करें।

npx skills add https://github.com/microsoft/winappcli --skill winapp-troubleshoot

When to use

Use this skill when:

  • Diagnosing errors from winapp CLI commands
  • Choosing the right command for a task
  • Understanding prerequisites — what each command needs and what it produces

Common errors & solutions

ErrorCauseSolution
"winapp.yaml not found"Running restore or update without configRun winapp init first, or cd to the directory containing winapp.yaml
"Package.appxmanifest not found"Running package, create-debug-identity, or cert generate --manifestRun winapp init or winapp manifest generate first, or pass --manifest <path>
"Publisher mismatch"Certificate publisher ≠ manifest publisherRegenerate cert: winapp cert generate --manifest, or edit Package.appxmanifest Identity.Publisher to match
"Access denied" / "elevation required"cert install without adminRun terminal as Administrator for winapp cert install
"Package installation failed"Cert not trusted, or stale package registrationwinapp cert install ./devcert.pfx (admin), then Get-AppxPackage <name> | Remove-AppxPackage
"Certificate not trusted"Dev cert not installed on machinewinapp cert install ./devcert.pfx (admin)
"Build tools not found"First run, tools not yet downloadedRun winapp update to download tools; ensure internet access
"Failed to add package identity"Stale debug identity or untrusted certGet-AppxPackage *yourapp* | Remove-AppxPackage to clean up, then winapp cert install and retry
"Certificate file already exists"devcert.pfx already presentUse winapp cert generate --if-exists overwrite or --if-exists skip
"Manifest already exists"Package.appxmanifest already presentUse winapp manifest generate --if-exists overwrite or edit manifest directly
run / create-debug-identity registration error 0x800704ECDeveloper Mode is disabledEnable it in Settings → Privacy & security → For developers, or Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock' -Name AllowDevelopmentWithoutDevLicense -Value 1, then retry
run / create-debug-identity registration error 0x80073CFBPackage already registered with a conflicting identityRun winapp unregister (or winapp unregister --force if the package was registered from a different project tree), then retry
App's Start menu entry launches nothing, silentlyPackage still registered after its files were deletedRun winapp unregister --prune to remove every dev registration whose files are gone

Command selection guide

Is the app a single .cs file (.NET file-based app)?
├─ Yes → winapp run <file>.cs  (builds it and generates the manifest for you)
└─ No → Does the project have a Package.appxmanifest?
   ├─ No → Do you want full setup (manifest + config + optional SDKs)?
   │       ├─ Yes → winapp init (adds Windows platform files to existing project)
   │       └─ No, just a manifest → winapp manifest generate
   └─ Yes
      ├─ Has winapp.yaml, cloned/pulled but .winapp/ folder missing?
      │  └─ winapp restore
      ├─ Want newer SDK versions?
      │  └─ winapp update
      ├─ Need a dev certificate?
      │  └─ winapp cert generate (then winapp cert install for trust)
      ├─ Need package identity for debugging? (see [Debugging Guide](https://github.com/microsoft/WinAppCli/blob/main/docs/debugging.md))
      │  ├─ Exe is in your build output folder? (most frameworks)
      │  │  └─ winapp run <build-output-dir>
      │  └─ Exe is separate from app code? (Electron, sparse testing)
      │     └─ winapp create-debug-identity <exe>
      ├─ Ready to create MSIX installer?
      │  └─ winapp package <build-output> --cert ./devcert.pfx
      ├─ Need to sign an existing file?
      │  └─ winapp sign <file> <cert>
      ├─ Need to update app icons?
      │  └─ winapp manifest update-assets ./logo.png
      ├─ Need to run SDK tools directly?
      │  └─ winapp tool <toolname> <args>
      ├─ Need to publish to Microsoft Store?
      │  └─ winapp store <args> (passthrough to Store Developer CLI)
      └─ Need the .winapp directory path for build scripts?
         └─ winapp get-winapp-path (or --global for shared cache)

Important notes:

  • winapp init adds files to an existing project — it does not create a new project
  • The key prerequisite for most commands is Package.appxmanifest, not winapp.yaml
  • winapp.yaml is only needed for SDK version management (restore/update)
  • Projects with NuGet package references (e.g., .csproj referencing Microsoft.Windows.SDK.BuildTools) can use winapp commands without winapp.yaml
  • For Electron projects, use the npm package (npm install --save-dev @microsoft/winappcli) which includes Node.js-specific commands under npx winapp node

Debugging approach quick reference

GoalCommandKey detail
Run with identity (most common)winapp run .\build\DebugRegisters loose layout + launches; a console app gets an execution alias automatically
Attach debugger to running appwinapp run .\build\Debug → attach to PIDMisses startup code
Register identity, launch manuallywinapp run .\build\Debug --no-launchLaunch via start shell:AppsFolder\<AUMID> or execution alias — not the exe directly
F5 startup debugging (IDE launches exe)winapp create-debug-identity .\bin\myapp.exeExe has identity regardless of how it's launched; best for debugging activation/startup code
Capture OutputDebugString + crash dumpwinapp run .\build\Debug --debug-outputOn crash, writes minidump and shows exception type, message, and faulting methods. Blocks other debuggers — use --no-launch if you need VS Code/WinDbg
Run and auto-cleanwinapp run .\build\Debug --unregister-on-exitUnregisters the dev package after the app exits
Launch and detach (CI)winapp run .\build\Debug --detachReturns immediately after launch; use --json to get PID for scripting
Clean up stale registrationwinapp unregisterRemoves dev-mode packages for the current project (pass a .cs for a file-based app: winapp unregister counter.cs)
Start menu entry does nothing when clickedwinapp unregister --pruneThe package is registered but its files were deleted, so activation silently fails. Prune removes every dev registration whose files are gone

Visual Studio users: If you have a packaging project, VS already handles identity and debugging from F5 — you likely don't need winapp for debugging. These workflows are for VS Code, terminal, and frameworks VS doesn't natively package.

For full details, see the Debugging Guide.

Prerequisites & state matrix

CommandRequiresCreates/Modifies
initExisting project (any framework)winapp.yaml, .winapp/, Package.appxmanifest, Assets/, .gitignore update
restorewinapp.yaml.winapp/packages/, generated projections
updatewinapp.yamlUpdates versions in winapp.yaml, reinstalls packages
manifest generateNothingPackage.appxmanifest, Assets/
manifest update-assetsPackage.appxmanifest + source imageRegenerates Assets/ icons
cert generateNothing (or Package.appxmanifest for publisher)devcert.pfx
cert installCertificate file + adminMachine certificate store
create-debug-identityPackage.appxmanifest + exe + trusted certRegisters sparse package with Windows
runBuild output folder + Package.appxmanifest; or a .csproj/.sln; or a .cs file-based app (no manifest needed — one is generated)Registers loose layout package, launches app
unregisterA .cs file-based app, or Package.appxmanifest (auto-detect or --manifest)Removes dev-mode package registrations
packageBuild output + Package.appxmanifest.msix file
signFile + certificateSigned file (in-place)
create-external-catalogDirectory with executablesCodeIntegrityExternal.cat
tool <name>Nothing (auto-downloads tools)Runs SDK tool directly
storeNothing (auto-downloads Store CLI)Passthrough to Microsoft Store Developer CLI
get-winapp-pathNothingPrints .winapp directory path

Debugging tips

  • Add --verbose (or -v) to any command for detailed output
  • Add --quiet (or -q) to suppress progress messages (useful in CI/CD)
  • Run winapp --cli-schema to get the full JSON schema of all commands and options
  • Run any command with --help for its specific usage information
  • Use winapp get-winapp-path to find where packages are stored locally
  • Use winapp get-winapp-path --global to find the shared cache location

Getting more help

Related skills

  • Setup & init: winapp-setup — adding Windows support to a project
  • Manifest: winapp-manifest — creating and editing Package.appxmanifest
  • Signing: winapp-signing — certificate generation and management
  • Packaging: winapp-package — creating MSIX installers
  • Identity: winapp-identity — enabling package identity for Windows APIs
  • Frameworks: winapp-frameworks — framework-specific guidance (Electron, .NET, C++, Rust, Flutter, Tauri)
  • MAUI: winapp-maui — packaging/signing .NET MAUI Windows apps and resolving the resizetizer manifest

CLI reference

Run winapp <command> --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.

microsoft की और Skills

oss-growth
microsoft
OSS ग्रोथ हैकर व्यक्तित्व
agent-framework-azure-ai-py
microsoft
Microsoft Agent Framework Python SDK (agent-framework-azure-ai) का उपयोग करके Azure AI Foundry एजेंट बनाएं। AzureAIAgentsProvider के साथ स्थायी एजेंट बनाते समय, होस्टेड टूल्स (कोड इंटरप्रेटर, फ़ाइल खोज, वेब खोज) का उपयोग करते समय, MCP सर्वर एकीकृत करते समय, वार्तालाप थ्रेड प्रबंधित करते समय, या स्ट्रीमिंग प्रतिक्रियाएँ लागू करते समय उपयोग करें। फ़ंक्शन टूल्स, संरचित आउटपुट और मल्टी-टूल एजेंट शामिल हैं।
development
airunway-aks-setup
microsoft
AI Runway को AKS पर सेट करें — बेयर क्लस्टर से चल रहे मॉडल तक। इसमें क्लस्टर सत्यापन, कंट्रोलर इंस्टॉल, GPU मूल्यांकन, प्रोवाइडर सेटअप, और पहली डिप्लॉयमेंट शामिल है। कब: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on AKS", "run LLM on AKS", "vLLM on AKS", "set up model serving on AKS", "AI Runway controller"।
devops
appinsights-instrumentation
microsoft
Azure Application Insights के साथ वेबऐप्स को इंस्ट्रूमेंट करने के लिए मार्गदर्शन। टेलीमेट्री पैटर्न, SDK सेटअप, और कॉन्फ़िगरेशन संदर्भ प्रदान करता है। WHEN: ऐप को कैसे इंस्ट्रूमेंट करें, App Insights SDK, टेलीमेट्री पैटर्न, App Insights क्या है, Application Insights मार्गदर्शन, इंस्ट्रूमेंटेशन उदाहरण, APM सर्वोत्तम अभ्यास।
devops
applicationinsights-web-ts
microsoft
ब्राउज़र/वेब ऐप्स को Application Insights JavaScript SDK (@microsoft/applicationinsights-web) से इंस्ट्रूमेंट करें। Real User Monitoring (RUM) के लिए उपयोग करें — पेज व्यू, क्लिक, AJAX/fetch निर्भरताएँ, अपवाद, कस्टम इवेंट, और बैकएंड OpenTelemetry ट्रेस से सहसंबंधित ब्राउज़र-साइड GenAI एजेंट ट्रेस। SDK Loader Script और npm सेटअप, फ्रेमवर्क एक्सटेंशन (React, React Native, Angular), Click Analytics, टेलीमेट्री इनिशियलाइज़र, और ब्राउज़र से उत्सर्जित एजेंट/टूल/मॉडल स्पैन के लिए OTel GenAI सिमेंटिक कन्वेंशन शामिल हैं।
devops
azure-ai-anomalydetector-java
microsoft
Azure AI Anomaly Detector SDK for Java के साथ एनोमली डिटेक्शन एप्लिकेशन बनाएं। यूनीवेरिएट/मल्टीवेरिएट एनोमली डिटेक्शन, टाइम-सीरीज़ विश्लेषण, या AI-संचालित मॉनिटरिंग लागू करते समय उपयोग करें।
development
azure-ai-language-conversations-py
microsoft
<text> azure-ai-language-conversations Python SDK का उपयोग करके संवादात्मक भाषा समझ (CLU) लागू करें। ConversationAnalysisClient के साथ काम करते समय उपयोग करें ताकि वार्तालाप के इरादे और संस्थाओं का विश्लेषण किया जा सके, NLP सुविधाएँ बनाई जा सकें, या अनुप्रयोगों में भाषा समझ को एकीकृत किया जा सके। </text>
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python। ML वर्कस्पेस, जॉब्स, मॉडल, डेटासेट, कंप्यूट और पाइपलाइन के लिए उपयोग करें। ट्रिगर्स: "azure-ai-ml", "MLClient", "workspace", "model registry", "training jobs", "datasets"।
development