Skip to content

Update to .NET 11 - #201

Merged
marcominerva merged 1 commit into
masterfrom
develop
Nov 11, 2026
Merged

marcominerva merged 1 commit into
masterfrom
develop

Conversation

@marcominerva

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 11:12
@marcominerva
marcominerva merged commit 02f9c00 into master Nov 11, 2026
7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Package upgrades introduce OpenAPI 3.x incompatibilities in the authentication response helpers, causing protected-endpoint OpenAPI and Swagger document generation to fail with MissingMethodException.

1 open issue
What changed in this PR

This PR moves the authentication samples and publishing workflows to .NET 11, adds a .NET 11 target to the abstractions library, and introduces a dedicated Swashbuckle JWT sample.

Changes:

  • Update target frameworks, authentication dependencies, and OpenAPI packages.
  • Replace the solution’s .NET 8 JWT sample entry with the Swashbuckle sample.
  • Update publishing SDK versions and lengthen the README’s example signing key.
File Description
src/​SimpleAuthentication.Abstractions/​SimpleAuthentication.Abstractions.csproj Add net11.0 and update JWT dependencies.
SimpleAuthentication.slnx Replace the .NET 8 sample entry with Swashbuckle.
samples/​MinimalApis/​JwtBearerSample/​JwtBearerSample.csproj Upgrade framework and OpenAPI packages.
samples/​MinimalApis/​JwtBearerSample.Swashbuckle/​Properties/​launchSettings.json Add Swagger launch profiles.
samples/​MinimalApis/​JwtBearerSample.Swashbuckle/​Program.cs Add JWT endpoints and Swashbuckle integration.
samples/​MinimalApis/​JwtBearerSample.Swashbuckle/​JwtBearerSample.Swashbuckle.csproj Target net11.0 and Swashbuckle 11.
samples/​MinimalApis/​JwtBearerSample.Swashbuckle/​Authentication/​ClaimsTransformer.cs Add sample claims transformation.
samples/​MinimalApis/​JwtBearerSample.Swashbuckle/​Authentication/​ApplicationAuthenticationSchemeProvider.cs Add request-based authentication scheme selection.
samples/​MinimalApis/​JwtBearerSample.Swashbuckle/​appsettings.json Add JWT and logging configuration.
samples/​MinimalApis/​JwtBearerSample.Swashbuckle/​appsettings.Development.json Add development logging settings.
samples/​MinimalApis/​BasicAuthenticationSample/​BasicAuthenticationSample.csproj Upgrade framework and OpenAPI packages.
samples/​MinimalApis/​ApiKeySample/​ApiKeySample.csproj Upgrade framework and OpenAPI packages.
samples/​Controllers/​JwtBearerSample/​JwtBearerSample.csproj Upgrade framework and OpenAPI packages.
samples/​Controllers/​BasicAuthenticationSample/​BasicAuthenticationSample.csproj Upgrade framework and OpenAPI packages.
samples/​Controllers/​ApiKeySample/​ApiKeySample.csproj Upgrade framework and OpenAPI packages.
README.md Lengthen the example JWT signing key.
.github/​workflows/​publish.yml Use the .NET 11 SDK for publishing.
.github/​workflows/​publish_swashbuckle.yml Use the .NET 11 SDK for Swashbuckle publishing.
.github/​workflows/​publish_abstractions.yml Use the .NET 11 SDK for abstractions publishing.

Review effort: Balanced

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.12" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="10.2.3" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="11.0.0" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants