You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 9, 2021. It is now read-only.
Running the appropriate command for your OS regenerates the following files in
179
-
the RouteGuide directory:
180
-
181
-
-`RouteGuide/RouteGuide.cs` contains all the protocol buffer code to populate,
152
+
service definition. This can be done by invoking the protocol buffer compiler `protoc` with
153
+
a special gRPC C# plugin from the command line, but starting from version
154
+
1.17 the `Grpc.Tools` NuGet package integrates with MSBuild to provide [automatic C# code generation](https://github.com/grpc/grpc/blob/master/src/csharp/BUILD-INTEGRATION.md)
155
+
from `.proto` files, which gives much better developer experience by running
156
+
the right commands for you as part of the build.
157
+
158
+
This example already has a dependency on `Grpc.Tools` NuGet package and the
159
+
`route_guide.proto` has already been added to the project, so the only thing
160
+
needed to generate the client and server code is to build the solution.
161
+
That can be done by running `dotnet build RouteGuide.sln` or building directly
162
+
in Visual Studio.
163
+
164
+
The build regenerates the following files
165
+
under the `RouteGuide/obj/Debug/TARGET_FRAMEWORK` directory:
166
+
167
+
-`RouteGuide.cs` contains all the protocol buffer code to populate,
182
168
serialize, and retrieve our request and response message types
183
-
-`RouteGuide/RouteGuideGrpc.cs` provides generated client and server classes,
169
+
-`RouteGuideGrpc.cs` provides generated client and server classes,
184
170
including:
185
171
- an abstract class `RouteGuide.RouteGuideBase` to inherit from when defining
0 commit comments