From d2e08af18430248032ff23bb0f1bab6c518673e3 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 30 Apr 2026 15:25:23 +0000 Subject: [PATCH] Migrate from .NET 10 to .NET 8 (LTS) - Update TargetFramework from net10.0 to net8.0 in all 18 csproj files - Downgrade Microsoft.EntityFrameworkCore packages from 10.* to 8.* - Downgrade Npgsql.EntityFrameworkCore.PostgreSQL from 10.* to 8.* - Downgrade Microsoft.Extensions.Diagnostics.HealthChecks from 10.* to 8.* - Downgrade Swashbuckle.AspNetCore from 7.* to 6.* (.NET 8 compatible) - Update all 6 Dockerfiles from dotnet/sdk:10.0 and aspnet:10.0 to 8.0 - Fix incorrect Shared project reference paths in all API csproj files (../../Shared/ -> ../../../Shared/) - Update README.md references from .NET 10 to .NET 8 --- README.md | 6 +++--- src/ApiGateway/ApiGateway.csproj | 2 +- src/ApiGateway/Dockerfile | 4 ++-- src/Services/Customer/Customer.API/Customer.API.csproj | 10 +++++----- src/Services/Customer/Customer.API/Dockerfile | 4 ++-- .../Customer/Customer.Domain/Customer.Domain.csproj | 2 +- .../Customer.Infrastructure.csproj | 6 +++--- src/Services/Identity/Identity.API/Dockerfile | 4 ++-- src/Services/Identity/Identity.API/Identity.API.csproj | 10 +++++----- .../Identity/Identity.Domain/Identity.Domain.csproj | 2 +- .../Identity.Infrastructure.csproj | 6 +++--- src/Services/Notification/Notification.API/Dockerfile | 4 ++-- .../Notification.API/Notification.API.csproj | 10 +++++----- .../Notification.Domain/Notification.Domain.csproj | 2 +- .../Notification.Infrastructure.csproj | 6 +++--- src/Services/Order/Order.API/Dockerfile | 4 ++-- src/Services/Order/Order.API/Order.API.csproj | 10 +++++----- src/Services/Order/Order.Domain/Order.Domain.csproj | 2 +- .../Order.Infrastructure/Order.Infrastructure.csproj | 6 +++--- src/Services/Product/Product.API/Dockerfile | 4 ++-- src/Services/Product/Product.API/Product.API.csproj | 10 +++++----- .../Product/Product.Domain/Product.Domain.csproj | 2 +- .../Product.Infrastructure.csproj | 6 +++--- src/Shared/Shared.Contracts/Shared.Contracts.csproj | 2 +- .../Shared.Infrastructure/Shared.Infrastructure.csproj | 4 ++-- 25 files changed, 64 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index d6e9a9a..6ed8994 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ The monolith's bounded contexts are decomposed into the following independently ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ Identity │ │ Customer │ │ Order │ │ Service │ │ Service │ │ Service │ -│ (.NET 10) │ │ (.NET 10) │ │ (.NET 10) │ +│ (.NET 8) │ │ (.NET 8) │ │ (.NET 8) │ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ │ │ │ └────────────┬────┘─────────────────┘ @@ -27,7 +27,7 @@ The monolith's bounded contexts are decomposed into the following independently ┌──────────────┐ ┌┴─────────────┐ │ Product │ │ Notification │ │ Service │ │ Service │ -│ (.NET 10) │ │ (.NET 10) │ +│ (.NET 8) │ │ (.NET 8) │ └──────────────┘ └──────────────┘ ``` @@ -82,7 +82,7 @@ src/ ## Technology Stack -- **.NET 10** — ASP.NET Core Web API per service +- **.NET 8** — ASP.NET Core Web API per service - **Entity Framework Core** — per-service database (database-per-service pattern) - **YARP** — API gateway / reverse proxy - **RabbitMQ** — async messaging between services diff --git a/src/ApiGateway/ApiGateway.csproj b/src/ApiGateway/ApiGateway.csproj index 6ac003b..ee709ae 100644 --- a/src/ApiGateway/ApiGateway.csproj +++ b/src/ApiGateway/ApiGateway.csproj @@ -1,7 +1,7 @@ - net10.0 + net8.0 enable enable diff --git a/src/ApiGateway/Dockerfile b/src/ApiGateway/Dockerfile index abe6358..3d37f54 100644 --- a/src/ApiGateway/Dockerfile +++ b/src/ApiGateway/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 5000 -FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["ApiGateway/ApiGateway.csproj", "ApiGateway/"] RUN dotnet restore "ApiGateway/ApiGateway.csproj" diff --git a/src/Services/Customer/Customer.API/Customer.API.csproj b/src/Services/Customer/Customer.API/Customer.API.csproj index 8c284d4..ec2935e 100644 --- a/src/Services/Customer/Customer.API/Customer.API.csproj +++ b/src/Services/Customer/Customer.API/Customer.API.csproj @@ -1,17 +1,17 @@ - net10.0 + net8.0 enable enable - - + + - - + + diff --git a/src/Services/Customer/Customer.API/Dockerfile b/src/Services/Customer/Customer.API/Dockerfile index 2fc64ce..46cf3c3 100644 --- a/src/Services/Customer/Customer.API/Dockerfile +++ b/src/Services/Customer/Customer.API/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 5002 -FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/Customer/Customer.API/Customer.API.csproj", "Services/Customer/Customer.API/"] COPY ["Services/Customer/Customer.Domain/Customer.Domain.csproj", "Services/Customer/Customer.Domain/"] diff --git a/src/Services/Customer/Customer.Domain/Customer.Domain.csproj b/src/Services/Customer/Customer.Domain/Customer.Domain.csproj index 1a57862..bfa77a1 100644 --- a/src/Services/Customer/Customer.Domain/Customer.Domain.csproj +++ b/src/Services/Customer/Customer.Domain/Customer.Domain.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable diff --git a/src/Services/Customer/Customer.Infrastructure/Customer.Infrastructure.csproj b/src/Services/Customer/Customer.Infrastructure/Customer.Infrastructure.csproj index 107806b..5561ce8 100644 --- a/src/Services/Customer/Customer.Infrastructure/Customer.Infrastructure.csproj +++ b/src/Services/Customer/Customer.Infrastructure/Customer.Infrastructure.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable @@ -8,7 +8,7 @@ - - + + diff --git a/src/Services/Identity/Identity.API/Dockerfile b/src/Services/Identity/Identity.API/Dockerfile index e536e7e..6521fc7 100644 --- a/src/Services/Identity/Identity.API/Dockerfile +++ b/src/Services/Identity/Identity.API/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 5001 -FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/Identity/Identity.API/Identity.API.csproj", "Services/Identity/Identity.API/"] COPY ["Services/Identity/Identity.Domain/Identity.Domain.csproj", "Services/Identity/Identity.Domain/"] diff --git a/src/Services/Identity/Identity.API/Identity.API.csproj b/src/Services/Identity/Identity.API/Identity.API.csproj index 9b3e932..db8673d 100644 --- a/src/Services/Identity/Identity.API/Identity.API.csproj +++ b/src/Services/Identity/Identity.API/Identity.API.csproj @@ -1,17 +1,17 @@ - net10.0 + net8.0 enable enable - - + + - - + + diff --git a/src/Services/Identity/Identity.Domain/Identity.Domain.csproj b/src/Services/Identity/Identity.Domain/Identity.Domain.csproj index 1a57862..bfa77a1 100644 --- a/src/Services/Identity/Identity.Domain/Identity.Domain.csproj +++ b/src/Services/Identity/Identity.Domain/Identity.Domain.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable diff --git a/src/Services/Identity/Identity.Infrastructure/Identity.Infrastructure.csproj b/src/Services/Identity/Identity.Infrastructure/Identity.Infrastructure.csproj index ec3c7aa..19d263f 100644 --- a/src/Services/Identity/Identity.Infrastructure/Identity.Infrastructure.csproj +++ b/src/Services/Identity/Identity.Infrastructure/Identity.Infrastructure.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable @@ -8,7 +8,7 @@ - - + + diff --git a/src/Services/Notification/Notification.API/Dockerfile b/src/Services/Notification/Notification.API/Dockerfile index 252f690..85f39a9 100644 --- a/src/Services/Notification/Notification.API/Dockerfile +++ b/src/Services/Notification/Notification.API/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 5005 -FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/Notification/Notification.API/Notification.API.csproj", "Services/Notification/Notification.API/"] COPY ["Services/Notification/Notification.Domain/Notification.Domain.csproj", "Services/Notification/Notification.Domain/"] diff --git a/src/Services/Notification/Notification.API/Notification.API.csproj b/src/Services/Notification/Notification.API/Notification.API.csproj index 25b5fb0..b94391e 100644 --- a/src/Services/Notification/Notification.API/Notification.API.csproj +++ b/src/Services/Notification/Notification.API/Notification.API.csproj @@ -1,17 +1,17 @@ - net10.0 + net8.0 enable enable - - + + - - + + diff --git a/src/Services/Notification/Notification.Domain/Notification.Domain.csproj b/src/Services/Notification/Notification.Domain/Notification.Domain.csproj index 1a57862..bfa77a1 100644 --- a/src/Services/Notification/Notification.Domain/Notification.Domain.csproj +++ b/src/Services/Notification/Notification.Domain/Notification.Domain.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable diff --git a/src/Services/Notification/Notification.Infrastructure/Notification.Infrastructure.csproj b/src/Services/Notification/Notification.Infrastructure/Notification.Infrastructure.csproj index 16c8f17..713c2b0 100644 --- a/src/Services/Notification/Notification.Infrastructure/Notification.Infrastructure.csproj +++ b/src/Services/Notification/Notification.Infrastructure/Notification.Infrastructure.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable @@ -8,7 +8,7 @@ - - + + diff --git a/src/Services/Order/Order.API/Dockerfile b/src/Services/Order/Order.API/Dockerfile index eb9131b..8c381ba 100644 --- a/src/Services/Order/Order.API/Dockerfile +++ b/src/Services/Order/Order.API/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 5003 -FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/Order/Order.API/Order.API.csproj", "Services/Order/Order.API/"] COPY ["Services/Order/Order.Domain/Order.Domain.csproj", "Services/Order/Order.Domain/"] diff --git a/src/Services/Order/Order.API/Order.API.csproj b/src/Services/Order/Order.API/Order.API.csproj index 54aad4b..3b31ae4 100644 --- a/src/Services/Order/Order.API/Order.API.csproj +++ b/src/Services/Order/Order.API/Order.API.csproj @@ -1,17 +1,17 @@ - net10.0 + net8.0 enable enable - - + + - - + + diff --git a/src/Services/Order/Order.Domain/Order.Domain.csproj b/src/Services/Order/Order.Domain/Order.Domain.csproj index 1a57862..bfa77a1 100644 --- a/src/Services/Order/Order.Domain/Order.Domain.csproj +++ b/src/Services/Order/Order.Domain/Order.Domain.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable diff --git a/src/Services/Order/Order.Infrastructure/Order.Infrastructure.csproj b/src/Services/Order/Order.Infrastructure/Order.Infrastructure.csproj index 8958256..3c53132 100644 --- a/src/Services/Order/Order.Infrastructure/Order.Infrastructure.csproj +++ b/src/Services/Order/Order.Infrastructure/Order.Infrastructure.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable @@ -8,7 +8,7 @@ - - + + diff --git a/src/Services/Product/Product.API/Dockerfile b/src/Services/Product/Product.API/Dockerfile index 68798df..2efb4f7 100644 --- a/src/Services/Product/Product.API/Dockerfile +++ b/src/Services/Product/Product.API/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 5004 -FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/Product/Product.API/Product.API.csproj", "Services/Product/Product.API/"] COPY ["Services/Product/Product.Domain/Product.Domain.csproj", "Services/Product/Product.Domain/"] diff --git a/src/Services/Product/Product.API/Product.API.csproj b/src/Services/Product/Product.API/Product.API.csproj index 68be876..b5606ba 100644 --- a/src/Services/Product/Product.API/Product.API.csproj +++ b/src/Services/Product/Product.API/Product.API.csproj @@ -1,17 +1,17 @@ - net10.0 + net8.0 enable enable - - + + - - + + diff --git a/src/Services/Product/Product.Domain/Product.Domain.csproj b/src/Services/Product/Product.Domain/Product.Domain.csproj index 1a57862..bfa77a1 100644 --- a/src/Services/Product/Product.Domain/Product.Domain.csproj +++ b/src/Services/Product/Product.Domain/Product.Domain.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable diff --git a/src/Services/Product/Product.Infrastructure/Product.Infrastructure.csproj b/src/Services/Product/Product.Infrastructure/Product.Infrastructure.csproj index 874e159..1d524eb 100644 --- a/src/Services/Product/Product.Infrastructure/Product.Infrastructure.csproj +++ b/src/Services/Product/Product.Infrastructure/Product.Infrastructure.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable @@ -8,7 +8,7 @@ - - + + diff --git a/src/Shared/Shared.Contracts/Shared.Contracts.csproj b/src/Shared/Shared.Contracts/Shared.Contracts.csproj index 1a57862..bfa77a1 100644 --- a/src/Shared/Shared.Contracts/Shared.Contracts.csproj +++ b/src/Shared/Shared.Contracts/Shared.Contracts.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable diff --git a/src/Shared/Shared.Infrastructure/Shared.Infrastructure.csproj b/src/Shared/Shared.Infrastructure/Shared.Infrastructure.csproj index ac4cb85..496186c 100644 --- a/src/Shared/Shared.Infrastructure/Shared.Infrastructure.csproj +++ b/src/Shared/Shared.Infrastructure/Shared.Infrastructure.csproj @@ -1,6 +1,6 @@ - net10.0 + net8.0 enable enable @@ -8,7 +8,7 @@ - +