add default worker script
erwan-joly opened this issue · comments
Microsoft.Extensions.Hosting.Systemd
Microsoft.Extensions.Hosting.WindowsServices
.UseWindowsService()
.UseSystem
dotnet restore
dotnet publish -c Release -o ./publish/workerservice
sc.exe create MyWorkerService binpath= ./publish/workerservice/worker-preview.exe