This skill should be used when packaging C# applications as production-ready self-contained executables or Docker containers. It covers self-contained deployment configuration (.NET publish with ReadyToRun/trimming/single-file), multi-platform build orchestration (Windows x64, Linux x64, macOS x64), platform-specific installers (MSI, DEB/RPM, DMG), Docker image hardening (non-root user, minimal attack surface, labels, vulnerability scanning), Figlet startup banners, and CI/CD pipeline integration.
win-x64, linux-x64, osx-x64| Need | Reference file |
|---|---|
| Build script for multi-platform self-contained executables | scripts/build-executables.sh |
| Docker build and hardening script | scripts/build-docker-image.sh |
| Hardened Dockerfile template | templates/Dockerfile.template |
dotnet publish -c Release -r win-x64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:ReadyToRun=true \
-p:PublishTrimmed=true \
-p:TrimmerRootAssembly=true
mcr.microsoft.com/dotnet/runtime:8.0-alpine (minimal)USER appuserorg.opencontainers.image.version, build-date, vcs-urltrivy image or equivalent).csproj for self-contained deploymentbuild-executables.sh for all target platformsSee root SKILL.md Golden Rules for the full list.
build-docker-image.sh MUST build successfully and pass health check verification before delivery.PyTorch深度学习模式与最佳实践,用于构建稳健、高效且可复现的训练流程、模型架构和数据加载。