diff --git a/aspnetcore/grpc/native-aot.md b/aspnetcore/grpc/native-aot.md index b2004ad12e0e..d9a09f00f5b3 100644 --- a/aspnetcore/grpc/native-aot.md +++ b/aspnetcore/grpc/native-aot.md @@ -30,10 +30,10 @@ 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 + dotnet new grpc --aot ``` 2. Publish the app for a specific [runtime identifier (RID)](/dotnet/core/rid-catalog) using `dotnet publish -r `.