Skip to content

chore: modernize from .NET 7 to .NET 9 - #60

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1783342044-net9-modernization
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1783342044-net9-modernization

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jul 6, 2026

Copy link
Copy Markdown

Summary

Upgrades the whole solution from net7.0 to net9.0 and bumps all NuGet packages, the Dockerfile base images, and the CI workflow to matching .NET 9 releases. No source code changes were needed — build is clean and all 20 tests pass, so there were no EF Core 7→9 or ASP.NET Core breaking changes to work around.

Target framework

All six project files: net7.0net9.0.

Package bumps

  • src/Infrastructure: EF Core (Core, Design, SqlServer, Tools) 7.0.109.0.17; Npgsql 7.0.49.0.5; Npgsql.EntityFrameworkCore.PostgreSQL + .NodaTime 7.0.49.0.4.
  • src/WebApi: AspNetCore.HealthChecks.NpgSql 7.0.09.0.0; Microsoft.AspNetCore.OpenApi 7.0.99.0.17; Microsoft.EntityFrameworkCore.Design 7.0.109.0.17; Swashbuckle.AspNetCore 6.5.09.0.6.
  • src/Application: Mapster 7.3.010.0.9 (only .Adapt<T>() is used, which is unchanged across majors).
  • Both test projects: Microsoft.NET.Test.Sdk 17.5.018.7.0; xunit 2.4.22.9.3; xunit.runner.visualstudio 2.4.53.1.5; coverlet.collector 3.2.010.0.1; FakeItEasy 7.4.09.0.1.

Dockerfile

aspnet:7.0 / sdk:7.0aspnet:9.0 / sdk:9.0.

CI (.github/workflows/dotnet.yml)

dotnet-version: 6.0.x9.0.x; actions/checkout@v3@v4; actions/setup-dotnet@v3@v4.

docker-compose.yml

Reviewed — no .NET-version-specific references (postgres/pgadmin images are unpinned, webapi builds from the Dockerfile), so no changes.

Verification

dotnet restore / dotnet build / dotnet test all succeed locally (20/20 tests pass). Build emits only pre-existing nullable warnings, unrelated to this upgrade.

Note: the security/snyk and license/snyk CI checks are expected to fail on any dependency-changing PR in this org (org-level Snyk policy, not a code issue).

Link to Devin session: https://app.devin.ai/sessions/845c09ec5bc94c35861ebdaab8fc3435
Requested by: @joao-cognition


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Open in Devin Review (Staging)

Co-Authored-By: Joao Esteves <joao.esteves@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