WindowsAppSDK-Samples
Copilot instructions1k starsChanged 13 months agoMITView on GitHub
Read scripts first; improve their headers instead of duplicating detail here.
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/WindowsAppSDK-Samples
- microsoft/WindowsAppSDK“Self-Contained Deployment Redirect Activation COM Error”GitHub · Feb 15, 2023 · 5 reactions
- MicrosoftDocs/windows-dev-docs“Rewrite/handle pointer input winui3”GitHub · Apr 22, 2026 · 1 reactions
- chrisglein/artificial-chat“Use local NPU/GPU for text generation and other capabilities when possible”GitHub · Sep 23, 2025 · 1 reactions
- praeclarum/CrossIntelligence“Windows Support”GitHub · Aug 6, 2025 · 1 reactions
- microsoft/WindowsAppSDK“Version 1.7 Experimental (1.7.0-experimental3) Error with Class not registered”GitHub · Mar 18, 2025 · 1 reactions
The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 24
Talked about on GitHub (24 times).
On GitHub · 24
- Feb 15, 2023Self-Contained Deployment Redirect Activation COM Error — microsoft/WindowsAppSDK5 reactions · 33 comments
- Apr 22, 2026Rewrite/handle pointer input winui3 — MicrosoftDocs/windows-dev-docs1 reaction · 4 comments
- Sep 23, 2025Use local NPU/GPU for text generation and other capabilities when possible — chrisglein/artificial-chat1 reaction
- Aug 6, 2025Windows Support — praeclarum/CrossIntelligence1 reaction · 2 comments
- Mar 18, 2025Version 1.7 Experimental (1.7.0-experimental3) Error with Class not registered — microsoft/WindowsAppSDK1 reaction · 11 comments
19 more on GitHub
- Aug 6, 2024Copy from a XAML control crashes with RPC_WRONG_THREAD / "Activating a single-threaded class from MTA is not supported" — microsoft/WindowsAppSDK1 reaction · 1 comment
- Nov 6, 2021AppWindowPresenterKind.FullScreen generating empty space on first run — microsoft/microsoft-ui-xaml1 reaction · 4 comments
- Sep 29, 2026[App Notifications] Unpackaged official sample: Register/Show succeed and Setting is Enabled, but notification never appears in Shell — microsoft/WindowsAppSDK0 reactions · 1 comment
- Sep 14, 2026Select newest MSVC redistributable for winrt-runtime — pywinrt/pywinrt0 reactions · 2 comments
- May 11, 2026[develop] Fix: Prose-to-sample mismatches with explicit corrections — qiutongMS/windows-dev-docs0 reactions · 1 comment
- Mar 17, 2026Add generalized WinAppSDK package support — mschofie/NuGetCMakePackage0 reactions · 1 comment
- Dec 21, 2025Add Windows App SDK experimental samples reference documentation — Strategickhaos/Sovereignty-Architecture-Elevator-Pitch-0 reactions
- Sep 24, 2025Fetching Execution provider with WindowsML ends up with "The product is not applicable or cannot be found." — microsoft/WindowsAppSDK0 reactions · 8 comments
- Aug 21, 2025Windows Notes — mattleibow/Maui.Essentials.AI0 reactions
- Apr 22, 2025Migrate the codebase of SceneGraph to WinUI 3 Gallery — microsoft/WinUI-Gallery0 reactions · 12 comments
- Jul 15, 2024Errors with multiple appExtensions for widgets — microsoft/WindowsAppSDK0 reactions · 1 comment
- Feb 14, 2024Keyboard entry is not working in XAML hosted MFC application. — microsoft/microsoft-ui-xaml0 reactions · 1 comment
- Dec 4, 2023Closing a child window causes a crash in a WinUI3 XAML-hosted application. — microsoft/microsoft-ui-xaml0 reactions · 3 comments
- Oct 12, 2023ResourceManagerRequested event is not working in Islands sample (sample bug) — microsoft/microsoft-ui-xaml0 reactions · 2 comments
- Feb 16, 2023ICompositionGraphicsDevice::CreateDrawingSurface seems to work only once — microsoft/microsoft-ui-xaml0 reactions · 2 comments
- Nov 11, 2022Bump Microsoft.WindowsAppSDK from 1.1.5 to 1.2.221109.1 — dimonovdd/maui0 reactions · 3 comments
- Nov 11, 2022Bump Microsoft.WindowsAppSDK from 1.1.5 to 1.2.221109.1 — matt-goldman/maui0 reactions · 3 comments
- Nov 11, 2022Bump Microsoft.WindowsAppSDK from 1.1.5 to 1.2.221109.1 — rookiejava/maui0 reactions · 3 comments
- Nov 11, 2022Bump Microsoft.WindowsAppSDK from 1.1.5 to 1.2.221109.1 — kokizzu/maui0 reactions · 3 comments
The file
We split this copilot-instructions.md into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Read scripts first; improve their headers instead of duplicating detail here.
- Very specific: line 6
Use only build.ps1 / build.cmd.
- Very specific: line 9
Run UpdateVersions.ps1 only after reading it.
- Distinctive: line 17
Never log secrets or absolute external paths.
- Very specific: line 20
Always enforce repo analyzers: root .editorconfig plus any stylecop.json.
- Very specific: line 30
Run a targeted build (e.g.
- Distinctive: line 32
No new warnings/errors or large cosmetic churn.
- Very specific: line 35
Before broad edits create DESIGN-<topic>.md:
- Distinctive: line 44
Keep this file lean; source-of-truth for behavior lives in script headers.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions (WindowsAppSDK-Samples)
Read scripts first; improve their headers instead of duplicating detail here.
Build
Use only build.ps1 / build.cmd. Read build.ps1 before invoking. It auto: detects platform, picks solutions (current dir > selected sample > all), initializes VS DevShell, restores via local nuget, emits .binlog per solution. Do NOT hand-roll msbuild/nuget restore logic.
Versions
Run UpdateVersions.ps1 only after reading it. Get the WinAppSDK version string from: https://www.nuget.org/packages/Microsoft.WindowsAppSdk/ (stable/preview/servicing) and pass as -WinAppSDKVersion.
Coding Guidelines
- Small, focused diffs; no mass reformatting; ensure SOLID principles.
- Preserve APIs, encoding, line endings, relative paths.
- PowerShell: approved verbs; each new script has Synopsis/Description/Parameters/Examples header.
- C#/C++: follow existing style; lean headers; forward declare where practical; keep samples illustrative.
- Minimal necessary comments; avoid noise. Centralize user strings for localization.
- Never log secrets or absolute external paths.
Language style rules
- Always enforce repo analyzers: root
.editorconfigplus anystylecop.json. - C# code follows StyleCop.Analyzers and Microsoft.CodeAnalysis.NetAnalyzers.
- C++ code honors
.clang-formatplus.clang-tidy(modernize/cppcoreguidelines/readability). - Markdown files wrap at 80 characters and use ATX headers with fenced code blocks that include language tags.
- YAML files indent two spaces and add comments for complex settings while keeping keys clear.
- PowerShell scripts use Verb-Noun names and prefer single-quoted literals while documenting parameters and satisfying PSScriptAnalyzer.
PR Guidance
- One intent per PR. Update script README/header if behavior changes.
- Provide summary: what / why / validation.
- Run a targeted build (e.g.
pwsh -File build.ps1 -Sample AppLifecycle). - For version bumps: inspect at least one changed project file.
- No new warnings/errors or large cosmetic churn.
Design Docs (Large / Cross-Sample)
Before broad edits create DESIGN-<topic>.md:
- Single sample:
Samples/<Sample>/DESIGN-<topic>.md - Multi-sample/shared: repo root. Include: Problem, Goals/Non-Goals, Affected Areas, Approach, Risks, Validation Plan. Reference doc in PR.
When Unsure
Draft a design doc or WIP PR summarizing assumptions—don't guess.
Keep this file lean; source-of-truth for behavior lives in script headers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

