From c5ead13a6bf203d503d223019a9956bd1cc3d1ed Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Fri, 31 Jan 2025 19:44:08 +0100 Subject: [PATCH 1/2] include AOT support in v9 moniker --- aspnetcore/fundamentals/openapi/aspnetcore-openapi.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/fundamentals/openapi/aspnetcore-openapi.md b/aspnetcore/fundamentals/openapi/aspnetcore-openapi.md index 4c3152603259..31de5ae72346 100644 --- a/aspnetcore/fundamentals/openapi/aspnetcore-openapi.md +++ b/aspnetcore/fundamentals/openapi/aspnetcore-openapi.md @@ -229,8 +229,6 @@ In order to restrict these code paths from being invoked by the build-time gener [AddServiceDefaults](https://source.dot.net/#TestingAppHost1.ServiceDefaults/Extensions.cs,0f0d863053754768,references) Adds common .NET Aspire services such as service discovery, resilience, health checks, and OpenTelemetry. -:::moniker-end - ## Trimming and Native AOT OpenAPI in ASP.NET Core supports trimming and native AOT. The following steps create and publish an OpenAPI app with trimming and native AOT: @@ -263,4 +261,6 @@ Publish the app. dotnet publish ``` +:::moniker-end + [!INCLUDE[](~/fundamentals/openapi/includes/aspnetcore-openapi6-8.md)] From 218aa5ed593eb83eda42fffbead4e7fc68e7a0c4 Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:24:00 +0100 Subject: [PATCH 2/2] fix link --- aspnetcore/fundamentals/openapi/aspnetcore-openapi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/openapi/aspnetcore-openapi.md b/aspnetcore/fundamentals/openapi/aspnetcore-openapi.md index 31de5ae72346..9d10200bf2f3 100644 --- a/aspnetcore/fundamentals/openapi/aspnetcore-openapi.md +++ b/aspnetcore/fundamentals/openapi/aspnetcore-openapi.md @@ -227,7 +227,7 @@ In order to restrict these code paths from being invoked by the build-time gener :::code language="csharp" source="~/fundamentals/openapi/samples/9.x/AspireApp1/AspireApp1.Web/Program.cs" highlight="5-8"::: -[AddServiceDefaults](https://source.dot.net/#TestingAppHost1.ServiceDefaults/Extensions.cs,0f0d863053754768,references) Adds common .NET Aspire services such as service discovery, resilience, health checks, and OpenTelemetry. +[AddServiceDefaults](https://source.dot.net/#TestingAppHost1.ServiceDefaults/Extensions.cs,0f0d863053754768,references) adds common .NET Aspire services such as service discovery, resilience, health checks, and OpenTelemetry. ## Trimming and Native AOT