distribute
Skill17 starsChanged 12 days agoMITView on GitHub
Ship a Windows app to other PCs, from a self-contained or NativeAOT publish to signing, a zip or installer, WinGet, the Microsoft Store, updates, and package identity through a sparse package. Use when the user wants to share the app, make a release, sign it, get past SmartScreen, publish to WinGet or the Store, or needs a feature that requires package identity.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- YG3-ai/yg3-mcptheir own version, first seen Aug 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- YG3-ai/yg3-mcp★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-cliSkill
- csharp-winuiSkill
- improve-architectureSkill
- os-integrationsSkill
- performanceSkill
- app-iconSkill
- design-from-appSkill
- design-kitSkill
- design-systemSkill
- layout-gridSkill
- ux-designSkill
- windows-designSkill
- cloneSkill
- researchSkill
- user-storiesSkill
- build-and-verifySkill
- improve-loopSkill
- test-windows-appSkill
- app-briefSkill
- bawaSkill
- new-windows-appSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 61
Check: publish.ps1 prints published ...
- Very specific: line 94
Default to per-user installs in %LOCALAPPDATA%\Programs\<App>, the same path build.ps1 uses, so nothing needs administrator rights.
- Distinctive: line 116
When a story needs one of those, keep the folder install and add a sparse package ("packaging with external location"): a small signed MSIX …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Distribute
build.ps1 installs a build that only runs on a PC with the .NET runtime.
Everything here starts from tools/publish.ps1, which makes a build that
runs anywhere, and checks it with the self-test before you ship it.
1. Publish
tools/publish.ps1 # self-contained: .NET and the Windows App SDK in the folder
tools/publish.ps1 -Aot # NativeAOT: native code, no JIT
tools/publish.ps1 -Aot -Zip # plus a release zipMeasured on the template (Windows 11, 125% display, cold start to the main window):
| Kind | Start | Folder | Needs to build |
| Self-contained (JIT) | about 420 ms | 236 MB | the .NET SDK |
| NativeAOT | about 170 ms | 173 MB, a 9 MB exe | the .NET SDK and the MSVC linker |
Pick NativeAOT for anything that runs all day or opens on a shortcut: tray utilities, launchers, panels. PowerToys moved its Command Palette to NativeAOT for the same reason. Pick self-contained when the machine that builds has no C++ tools.
The MSVC linker comes from Visual Studio Build Tools, not the IDE:
winget install Microsoft.VisualStudio.2022.BuildTools --override "--quiet --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"publish.ps1 fails on any trim or AOT warning (IL2xxx, IL3xxx): each
one is a place that may break only in the published app. The usual fixes:
| Warning about | Fix |
JsonSerializer.Serialize<T> or Deserialize<T> | Source-generated JSON: add the type to AppJson ([JsonSerializable(typeof(T))]) and pass AppJson.Default.T |
Activator.CreateInstance, Assembly.GetTypes() | A static list of the types, or [DynamicallyAccessedMembers] on the Type |
| A NuGet package | Update it; check its docs for AOT support; otherwise publish without -Aot |
Gotchas:
dotnet publishof an unpackaged WinUI app drops the app's.pri(the compiled XAML lives in it) unlessEnableMsixTooling=trueis set. The app then dies inInitializeComponentwith no message.publish.ps1sets it and checks the.priis there.SelfContained=falsein the project blocks NativeAOT (NETSDK1102).publish.ps1passes--self-contained true.- NativeAOT's link step looks for
vswhere.exeon the PATH and fails with "'vswhere.exe' is not recognized" even when Build Tools are installed.publish.ps1adds the Visual Studio Installer folder to the PATH.
Check: publish.ps1 prints published ... and the self-test of the
published app passes.
2. Sign
Unsigned apps get a SmartScreen warning ("Windows protected your PC") and some company PCs refuse them. Sign the exe and any installer. Options:
| Who | Option |
| Individuals in the US or Canada, organizations in the US, Canada, EU, UK | Azure Artifact Signing (formerly Trusted Signing), about 10 USD a month |
| Everyone else | An OV code signing certificate from a CA |
| Open source projects | SignPath Foundation, free |
signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /a "$out\<App>.exe"
signtool verify /pa "$out\<App>.exe"An EV certificate no longer skips SmartScreen. Reputation builds as people download the signed file, with any of these. Signing tools and accounts are the user's: ask before you sign, and never put a certificate password in a script or a file in the repo.
3. Package
| Shape | When | How |
| Zip | A first release, a portable app, WinGet | publish.ps1 -Zip |
| Installer with updates | People expect Start menu, uninstall, and updates | Velopack: vpk pack turns the publish folder into Setup.exe, a portable zip, and delta updates. Test it on your app before you rely on it |
| MSI | Company deployment | WiX, per-user by default, like PowerToys |
| MSIX | The Store with free signing, or features that need identity | winapp pack (Microsoft's winapp CLI) builds and signs an MSIX from the command line |
Default to per-user installs in %LOCALAPPDATA%\Programs\<App>, the same
path build.ps1 uses, so nothing needs administrator rights.
4. List
- GitHub release: the zip, its SHA256 (
Get-FileHash), and the changes in words people use. - WinGet: a manifest with a
zipinstaller and aportablenested installer, made and submitted withwingetcreate new <zip url>. People then runwinget install <you>.<App>. - Microsoft Store: an unpackaged app goes in through the MSI or EXE route, signed by you; the Store does not update it for you. An MSIX submission is signed by the Store for free.
5. Package identity, only when needed
Some Windows features work only for an app with package identity: share targets, startup tasks, Explorer context menu entries on Windows 11, file types and protocols declared in a manifest, background tasks, and the Windows AI APIs. Global hotkeys, the tray, toasts from the Windows App SDK, and the HKCU Run key work without it.
When a story needs one of those, keep the folder install and add a sparse
package ("packaging with external location"): a small signed MSIX that
gives the existing exe an identity. PowerToys does this for its context
menus. winapp has a guide and create-debug-identity for testing.
Check before a release
tools/publish.ps1 -Aot -Zippasses, with the self-test.- The zip runs on a PC (or a Windows Sandbox) with no .NET installed: unzip, start, check the main page.
- The exe is signed and
signtool verify /papasses. - Version and changes are in the release notes.
Done when the published build passes its self-test, runs on a clean PC, is signed or the user decided to ship unsigned, and the release (zip, installer, or manifest) is where the user wanted it.
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.

