[aspnetcore] Add support for .NET 10
Closed
JO
1mo ago+36753+36753+01234567890123456789012345678901234567890123456789-43-43-01234567890123456789
This PR adds for .NET 10, similar to how .NET 8 support was added previously.
I found issue #23402 which mentions .NET 10 support but has a much larger scope, this PR is just adding support for .NET 10 in the existing template.
PR checklist
- Read the contribution guidelines.
- Run the following to build the project and update samples:
(For Windows users, please run the script in WSL)./mvnw clean package || exit ./bin/generate-samples.sh ./bin/configs/*.yaml || exit ./bin/utils/export_docs_generators.sh || exit
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*.
IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed. - If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
Summary by cubic
Adds .NET 10.0 support to the aspnetcore generator so generated servers can target net10.0. The aspnetCoreVersion option now accepts 10.0, the Swashbuckle version option now includes 10.2.3, and the Dockerfile templates no longer pin a distro-specific image tag.
- Adds sample configs and regenerated Petstore servers for ASP.NET Core 10.0 across all generator option combinations.
- Adds a CI workflow that builds the .NET 10 sample servers.
- Updates the generator docs to list ASP.NET Core 10.0 as a supported version.