diff --git a/ExcelToPdfService.csproj b/ExcelToPdfService.csproj index 17c54dc..046076d 100644 --- a/ExcelToPdfService.csproj +++ b/ExcelToPdfService.csproj @@ -7,6 +7,7 @@ + diff --git a/Program.cs b/Program.cs index 5fa65b6..f5d1ad4 100644 --- a/Program.cs +++ b/Program.cs @@ -2,6 +2,7 @@ using ExcelToPdfService.Services; using Syncfusion.Licensing; var builder = WebApplication.CreateBuilder(args); +builder.Host.UseWindowsService(); // Run as Windows Service (also works as console app) // Syncfusion license SyncfusionLicenseProvider.RegisterLicense(