Skip to content

feature: Migrate from .NET 7 to .NET 8 LTS - #58

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1782375920-migrate-dotnet8
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1782375920-migrate-dotnet8

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jun 25, 2026

Copy link
Copy Markdown

Summary

Migrates the entire solution from .NET 7 (EOL) to .NET 8 LTS.

Target framework: net7.0net8.0 across all 6 .csproj files (Domain, Application, Infrastructure, WebApi, and both test projects).

NuGet package upgrades:

Package Old New
Microsoft.EntityFrameworkCore* 7.0.10 8.0.11
Npgsql 7.0.4 8.0.6
Npgsql.EntityFrameworkCore.PostgreSQL* 7.0.4 8.0.11
AspNetCore.HealthChecks.NpgSql 7.0.0 8.0.1
Microsoft.AspNetCore.OpenApi 7.0.9 8.0.11
Swashbuckle.AspNetCore 6.5.0 6.9.0
FakeItEasy 7.4.0 8.3.0
Microsoft.NET.Test.Sdk 17.5.0 17.11.1
xunit 2.4.2 2.9.2
xunit.runner.visualstudio 2.4.5 2.8.2
coverlet.collector 3.2.0 6.0.2

Dockerfile: Base images aspnet:7.0aspnet:8.0, sdk:7.0sdk:8.0.

CI workflow: dotnet-version: 6.0.x8.0.x.

.NET 8 breaking change fixGetConnectionString() now returns string?; added null-guard in Program.cs:

var connectionString = builder.Configuration.GetConnectionString("DefaultConnection")
    ?? throw new InvalidOperationException("Connection string 'DefaultConnection' not found.");

Build: 0 errors. Tests: 14/14 passed.

Link to Devin session: https://app.devin.ai/sessions/d5f1cc7a0e8346e395c710cffdc8dcb4
Requested by: @iancmoritz


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Open in Devin Review (Staging)

- Update all .csproj TargetFramework from net7.0 to net8.0
- Upgrade EF Core packages from 7.0.10 to 8.0.11
- Upgrade Npgsql packages from 7.0.4 to 8.0.x
- Upgrade AspNetCore.HealthChecks.NpgSql from 7.0.0 to 8.0.1
- Upgrade Microsoft.AspNetCore.OpenApi from 7.0.9 to 8.0.11
- Upgrade Swashbuckle.AspNetCore from 6.5.0 to 6.9.0
- Upgrade test packages (xunit 2.9.2, FakeItEasy 8.3.0, etc.)
- Update Dockerfile base images from 7.0 to 8.0
- Update CI workflow dotnet-version from 6.0.x to 8.0.x
- Fix nullable warning for GetConnectionString in Program.cs

Co-Authored-By: Ian Moritz <ian.moritz@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
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, CI, and merge conflict monitoring

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