Skip to main content
Microsoft.AspNetCore.OpenApi package icon

Microsoft.AspNetCore.OpenApi

Provides APIs for annotating route handler endpoints in ASP.NET Core with OpenAPI annotations. This package was built from the source code at https://github.com/dotnet/dotnet/tree/17d11de66cf75b962995c81dd1235fae9aa5ece0

Total Downloads
204.2M
204,188,599
Published
Mar 10, 2026
Latest stable version

Install

.NET CLI
dotnet add package Microsoft.AspNetCore.OpenApi --version 11.0.0-preview.2.26159.112
Package Manager Console
Install-Package Microsoft.AspNetCore.OpenApi -Version 11.0.0-preview.2.26159.112
PackageReference
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="11.0.0-preview.2.26159.112" />

Frameworks

net11.0

Dependencies

[11.0.0-preview.2.26159.112, )
[11.0.0-preview.2.26159.112, )
[3.3.1, )

Adoption guide

Teams staying close to first-party ASP.NET Core primitives and minimal external framework layering.

ASP.NET Core guide
Why it appears in the guide: First-party OpenAPI generation support aligned with modern ASP.NET Core hosting patterns. Trade-off: Feature customization depth may require additional conventions or complementary packages.

This version is marked prerelease. Validate its API and upgrade path before production use.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.