From d74c7406720320a4b9119baf2b72304b61740bcd Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Tue, 18 Jun 2019 11:13:59 -0700 Subject: [PATCH] Update basics.md (#12922) * Update basics.md * Update basics.md * Update basics.md * Update basics.md --- aspnetcore/grpc/basics.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aspnetcore/grpc/basics.md b/aspnetcore/grpc/basics.md index 4169c361d5..7fd6ce1788 100644 --- a/aspnetcore/grpc/basics.md +++ b/aspnetcore/grpc/basics.md @@ -32,7 +32,7 @@ For example, consider the *greet.proto* file used in [Get started with gRPC serv The *.proto* file is included in a project by adding it to the `` item group: -[!code-xml[](~/tutorials//grpc/grpc-start/sample/GrpcGreeter/GrpcGreeter.csproj?highlight=2&range=7-11)] +[!code-xml[](~/tutorials/grpc/grpc-start/sample/GrpcGreeter/GrpcGreeter.csproj?highlight=2&range=7-9)] ## C# Tooling support for .proto files @@ -44,7 +44,7 @@ The tooling package [Grpc.Tools](https://www.nuget.org/packages/Grpc.Tools/) is This package is required by both the server and client projects. `Grpc.Tools` can be added by using the Package Manager in Visual Studio or adding a `` to the project file: -[!code-xml[](~/tutorials//grpc/grpc-start/sample/GrpcGreeter/GrpcGreeter.csproj?highlight=1&range=17)] +[!code-xml[](~/tutorials/grpc/grpc-start/sample/GrpcGreeter/GrpcGreeter.csproj?highlight=1&range=15)] The tooling package isn't required at runtime, so the dependency is marked with `PrivateAssets="All"`. @@ -62,7 +62,7 @@ For client-side assets, a concrete client type is generated. The gRPC calls in t By default, server and client assets are generated for each *.proto* file included in the `` item group. To ensure only the server assets are generated in a server project, the `GrpcServices` attribute is set to `Server`. -[!code-xml[](~/tutorials//grpc/grpc-start/sample/GrpcGreeter/GrpcGreeter.csproj?highlight=2&range=7-11)] +[!code-xml[](~/tutorials//grpc/grpc-start/sample/GrpcGreeter/GrpcGreeter.csproj?highlight=2&range=7-9)] Similarly, the attribute is set to `Client` in client projects.