Skip to content

Support ASP.NET Core 11#3786

Draft
martincostello wants to merge 13 commits intomasterfrom
dotnet-vnext
Draft

Support ASP.NET Core 11#3786
martincostello wants to merge 13 commits intomasterfrom
dotnet-vnext

Conversation

@martincostello
Copy link
Collaborator

@martincostello martincostello commented Feb 13, 2026

  • Add support for .NET 11.
  • Drop support for .NET 8 and 9.

TODO

Before merge:

  • Use stable version of .NET 11 SDK
  • Use stable versions of Microsoft.AspNetCore NuGet packages
  • Use Microsoft.OpenApi 3.x.x for net11.0 (Latest)
  • Use Microsoft.OpenApi 3.x.x for all TFMs (Latest)
  • Support OpenAPI 3.2
  • Remove NU5104 suppression
  • Check VersionPrefix is correct for the next major version at the time of merge (Next)
  • Remove any members decorated with [Obsolete] that are appropriate (code search)
  • Update documentation samples
  • Create migration guide

Prerelease builds from this PR can be consumed from MyGet:

<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.0-pr.3786.*" />
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="domaindrivendev" value="https://www.myget.org/F/domaindrivendev/api/v3/index.json" />
    <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

@martincostello martincostello added dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code documentation version-major A change suitable for release in a major version labels Feb 13, 2026
@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.97%. Comparing base (265e280) to head (518bd98).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3786      +/-   ##
==========================================
- Coverage   95.01%   94.97%   -0.05%     
==========================================
  Files         111      111              
  Lines        3910     3917       +7     
  Branches      788      789       +1     
==========================================
+ Hits         3715     3720       +5     
- Misses        195      197       +2     
Flag Coverage Δ
Linux 94.97% <100.00%> (-0.05%) ⬇️
Windows 94.97% <100.00%> (-0.05%) ⬇️
macOS 94.97% <100.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Update to preview 1 of ASP.NET Core 11.
- Drop support for .NET 8 and 9.
@bkoelman
Copy link
Contributor

bkoelman commented Feb 20, 2026

A 11.* version doesn't seem to exist yet on MyGet:

{402E5AC1-1ACB-4ED7-AB4A-6D9D9185C06D}

Also, could you keep targets for .NET 8.0 and .NET 9.0 in this PR until they are out of support? It would enable our multi-targeted project to reference a single Swashbuckle version for all targets during this year. Otherwise, we'll need to #if for any API breaking changes.

{7F877FF0-AC5C-4FA5-9C87-8EB560BA58FD}

@bkoelman
Copy link
Contributor

Nope, 10.0.0-pr.3786.* doesn't exist either. Version 10.1.5-pr.3786.*does exist. But that means the non-preview part of the version needs to bump with every new stable release. Would it make more sense to start using 11.0-pr.3786.* for this PR?

@martincostello
Copy link
Collaborator Author

I'd been intentionally avoiding updating the version for now to avoid needing to resolve merge conflicts every time there's a new release from the default branch between now and November. The version that was in the PR description was just copy-paste I hadn't updated correctly - it should now be correct enough as of the time of writing.

There's no guarantee this will be v11 when it eventually gets merged - v10 supporting ASP.NET Core 10 was just a coincidence that the version numbers matched. For example if OpenAPI 3.2 support (#3646) gets merged ahead of .NET 11, then the release for this PR would be at least v12.

I'll update the version for this PR and the snippet in the PR description once the next patch release ships or I update this PR for 11.0.0-preview.2, whichever comes first.

I'm not planning on restoring the .NET 8 and 9 TFMs as they'll be out-of-support by the time this gets merged, and keeping them is just more maintenance burden for me and goes against the intention of this PR to effectively be a preview of what you'll get in November 2026.

Bump version to 11.0.0.
Update Microsoft.OpenApi to the latest version.
@martincostello
Copy link
Collaborator Author

The CI for this PR is now tracking a major version of 11.

Update to preview 2 of ASP.NET Core 11.
For .NET 11 (so far), target Microsoft.OpenApi 3.4.0.
Indent one more.
Fix for different TFMs.
@bkoelman
Copy link
Contributor

There's no guarantee this will be v11 when it eventually gets merged

If you're changing major versions over time and only updating the PR description, consumers have no way to track it. In that case, the recommended version in the PackageReference should just be: *-pr.3786.*.

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 documentation .NET Pull requests that update .NET code version-major A change suitable for release in a major version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants