Skip to content

Update target framework to net10 for all packages#17

Merged
penyland merged 2 commits intomainfrom
update-to-net10
Jan 7, 2026
Merged

Update target framework to net10 for all packages#17
penyland merged 2 commits intomainfrom
update-to-net10

Conversation

@penyland
Copy link
Owner

@penyland penyland commented Jan 7, 2026

This pull request updates the Infinity Toolkit codebase and sample projects to target .NET 10.0, along with upgrading related NuGet package dependencies to their latest major versions. It also removes multi-targeting for older .NET versions in several projects and makes minor code adjustments to sample modules. These changes ensure compatibility with .NET 10.0 and leverage improvements from newer package releases.

.NET Version and Package Upgrades

  • Updated all project files to target net10.0, removing previous multi-targeting for net9.0 and net8.0 where applicable. [1] [2] [3] [4] [5] [6] [7]
  • Upgraded major NuGet package references throughout the codebase to their latest versions compatible with .NET 10.0, including Microsoft.AspNetCore.OpenApi, Microsoft.EntityFrameworkCore, Scrutor, Microsoft.Extensions.DependencyModel, and others. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Versioning and Container Updates

  • Incremented VersionPrefix properties for several toolkit projects to reflect new releases associated with the .NET 10.0 update. [1] [2] [3] [4] [5] [6]
  • Updated SQL Server test container image to use 2025-latest for integration tests, ensuring compatibility with the latest SQL Server release.

Sample Code Adjustments

  • Removed .WithOpenApi() from endpoint mapping in sample modules, likely due to changes or deprecation in the OpenAPI integration API for .NET 10.0. [1] [2]
  • Cleaned up package references in sample projects to remove unused or deprecated packages, streamlining dependencies for .NET 10.0. [1] [2] [3]

These updates collectively modernize the Infinity Toolkit ecosystem to fully support .NET 10.0 and its associated libraries.

Updated all sample projects to target .NET 10.0. Upgraded NuGet dependencies to latest versions, including Microsoft.AspNetCore.OpenApi, Scalar.AspNetCore, Scrutor, and Microsoft.Extensions.DependencyInjection. Removed Microsoft.OpenApi where no longer needed. Refactored endpoint mapping in SampleModule1.cs and WeatherModule.cs to remove .WithOpenApi(), aligning with .NET 10 OpenAPI changes. No functional changes to sample logic.
All projects now target .NET 10.0 exclusively, dropping support for earlier versions. NuGet dependencies are upgraded to latest major releases, including Microsoft.AspNetCore, EntityFrameworkCore, OpenTelemetry, Scrutor, and others. Project version numbers are incremented. SQL Server test containers now use the 2025 image. OpenAPI document transformers are refactored for improved standards compliance and maintainability. Minor code cleanups and test package updates are included. These changes improve compatibility, security, and performance across the toolkit.
Copy link
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 pull request updates the Infinity Toolkit codebase to target .NET 10.0, removing multi-targeting support for .NET 9.0 and 8.0. It upgrades NuGet package dependencies to their latest versions compatible with .NET 10.0 and makes code adjustments to adapt to API changes in the OpenAPI libraries and removes .WithOpenApi() calls from sample endpoint mappings.

  • Updated all project files from multi-targeting (net9.0, net8.0) to single-targeting net10.0
  • Upgraded major NuGet packages including Microsoft.AspNetCore.OpenApi, Microsoft.EntityFrameworkCore, Scrutor, and various Microsoft.Extensions packages to version 10.0.1 or later
  • Refactored OpenAPI security scheme transformers to adapt to .NET 10.0 API changes, including removing imports and changing how security schemes are added to documents
  • Removed .WithOpenApi() calls from sample module endpoint mappings

Reviewed changes

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

