Skip to content

Migrate from .NET 10 to .NET 8 (LTS)#29

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1777562511-migrate-net10-to-net8
Open

Migrate from .NET 10 to .NET 8 (LTS)#29
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1777562511-migrate-net10-to-net8

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented Apr 30, 2026

Summary

Migrates the entire microservices solution (18 projects) from .NET 10 to .NET 8 LTS.

Changes

Target Framework (all 18 .csproj files):

  • TargetFramework: net10.0net8.0

NuGet Package Downgrades:

  • Microsoft.EntityFrameworkCore: 10.*8.*
  • Microsoft.EntityFrameworkCore.Design: 10.*8.*
  • Npgsql.EntityFrameworkCore.PostgreSQL: 10.*8.*
  • Microsoft.Extensions.Diagnostics.HealthChecks: 10.*8.*
  • Swashbuckle.AspNetCore: 7.*6.*
  • Serilog.AspNetCore (8.*) and Yarp.ReverseProxy (2.*) kept as-is (already compatible)

Dockerfiles (all 6):

  • Base image: mcr.microsoft.com/dotnet/aspnet:10.08.0
  • Build image: mcr.microsoft.com/dotnet/sdk:10.08.0

Bug Fix:

  • Fixed incorrect Shared project reference paths in all 5 API .csproj files (../../Shared/../../../Shared/). This was a pre-existing issue that caused MSB9008 warnings and Notification.API build failures.

Documentation:

  • Updated README.md references from .NET 10 to .NET 8

Review & Testing Checklist for Human

  • Verify all 6 services build successfully: dotnet build each API .csproj
  • Run docker compose up --build from src/ to confirm containerized builds work with .NET 8 base images
  • Smoke-test each service endpoint (Identity :5001, Customer :5002, Order :5003, Product :5004, Notification :5005, Gateway :5000)

Notes

  • All C# source code uses standard ASP.NET Core patterns compatible with .NET 8 (minimal APIs, EF Core, health checks). No .NET 9/10-specific API usage was found.
  • The $"""...""" raw string literal syntax used in NotificationRenderer.cs is C# 11, which is supported in .NET 7+.
  • The Shared project path fix (../../Shared/../../../Shared/) resolves the pre-existing MSB9008 warnings on all services and the Notification.API build failure.

Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/08a338b44cd14233bccde904440ba257


Open in Devin Review

- 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
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Copy Markdown
Contributor Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants