Skip to content

Migration vers .NET 10#7

Merged
oliver254 merged 2 commits into
devfrom
migrate-dotnet10
Dec 23, 2025
Merged

Migration vers .NET 10#7
oliver254 merged 2 commits into
devfrom
migrate-dotnet10

Conversation

@oliver254
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to migrate the BrilliantMediator project and all its dependencies from .NET 9 to .NET 10. However, the migration contains numerous critical issues with invalid package versions and an incorrect namespace change that will likely prevent successful compilation.

Key Changes:

  • Updated TargetFramework from net9.0 to net10.0 across 7 project files
  • Updated Microsoft.Extensions.* packages from 9.0.x to 10.0.0
  • Updated third-party packages (Swashbuckle, Serilog, xUnit, etc.) to versions that appear to be invalid
  • Changed namespace from Microsoft.OpenApi.Models.OpenApiInfo to Microsoft.OpenApi.OpenApiInfo (likely incorrect)
  • Removed Microsoft.AspNetCore.OpenApi package reference
  • Added comprehensive migration documentation file

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tests/BrilliantMediator.Tests/BrilliantMediator.Tests.csproj Updates test project target framework to net10.0 and test package versions (several invalid versions)
src/BrilliantMediator/BrilliantMediator.csproj Updates main library target framework to net10.0 and Microsoft.Extensions packages to 10.0.0
samples/EcommerceDDD/EcommerceDDD.Infrastructure/EcommerceDDD.Infrastructure.csproj Updates infrastructure project to net10.0 with Microsoft.Extensions packages to 10.0.0
samples/EcommerceDDD/EcommerceDDD.Domain/EcommerceDDD.Domain.csproj Updates domain project target framework to net10.0
samples/EcommerceDDD/EcommerceDDD.Application/EcommerceDDD.Application.csproj Updates application project to net10.0 with Microsoft.Extensions.Logging.Abstractions to 10.0.0
samples/EcommerceDDD/EcommerceDDD.Api/Program.cs Changes OpenApiInfo namespace (appears incorrect)
samples/EcommerceDDD/EcommerceDDD.Api/EcommerceDDD.WebApi.csproj Updates web API project to net10.0, removes Microsoft.AspNetCore.OpenApi, updates Swashbuckle and Serilog (to invalid versions), and fixes indentation
samples/ConsoleApp/ConsoleApp.csproj Updates console app to net10.0 with Microsoft.Extensions.DependencyInjection to 10.0.0
MIGRATION_NET10.md Adds comprehensive migration documentation with package version details and troubleshooting information (contains multiple inaccuracies)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread MIGRATION_NET10.md Outdated
Comment thread MIGRATION_NET10.md Outdated
Comment thread MIGRATION_NET10.md Outdated
Comment thread MIGRATION_NET10.md Outdated
builder.Services.AddSwaggerGen(options =>
{
options.SwaggerDoc("v1", new Microsoft.OpenApi.Models.OpenApiInfo
options.SwaggerDoc("v1", new Microsoft.OpenApi.OpenApiInfo
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The namespace Microsoft.OpenApi.OpenApiInfo appears to be incorrect. The standard namespace for OpenApiInfo in Swashbuckle.AspNetCore and Microsoft.OpenApi packages is Microsoft.OpenApi.Models.OpenApiInfo, not Microsoft.OpenApi.OpenApiInfo. This will likely cause a compilation error. Please verify the correct namespace for the version of Swashbuckle.AspNetCore being used.

Suggested change
options.SwaggerDoc("v1", new Microsoft.OpenApi.OpenApiInfo
options.SwaggerDoc("v1", new Microsoft.OpenApi.Models.OpenApiInfo

Copilot uses AI. Check for mistakes.
Comment thread MIGRATION_NET10.md Outdated
Comment thread MIGRATION_NET10.md Outdated
@oliver254 oliver254 merged commit b9a7b50 into dev Dec 23, 2025
1 check passed
@oliver254 oliver254 deleted the migrate-dotnet10 branch December 23, 2025 11:32
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.

2 participants