publishing-wpf-apps
8
总安装量
3
周安装量
#35631
全站排名
安装命令
npx skills add https://github.com/christian289/dotnet-with-claudecode --skill publishing-wpf-apps
Agent 安装分布
amp
2
opencode
2
kimi-cli
2
github-copilot
2
gemini-cli
2
Skill 文档
WPF Application Publishing Guide
When publishing WPF applications, ask the user about deployment and installer preferences.
Ask User: Deployment Method
Which deployment method do you need?
- Framework-Dependent – Small size (~1MB), requires .NET runtime
- Self-Contained – Includes runtime (150-200MB), no dependencies
- Single-File – One executable (50-80MB compressed)
Ask User: Installer Technology
Which installer/update technology do you prefer?
- Velopack (Recommended) – Modern, fast updates, delta updates
- MSIX – Windows Store, enterprise deployment
- NSIS – Traditional installer, full control
- Inno Setup – Simple, widely used
- None – Portable/xcopy deployment
Quick Reference
Deployment Methods
| Method | Size | Startup | Requirements |
|---|---|---|---|
| Framework-Dependent | ~1MB | Fast | .NET runtime |
| Self-Contained | 150-200MB | Fast | None |
| Single-File | 150-200MB | Medium | None |
| Single-File + Compressed | 50-80MB | Slower | None |
Installer Technologies
| Technology | Auto-Update | Delta Updates | Store | Complexity |
|---|---|---|---|---|
| Velopack | â | â | â | Low |
| MSIX | â | â | â | Medium |
| NSIS | Manual | â | â | High |
| Inno Setup | Manual | â | â | Medium |
WPF Limitations
â ï¸ PublishTrimmed: Not supported (reflection-heavy) â ï¸ PublishAot: Not supported (WPF incompatible)
Basic Commands
# Framework-Dependent
dotnet publish -c Release
# Self-Contained
dotnet publish -c Release -r win-x64 --self-contained true
# Single-File (WPF)
dotnet publish -c Release -r win-x64 --self-contained true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true
Additional Resources
- WPF Single-File: See WPF-SINGLE-FILE.md
- Size Optimization: See SIZE-OPTIMIZATION.md
- Installer Options: See INSTALLERS.md