diff --git a/PepApi.Core/PepApi.Core.csproj b/PepApi.Core/PepApi.Core.csproj index 7cc1e4a..4854c3a 100644 --- a/PepApi.Core/PepApi.Core.csproj +++ b/PepApi.Core/PepApi.Core.csproj @@ -8,6 +8,7 @@ + diff --git a/PepApi.Core/Program.cs b/PepApi.Core/Program.cs index 8768dcf..f063a4f 100644 --- a/PepApi.Core/Program.cs +++ b/PepApi.Core/Program.cs @@ -4,6 +4,9 @@ using PepLib.Data; var builder = WebApplication.CreateBuilder(args); +// Enable Windows Service hosting +builder.Host.UseWindowsService(); + // Add services to the container builder.Services.AddControllers() .AddJsonOptions(options =>