Dotnet Windows Service

Windows Service conventions - the Service Control Manager layer over the .NET generic host: AddWindowsService and the dual-mode binary, SCM start/stop budgets, non-zero exit codes so recovery actions actually fire, the System32 working-directory trap, scripted sc.exe install with recovery actions, gMSA / least-privilege service accounts, unquoted-path and ACL hardening, event-log source registration, and the maintained .NET Framework ServiceBase shape + migration path. Load when building, installing, hardening, or migrating a Windows Service - AddWindowsService / UseWindowsService, sc.exe, ServiceBase, installutil, service accounts, SCM errors like 1053. Companions: dotnet-hosted-services (the host model this stacks on), csharp. Do NOT load for the generic worker/host model itself with no SCM target (dotnet-hosted-services), Linux daemons/systemd, or containerized workers.

envoydev 1adf2fc 3 files · 17.5 KB Updated

File contents

envoydev/claude-stack/tree/main/stack/skills/dotnet-windows-service commit 1adf2fcce2

Frequently asked questions

npx skillmds@latest add envoydev/dotnet-windows-service