-
-
Notifications
You must be signed in to change notification settings - Fork 2
Update to .NET 10 #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to .NET 10 #231
Conversation
a29f11e to
6e5423a
Compare
6e5423a to
9e46513
Compare
0c7d65b to
f984b6e
Compare
9d7680c to
97aa607
Compare
Cherry-pick changes from #231 ahead of updating to .NET 10 in November.
Cherry-pick changes from #231 ahead of updating to .NET 10 in November.
1608bec to
85cc533
Compare
85cc533 to
2ab0acc
Compare
|
@costellobot rebase |
a79d8a5 to
1a88b04
Compare
Update to preview 6 of ASP.NET Core 10.
Use the new `UseKestrel()` method for `WebApplicationFactory<T>` to remove the customisation needed to host the application on an HTTP port.
* Update .NET SDK Update .NET SDK to version 10.0.100-preview.7.25380.108. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-version: 10.0.100-preview.7.25380.108 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: costellobot <[email protected]> * Bump .NET NuGet packages Bumps .NET dependencies to their latest versions for the .NET 10.0.100-preview.7.25380.108 SDK. Bumps Microsoft.AspNetCore.Mvc.Testing from 10.0.0-preview.6.25358.103 to 10.0.0-preview.7.25380.108. Bumps Microsoft.AspNetCore.OpenApi from 10.0.0-preview.6.25358.103 to 10.0.0-preview.7.25380.108. Bumps Microsoft.EntityFrameworkCore.Sqlite from 10.0.0-preview.6.25358.103 to 10.0.0-preview.7.25380.108. Bumps Microsoft.Extensions.ApiDescription.Server from 10.0.0-preview.6.25358.103 to 10.0.0-preview.7.25380.108. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-version: 10.0.0-preview.7.25380.108 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.AspNetCore.OpenApi dependency-version: 10.0.0-preview.7.25380.108 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.EntityFrameworkCore.Sqlite dependency-version: 10.0.0-preview.7.25380.108 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Extensions.ApiDescription.Server dependency-version: 10.0.0-preview.7.25380.108 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: costellobot <[email protected]> --------- Signed-off-by: costellobot <[email protected]>
Update NuGet packages for .NET 10 preview 7.
Bump Microsoft.OpenApi to 2.1.0.
Update .NET SDK to version 10.0.100-rc.1.25451.107. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-version: 10.0.100-rc.1.25451.107 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: costellobot <[email protected]>
Update NuGet packages for .NET 10 RC1.
Bump Microsoft.OpenApi to 2.3.3.
* Update .NET SDK Update .NET SDK to version 10.0.100-rc.2.25502.107. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-version: 10.0.100-rc.2.25502.107 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: costellobot <[email protected]> * Bump .NET NuGet packages Bumps .NET dependencies to their latest versions for the .NET 10.0.100-rc.2.25502.107 SDK. Bumps Microsoft.AspNetCore.Mvc.Testing from 10.0.0-rc.1.25451.107 to 10.0.0-rc.2.25502.107. Bumps Microsoft.AspNetCore.OpenApi from 10.0.0-rc.1.25451.107 to 10.0.0-rc.2.25502.107. Bumps Microsoft.EntityFrameworkCore.Sqlite from 10.0.0-rc.1.25451.107 to 10.0.0-rc.2.25502.107. Bumps Microsoft.Extensions.ApiDescription.Server from 10.0.0-rc.1.25451.107 to 10.0.0-rc.2.25502.107. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-version: 10.0.0-rc.2.25502.107 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.AspNetCore.OpenApi dependency-version: 10.0.0-rc.2.25502.107 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.EntityFrameworkCore.Sqlite dependency-version: 10.0.0-rc.2.25502.107 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Extensions.ApiDescription.Server dependency-version: 10.0.0-rc.2.25502.107 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: costellobot <[email protected]> --------- Signed-off-by: costellobot <[email protected]>
Update packages for .NET 10 RC2.
Update to the latest release of v2.
Update to latest prerelease.
a0b69ec to
32b5502
Compare
Update to stable version of .NET 10.
There was a problem hiding this 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 updates the project from .NET 9 to .NET 10, including SDK, target frameworks, and NuGet package versions. The most significant changes involve migrating to Microsoft.OpenApi version 2.3.9, which introduces breaking API changes requiring code updates throughout the OpenAPI implementation.
Key changes:
- Updated .NET SDK from 9.0.307 to 10.0.100 and target frameworks from net9.0 to net10.0
- Updated Microsoft.OpenApi from 1.6.28 to 2.3.9, requiring API migration (IOpenApiAny → JsonNode, new security scheme reference patterns, interface changes)
- Simplified HttpServerFixture test infrastructure using new WebApplicationFactory.UseKestrel() and StartServer() methods
Reviewed Changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| global.json | Updated SDK version to 10.0.100 |
| .vsconfig | Updated Visual Studio component to Runtime.10.0 |
| .vscode/launch.json | Updated debug output path to net10.0 |
| startvscode.cmd | Updated TARGET environment variable to net10.0 |
| src/TodoApp/TodoApp.csproj | Updated target framework and package versions for .NET 10 |
| tests/TodoApp.Tests/TodoApp.Tests.csproj | Updated target framework and packages, removed Microsoft.OpenApi.Readers |
| perf/TodoApp.Benchmarks/TodoApp.Benchmarks.csproj | Updated target framework to net10.0 |
| tests/TodoApp.Tests/OpenApiTests.cs | Updated OpenAPI document loading to use new LoadAsync API |
| tests/TodoApp.Tests/HttpServerFixture.cs | Simplified using new WebApplicationFactory.UseKestrel() and StartServer() methods |
| src/TodoApp/OpenApi/Swashbuckle/SwashbuckleOpenApiEndpoints.cs | Updated security scheme setup for new API patterns |
| src/TodoApp/OpenApi/Swashbuckle/ExampleFilter.cs | Updated Apply method to handle IOpenApiSchema interface |
| src/TodoApp/OpenApi/Swashbuckle/AddDocumentTagsFilter.cs | Changed Tags initialization to HashSet |
| src/TodoApp/OpenApi/Swashbuckle/AddServersFilter.cs | Updated import statement |
| src/TodoApp/OpenApi/AspNetCore/AspNetCoreOpenApiEndpoints.cs | Updated security scheme with explicit reference creation and TODO comment |
| src/TodoApp/OpenApi/AspNetCore/AddSchemaDescriptionsTransformer.cs | Updated import statement |
| src/TodoApp/OpenApi/AspNetCore/AddExamplesTransformer.cs | Updated import statement |
| src/TodoApp/OpenApi/OpenApiExampleAttribute`2.cs | Changed return type from IOpenApiAny to JsonNode? |
| src/TodoApp/OpenApi/IOpenApiExampleMetadata.cs | Changed return type from IOpenApiAny to JsonNode?, updated comment |
| src/TodoApp/OpenApi/ExamplesProcessor.cs | Updated parameter types to interfaces and added null checks |
| src/TodoApp/OpenApi/ExampleFormatter.cs | Simplified to use JsonNode.Parse instead of manual OpenApiAny construction |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| return ClientOptions.BaseAddress.ToString(); | ||
| } | ||
| // Configure the address for the server to listen on for HTTPS | ||
| // requests on a dynamic port. with a self-signed TLS certificate. |
Copilot
AI
Nov 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect punctuation: period should be a comma. Should read 'requests on a dynamic port, with a self-signed TLS certificate.'
| // requests on a dynamic port. with a self-signed TLS certificate. | |
| // requests on a dynamic port, with a self-signed TLS certificate. |
Summary 🚀
Update to .NET 10.
Changes 📝
10.0.100net10.0Further Reading 📖
🤖 This pull request was generated by GitHub Actions using .NET Bumper.