Upgrade solution from .NET Core 3.1 to .NET 10#5
Open
fisheraj wants to merge 1 commit into
Open
Conversation
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 solution from .NET Core 3.1 to .NET 10, including all Lambda functions, the ASP.NET Core API, EF Core data layer, and AWS CDK infrastructure project.
Changes
SDK and target frameworks
global.json: SDK3.1.416→10.0.100netcoreapp3.1/netstandard2.0tonet10.0NuGet package updates
3.1.22→10.0.1(Core, Design, Relational, Tools)MySql.EntityFrameworkCore3.1.19→10.0.1Amazon.Lambda.Core2.0.0→2.7.1Amazon.Lambda.APIGatewayEvents2.4.0→2.7.3Amazon.Lambda.Serialization.SystemTextJson2.1.0→2.4.4Amazon.CDK.Lib2.10.0→2.250.0,Constructsbumped to[10.5.0,11.0.0)Microsoft.Extensions.*3.1.22→10.0.1System.Text.JsonandSystem.Net.Httpreferences (now built into the runtime)Code modernization
Startup.csintoProgram.cs)BookingContext.cs:HasIndex().HasName()→.HasDatabaseName()(API removed in EF Core 5+)Cidrproperty →IpAddresses.Cidr()PRIVATE_WITH_NAT→PRIVATE_WITH_EGRESSVER_8_0_26→VER_8_4_4(8.0 reaches end of support July 2026; 8.0.26 no longer available in RDS)BURSTABLE2→BURSTABLE4_GRAVITON(t2 family unsupported for MySQL 8.4)ParameterType.STRING/Typeproperty onStringParameterPropsInstanceTypebetween EC2 and RDS namespacesSAM / Lambda deployment
template.yaml: runtimedotnetcore3.1→dotnet10aws-lambda-tools-defaults.jsonfiles updated:framework→net10.0,function-runtime→dotnet10Other
docker-compose.yml: removed deprecatedversionkey.slnpointing at a nonexistent GUIDNuGet.Configscoped to nuget.orgTesting
10.0.202with 0 errorssam buildsucceeds for all six Lambda functions on SAM CLI1.158.0db.t4g.microrunning MySQL8.4.4, SSM parameter, secret)sam deploysucceeds; API Gateway stage reachableApplyDatabaseMigrationsLambda runs EF Core migrations; confirmedBookingDBschema createdPOST /booking/reservereturns HTTP 200 with a valid booking record from the deployed stackNotes for reviewers
NuGet.Configclears package sources down to only nuget.org. If your environment relies on private feeds, you may want to remove or adjust this file.