Publish previews for .NET 11 #9715
Replies: 1 comment 1 reply
|
Good news, you can use Scalar on .NET 11 today without waiting for a new release. I verified this against .NET 11 Preview 6: a <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="11.0.0-preview.6.26359.118" />
<PackageReference Include="Scalar.AspNetCore.Microsoft" Version="2.16.18" />using Scalar.AspNetCore;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddOpenApi(options => options.AddScalarTransformers());
var app = builder.Build();
app.MapOpenApi();
app.MapScalarApiReference();
app.Run();We are holding off on adding a dedicated One heads-up: .NET 11 emits OpenAPI 3.2 by default, and our 3.2 rendering support is still in progress. If you run into any rendering quirks, you can pin the document back to 3.1: builder.Services.AddOpenApi(options =>
{
options.OpenApiVersion = Microsoft.OpenApi.OpenApiSpecVersion.OpenApi3_1;
options.AddScalarTransformers();
});Hope that helps, let us know if anything does not work on 11! |
Uh oh!
There was an error while loading. Please reload this page.
Scalar.AspNetCore.Microsoft is still on ASP.NET Core 10 and Microsoft.OpenAPI 2.x.
Could new preview versions of Scalar be published that support ASP.NET Core 11?
All reactions