From 8e9ff2986ebfbc1b7092ff92f90d0cc2ef973ba2 Mon Sep 17 00:00:00 2001 From: Alex Crome Date: Sat, 5 Apr 2025 07:58:19 +0100 Subject: [PATCH 1/2] Correct `dotnet new` command for creating an aot grpc app --- aspnetcore/grpc/native-aot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/grpc/native-aot.md b/aspnetcore/grpc/native-aot.md index b2004ad12e0e..029e1fc8a635 100644 --- a/aspnetcore/grpc/native-aot.md +++ b/aspnetcore/grpc/native-aot.md @@ -33,7 +33,7 @@ AOT compilation happens when the app is published. Native AOT is enabled with th Native AOT can also be enabled by specifying the `-aot` option with the ASP.NET Core gRPC template: ```dotnetcli - dotnet new grpc -aot + dotnet new grpc --aot ``` 2. Publish the app for a specific [runtime identifier (RID)](/dotnet/core/rid-catalog) using `dotnet publish -r `. From eef5255abc9cc1e410f3705b496f652ed4f7750a Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Sat, 5 Apr 2025 08:27:12 -0400 Subject: [PATCH 2/2] Update aspnetcore/grpc/native-aot.md --- aspnetcore/grpc/native-aot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/grpc/native-aot.md b/aspnetcore/grpc/native-aot.md index 029e1fc8a635..d9a09f00f5b3 100644 --- a/aspnetcore/grpc/native-aot.md +++ b/aspnetcore/grpc/native-aot.md @@ -30,7 +30,7 @@ AOT compilation happens when the app is published. Native AOT is enabled with th [!code-xml[](~/grpc/native-aot/Server.csproj?highlight=5)] - Native AOT can also be enabled by specifying the `-aot` option with the ASP.NET Core gRPC template: + Native AOT can also be enabled by specifying the `--aot` option with the ASP.NET Core gRPC template: ```dotnetcli dotnet new grpc --aot