Merge pull request #208 from jtattermusch/csharp_readme

Update C# readme
pull/3109/head
Tim Emiola 10 years ago
commit 0b634e3d87
  1. 44
      csharp/README.md

@ -8,47 +8,59 @@ Example projects depend on NuGet packages `Grpc` and `Google.ProtocolBuffers` wh
PREREQUISITES
-------------
Windows
**Windows**
- .NET 4.5+
- VS 2013 (with NuGet plugin installed)
Linux (Mono)
- Mono installed
**Linux (Mono)**
- Mono
- Monodevelop 5.9 with NuGet Add-in installed (older versions might work)
MacOS (Mono)
- TODO: MacOS support in progress
**MacOS (Mono)**
- Xamarin Studio (with NuGet plugin installed)
BUILD
-------
Windows
**Windows**
- Clone this repository.
- Open solution `Greeter.sln` with Visual Studio
- Build the solution (this will automatically download NuGet dependencies)
Linux (Mono)
**Linux (Mono)**
- Clone this repository.
- Install gRPC C Core using instructions in https://github.com/grpc/homebrew-grpc
- TODO: explain using LD_LIBRARY_PATH or installation to /usr/local
- gRPC C# depends on native shared library `libgrpc_csharp_ext.so`. To make it visible
to Mono runtime, follow instructions in [Using gRPC C# on Linux](https://github.com/grpc/grpc/tree/master/src/csharp#usage-linux-mono)
- 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)
- Build the solution.
**MacOS (Mono)**
- See [Using gRPC C# on MacOS](https://github.com/grpc/grpc/tree/master/src/csharp#usage-macos-mono) for more info
on MacOS support.
Try it!
-------
- Run the server
```
> cd GreeterServer/bin/Debug
> GreeterServer.exe
```
```
> cd GreeterServer/bin/Debug
> GreeterServer.exe
```
- Run the client
```
> cd GreeterClient/bin/Debug
> GreeterClient.exe
```
```
> cd GreeterClient/bin/Debug
> GreeterClient.exe
```
You can also run the server and client directly from Visual Studio.

Loading…
Cancel
Save