blob: 438bdff152fcb94f20604eab303b992758e7ece5 [file] [log] [blame] [view]
Jan Tattermusch226af652015-04-03 16:39:51 -07001gRPC in 3 minutes (C#)
2========================
3
4BACKGROUND
5-------------
6For this sample, we've already generated the server and client stubs from `helloworld.proto`.
7Example projects depend on NuGet packages `Grpc` and `Google.ProtocolBuffers` which have been already added to the project for you.
8
9PREREQUISITES
10-------------
11Windows
12- .NET 4.5+
13- VS 2013 (with NuGet plugin installed)
14
15Linux (Mono)
16- Mono installed
17- Monodevelop 5.9 with NuGet Add-in installed (older versions might work)
18
19MacOS (Mono)
20- TODO: MacOS support in progress
21- Xamarin Studio (with NuGet plugin installed)
22
23BUILD
24-------
25
26Windows
27- Clone this repository.
28- Open solution `Greeter.sln` with Visual Studio
29- Build the solution (this will automatically download NuGet dependencies)
30
31Linux (Mono)
32- Clone this repository.
33- Install gRPC C Core using instructions in https://github.com/grpc/homebrew-grpc
34- TODO: explain using LD_LIBRARY_PATH or installation to /usr/local
35- Open solution `Greeter.sln` in MonoDevelop (you need to manually restore dependencies by using `mono nuget.exe restore` if you don't have NuGet add-in)
36- Build the solution.
37
38Try it!
39-------
40
41- Run the server
42```
43> cd GreeterServer/bin/Debug
44> GreeterServer.exe
45```
46
47- Run the client
48```
49> cd GreeterClient/bin/Debug
50> GreeterClient.exe
51```
52
53You can also run the server and client directly from Visual Studio.
54
55On Linux or Mac, use `mono GreeterServer.exe` and `mono GreeterClient.exe` to run the server and client.
56
57Tutorial
58--------
59
60You can find a more detailed tutorial in [gRPC Basics: C#](https://github.com/grpc/grpc-common/blob/master/csharp/route_guide/README.md)