From bd1dee2ccf0ed35f1d3cdd3285130cdc589d4629 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Tue, 29 Mar 2022 12:43:41 -0700 Subject: [PATCH] ... --- APC Viewer/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/APC Viewer/Program.cs b/APC Viewer/Program.cs index 09b0667..4b3ad55 100644 --- a/APC Viewer/Program.cs +++ b/APC Viewer/Program.cs @@ -22,6 +22,7 @@ public class Program Args = args, ContentRootPath = Path.GetDirectoryName(assembly.Location) }); + _ = webApplicationBuilder.Host.UseWindowsService(); AppSettings appSettings = Models.Stateless.AppSettings.Get(webApplicationBuilder.Configuration); if (string.IsNullOrEmpty(appSettings.WorkingDirectoryName)) throw new Exception("Working directory name must have a value!");