From be78947b48ad11417e57dbab706c0c989b77ab72 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 16 Apr 2025 14:13:04 +0200 Subject: [PATCH] Remove Windows service check and update package versions Updated `Program.cs` to eliminate the Windows service conditional check. Updated `DigitalData.Core.Abstractions` and `DigitalData.Core.Application` to versions 3.4.1 and 3.2.1, respectively. Removed the `DigitalData.Core.Infrastructure` package reference. In `DigitalData.UserManager.Infrastructure.csproj`, updated `DigitalData.Core.Infrastructure` to version 2.0.1 and added `Microsoft.EntityFrameworkCore.Relational` for net7.0, net8.0, and net9.0 with corresponding versions. --- DigitalData.UserManager.API/Program.cs | 3 --- .../DigitalData.UserManager.Application.csproj | 9 ++------- .../DigitalData.UserManager.Infrastructure.csproj | 5 ++++- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/DigitalData.UserManager.API/Program.cs b/DigitalData.UserManager.API/Program.cs index 1ca735c..e5fd365 100644 --- a/DigitalData.UserManager.API/Program.cs +++ b/DigitalData.UserManager.API/Program.cs @@ -31,9 +31,6 @@ try { builder.Services.AddEncryptor(builder.Configuration.GetSection("EncryptionParameters")); - if (builder.Configuration.GetValue("RunAsWindowsService")) - builder.Host.UseWindowsService(); - builder.Logging.ClearProviders(); builder.Host.UseNLog(); diff --git a/DigitalData.UserManager.Application/DigitalData.UserManager.Application.csproj b/DigitalData.UserManager.Application/DigitalData.UserManager.Application.csproj index 734335d..5e717f9 100644 --- a/DigitalData.UserManager.Application/DigitalData.UserManager.Application.csproj +++ b/DigitalData.UserManager.Application/DigitalData.UserManager.Application.csproj @@ -26,17 +26,12 @@ - - - + + - - - - diff --git a/DigitalData.UserManager.Infrastructure/DigitalData.UserManager.Infrastructure.csproj b/DigitalData.UserManager.Infrastructure/DigitalData.UserManager.Infrastructure.csproj index 06802cd..ec72c57 100644 --- a/DigitalData.UserManager.Infrastructure/DigitalData.UserManager.Infrastructure.csproj +++ b/DigitalData.UserManager.Infrastructure/DigitalData.UserManager.Infrastructure.csproj @@ -26,19 +26,22 @@ - + + + +