Update target framework to net10 for all packages#17
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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.
src/Infinity.Toolkit.OpenApi/OAuth2SecuritySchemeDefinitionDocumentTransformer.cs
Show resolved
Hide resolved
src/Infinity.Toolkit.OpenApi/OAuth2SecuritySchemeDefinitionDocumentTransformer.cs
Show resolved
Hide resolved
src/Infinity.Toolkit.OpenApi/OAuth2SecuritySchemeDefinitionDocumentTransformer.cs
Show resolved
Hide resolved
src/Infinity.Toolkit.OpenApi/BearerSecuritySchemeDefinitionDocumentTransformer.cs
Show resolved
Hide resolved
src/Infinity.Toolkit.OpenApi/OAuth2SecuritySchemeDefinitionDocumentTransformer.cs
Show resolved
Hide resolved
src/Infinity.Toolkit.OpenApi/OAuth2SecuritySchemeDefinitionDocumentTransformer.cs
Show resolved
Hide resolved
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.
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
net10.0, removing previous multi-targeting fornet9.0andnet8.0where applicable. [1] [2] [3] [4] [5] [6] [7]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
VersionPrefixproperties for several toolkit projects to reflect new releases associated with the .NET 10.0 update. [1] [2] [3] [4] [5] [6]2025-latestfor integration tests, ensuring compatibility with the latest SQL Server release.Sample Code Adjustments
.WithOpenApi()from endpoint mapping in sample modules, likely due to changes or deprecation in the OpenAPI integration API for .NET 10.0. [1] [2]These updates collectively modernize the Infinity Toolkit ecosystem to fully support .NET 10.0 and its associated libraries.