Skip to content

Commit 85856f2

Browse files
authored
Correct dotnet new command for creating an aot grpc app (#35153)
1 parent 48463b2 commit 85856f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aspnetcore/grpc/native-aot.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ AOT compilation happens when the app is published. Native AOT is enabled with th
3030

3131
[!code-xml[](~/grpc/native-aot/Server.csproj?highlight=5)]
3232

33-
Native AOT can also be enabled by specifying the `-aot` option with the ASP.NET Core gRPC template:
33+
Native AOT can also be enabled by specifying the `--aot` option with the ASP.NET Core gRPC template:
3434

3535
```dotnetcli
36-
dotnet new grpc -aot
36+
dotnet new grpc --aot
3737
```
3838
3939
2. Publish the app for a specific [runtime identifier (RID)](/dotnet/core/rid-catalog) using `dotnet publish -r <RID>`.

0 commit comments

Comments
 (0)