Migrate from .NET 6 to .NET 9 with IEBT Migrator #161
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
Migrates Mockaco from .NET 6.0 to .NET 9.0, including all dependencies and necessary code changes.
Changes Made
Framework Migration
net9.0:Mockaco.AspNetCore(Library)Mockaco(Console/Tool)Mockaco.AspNetCore.Tests(Tests).tool-versionsCode Changes (Breaking Changes Fixed)
InvalidMockException.cs
SYSLIB0051)ResponseMockingMiddleware.cs
response.Headers.Add()toresponse.Headers.Append()(ASP0019)ArgumentExceptionon duplicate headersNuGet Package Updates
Framework-Specific (Required)
Microsoft.Extensions.FileProviders.Physical: 6.0.0 → 10.0.0GitVersion.MsBuild: 5.12.0 → 6.5.0Critical Updates
Microsoft.CodeAnalysis.CSharp.Scripting: 4.6.0 → 5.0.0 (Roslyn - core C# scripting feature)Serilog.AspNetCore: 7.0.0 → 9.0.0Serilog.Settings.Configuration: 7.0.0 → 9.0.0Serilog.Sinks.Console: 4.1.0 → 6.1.1Serilog.Sinks.File: 5.0.0 → 7.0.0Test Infrastructure
Microsoft.NET.Test.Sdk: 17.6.2 → 18.0.1xunit: 2.4.2 → 2.9.3xunit.runner.visualstudio: 2.4.5 → 3.1.5coverlet.collector: 6.0.0 → 6.0.4Optional Packages
Bogus: 34.0.2 → 35.6.5Newtonsoft.Json: 13.0.3 → 13.0.4Microsoft.OpenApi.Readers: 1.6.4 → 1.6.28FluentAssertions: 6.11.0 → 8.8.0Moq: 4.18.4 → 4.20.72Testcontainers: 3.2.0 → 4.8.1Notes on System.CommandLine
2.0.0-beta1.21308.1(not upgraded to GA 2.0.0)Test Results
✅ All 70 tests passing
Pending Work (Future PRs)
This PR focuses on the core migration. The following tasks are documented but not included:
.github/workflows/main-release.yml)Testing Checklist
Migration Documentation
See
MIGRATION_PLAN.mdfor complete migration details, including:References
🤖 Generated with Claude Code