Show a summary per file
File Description
tests/Infinity.Toolkit.Tests/Infinity.Toolkit.Tests.csproj Updated test SDK packages to latest versions
src/Infinity.Toolkit/Infinity.Toolkit.csproj Changed to net10.0 single target, bumped version to 1.4.0, upgraded dependencies
src/Infinity.Toolkit.TestUtils/Infinity.Toolkit.TestUtils.csproj Changed to net10.0 single target, bumped version to 1.1.0, upgraded all Microsoft.Extensions packages
src/Infinity.Toolkit.Slack/Infinity.Toolkit.Slack.csproj Changed to net10.0, bumped version to 0.2.0
src/Infinity.Toolkit.OpenApi/OAuth2SecuritySchemeDefinitionDocumentTransformer.cs Refactored to use new .NET 10.0 OpenAPI APIs, changed URL construction, replaced OpenApiString with JsonNodeExtension
src/Infinity.Toolkit.OpenApi/Infinity.Toolkit.OpenApi.csproj Changed to net10.0, bumped version, removed Microsoft.OpenApi package, upgraded remaining packages
src/Infinity.Toolkit.OpenApi/BearerSecuritySchemeDefinitionDocumentTransformer.cs Removed unnecessary imports, simplified security scheme definition
src/Infinity.Toolkit.Messaging/Infinity.Toolkit.Messaging.csproj Changed to net10.0 single target, bumped version to 1.2.0, upgraded all dependencies
src/Infinity.Toolkit.Messaging.AzureServiceBus/Infinity.Toolkit.Messaging.AzureServiceBus.csproj Changed to net10.0, bumped version to 1.2.0, upgraded Azure.Identity
src/Infinity.Toolkit.LogFormatter/Infinity.Toolkit.LogFormatter.csproj Removed net8.0/net9.0 multi-targeting, bumped version to 1.2.0, upgraded dependencies
src/Infinity.Toolkit.IntegrationTests/SqlServerTestContainerFixture.cs Updated SQL Server container image to 2025-latest
src/Infinity.Toolkit.IntegrationTests/Infinity.Toolkit.IntegrationTests.csproj Changed to net10.0 single target, bumped version, upgraded all test packages
src/Infinity.Toolkit.FeatureModules/Infinity.Toolkit.FeatureModules.csproj Removed multi-targeting, bumped version to 1.5.0, upgraded dependencies
src/Infinity.Toolkit.Experimental/Infinity.Toolkit.Experimental.csproj Changed to net10.0, upgraded dependencies
src/Infinity.Toolkit.EntityFramework/Infinity.Toolkit.EntityFramework.csproj Changed to net10.0, bumped version, upgraded Entity Framework Core
src/Infinity.Toolkit.Azure/Infinity.Toolkit.Azure.csproj Changed to net10.0 single target, bumped version to 1.1.0, upgraded Azure packages
src/Infinity.Toolkit.AspNetCore/Infinity.Toolkit.AspNetCore.csproj Changed to net10.0 single target, bumped version to 1.3.0, upgraded JWT bearer package
samples/SlackMessageBuilder/SlackMessageBuilder.csproj Updated to target net10.0
samples/PipelineSample/PipelineSample.csproj Updated to target net10.0, upgraded Microsoft.Extensions.DependencyInjection
samples/MessagingSample/MessagingSample.csproj Updated to target net10.0, removed Microsoft.OpenApi package, upgraded remaining packages
samples/MediatorSample/MediatorSample.csproj Updated to target net10.0, upgraded Microsoft.Extensions.DependencyInjection
samples/HandlersSample/HandlersSample.csproj Updated to target net10.0, upgraded Scrutor
samples/FeatureModulesSample/WeatherModule.cs Removed .WithOpenApi() call from endpoint mapping
samples/FeatureModulesSample/FeatureModulesSample.csproj Updated to target net10.0, removed Microsoft.OpenApi package, upgraded remaining packages
samples/FeatureModulesSample.Module1/SampleModule1.cs Removed .WithOpenApi() call from endpoint group
samples/FeatureModulesSample.Module1/FeatureModulesSample.Module1.csproj Updated to target net10.0, removed Microsoft.OpenApi package, upgraded remaining package
samples/ConsoleLoggingFormatterSample/ConsoleLoggingFormatterSample.csproj Updated to target net10.0
samples/AzureServiceBusMessagingSample/AzureServiceBusMessagingSample.csproj Updated to target net10.0, removed Microsoft.OpenApi package, upgraded remaining package
samples/AzureSample/AzureSample.csproj Updated to target net10.0, upgraded OpenAPI and Scalar packages

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

@penyland penyland merged commit 61457f1 into main Jan 7, 2026
8 checks passed
@penyland penyland deleted the update-to-net10 branch January 30, 2026 14:17
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