net9.0
namespace Microsoft.AspNetCore.Builder
{
    public static class OpenApiEndpointConventionBuilderExtensions
    {
        [RequiresDynamicCode("Calls Microsoft.AspNetCore.OpenApi.OpenApiGenerator.GetOpenApiOperation(MethodInfo, EndpointMetadataCollection, RoutePattern) which uses dynamic analysis. Use IServiceCollection.AddOpenApi() to generate OpenAPI metadata at startup for all endpoints,")]
        [RequiresUnreferencedCode("Calls Microsoft.AspNetCore.OpenApi.OpenApiGenerator.GetOpenApiOperation(MethodInfo, EndpointMetadataCollection, RoutePattern) which uses dynamic analysis. Use IServiceCollection.AddOpenApi() to generate OpenAPI metadata at startup for all endpoints,")]
        public static TBuilder WithOpenApi<TBuilder>(this TBuilder builder)
            where TBuilder, IEndpointConventionBuilder!;
    }
}
.NET 9.0
Information specific to net9.0
Assemblies

Microsoft.AspNetCore.OpenApi , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60

Microsoft.AspNetCore.OpenApi , Version=9.0.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Your project needs a package reference to Microsoft.AspNetCore.OpenApi.

Package Microsoft.AspNetCore.OpenApi (10.0.0-alpha.1.24416.8) net9.0
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API

12/24/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