Skip to content

Commit 9566cee

Browse files
Update openapi-aot.md (#34341)
* Update openapi-aot.md Fixes #34340 * Update openapi-aot.md * Update openapi-aot.md * Update aspnetcore/release-notes/aspnetcore-9/includes/openapi-aot.md * Update aspnetcore/release-notes/aspnetcore-9/includes/openapi-aot.md * Update aspnetcore/release-notes/aspnetcore-9/includes/openapi-aot.md * Update aspnetcore/release-notes/aspnetcore-9/includes/openapi-aot.md Co-authored-by: Tom Dykstra <[email protected]> --------- Co-authored-by: Tom Dykstra <[email protected]>
1 parent 9e42cc7 commit 9566cee

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

aspnetcore/release-notes/aspnetcore-9/includes/openapi-aot.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
### Microsoft.AspNetCore.OpenApi supports trimming and Native AOT
22

3-
The new built-in OpenAPI support in ASP.NET Core now also supports trimming and Native AOT.
4-
5-
### Get started
3+
OpenAPI in ASP.NET Core supports trimming and native AOT. The following steps create and publish an OpenAPI app with trimming and native AOT:
64

75
Create a new ASP.NET Core Web API (Native AOT) project.
86

@@ -16,13 +14,7 @@ Add the Microsoft.AspNetCore.OpenAPI package.
1614
dotnet add package Microsoft.AspNetCore.OpenApi --prerelease
1715
```
1816

19-
For this preview, you also need to add the latest Microsoft.OpenAPI package to avoid trimming warnings.
20-
21-
```console
22-
dotnet add package Microsoft.OpenApi
23-
```
24-
25-
Update *Program.cs* to enable generating OpenAPI documents.
17+
Update `Program.cs` to enable generating OpenAPI documents.
2618

2719
```diff
2820
+ builder.Services.AddOpenApi();
@@ -37,5 +29,3 @@ Publish the app.
3729
```console
3830
dotnet publish
3931
```
40-
41-
The app publishes using Native AOT without warnings.

0 commit comments

Comments
 (0)