chore: modernize from .NET 7 to .NET 9 - #60
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Joao Esteves <joao.esteves@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the whole solution from
net7.0tonet9.0and 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.0→net9.0.Package bumps
src/Infrastructure: EF Core (Core,Design,SqlServer,Tools)7.0.10→9.0.17;Npgsql7.0.4→9.0.5;Npgsql.EntityFrameworkCore.PostgreSQL+.NodaTime7.0.4→9.0.4.src/WebApi:AspNetCore.HealthChecks.NpgSql7.0.0→9.0.0;Microsoft.AspNetCore.OpenApi7.0.9→9.0.17;Microsoft.EntityFrameworkCore.Design7.0.10→9.0.17;Swashbuckle.AspNetCore6.5.0→9.0.6.src/Application:Mapster7.3.0→10.0.9(only.Adapt<T>()is used, which is unchanged across majors).Microsoft.NET.Test.Sdk17.5.0→18.7.0;xunit2.4.2→2.9.3;xunit.runner.visualstudio2.4.5→3.1.5;coverlet.collector3.2.0→10.0.1;FakeItEasy7.4.0→9.0.1.Dockerfile
aspnet:7.0/sdk:7.0→aspnet:9.0/sdk:9.0.CI (
.github/workflows/dotnet.yml)dotnet-version: 6.0.x→9.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 testall succeed locally (20/20 tests pass). Build emits only pre-existing nullable warnings, unrelated to this upgrade.Link to Devin session: https://app.devin.ai/sessions/845c09ec5bc94c35861ebdaab8fc3435
Requested by: @joao-cognition
Devin Review