Skip to content

Conversation

@costellobot
Copy link
Collaborator

@costellobot costellobot commented Feb 25, 2025

Summary 🚀

Update to .NET 10.

Changes 📝

  • Update .NET SDK to 10.0.100
  • Update target framework to net10.0
  • Update NuGet package versions for .NET 10.0

Further Reading 📖

🤖 This pull request was generated by GitHub Actions using .NET Bumper.

@costellobot costellobot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file enhancement New feature or request labels Feb 25, 2025
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from a29f11e to 6e5423a Compare March 11, 2025 18:35
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 0c7d65b to f984b6e Compare March 21, 2025 06:16
@martincostello martincostello force-pushed the dotnet-vnext branch 3 times, most recently from 9d7680c to 97aa607 Compare April 4, 2025 07:57
martincostello added a commit that referenced this pull request Apr 5, 2025
Cherry-pick changes from #231 ahead of updating to .NET 10 in November.
martincostello added a commit that referenced this pull request Apr 5, 2025
Cherry-pick changes from #231 ahead of updating to .NET 10 in November.
@martincostello martincostello force-pushed the dotnet-vnext branch 4 times, most recently from 1608bec to 85cc533 Compare April 11, 2025 07:08
@martincostello
Copy link
Owner

@costellobot rebase

@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from a79d8a5 to 1a88b04 Compare May 2, 2025 04:45
martincostello and others added 13 commits November 11, 2025 15:22
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.
Update Swasbuckle.AspNetCore and Microsoft.OpenApi to their latest versions.
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.
Update to stable version of .NET 10.
@martincostello martincostello marked this pull request as ready for review November 11, 2025 16:34
Copilot AI review requested due to automatic review settings November 11, 2025 16:34
@martincostello martincostello enabled auto-merge (squash) November 11, 2025 16:35
Copilot finished reviewing on behalf of martincostello November 11, 2025 16:37
Copy link

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 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.
Copy link

Copilot AI Nov 11, 2025

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.'

Suggested change
// requests on a dynamic port. with a self-signed TLS certificate.
// requests on a dynamic port, with a self-signed TLS certificate.

Copilot uses AI. Check for mistakes.
@martincostello martincostello merged commit 8ee379d into main Nov 11, 2025
17 checks passed
@martincostello martincostello deleted the dotnet-vnext branch November 11, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants