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 PREREQUISITES
------------- -------------
Windows **Windows**
- .NET 4.5+ - .NET 4.5+
- VS 2013 (with NuGet plugin installed) - VS 2013 (with NuGet plugin installed)
Linux (Mono) **Linux (Mono)**
- Mono installed - Mono
- Monodevelop 5.9 with NuGet Add-in installed (older versions might work) - Monodevelop 5.9 with NuGet Add-in installed (older versions might work)
MacOS (Mono) **MacOS (Mono)**
- TODO: MacOS support in progress
- Xamarin Studio (with NuGet plugin installed) - Xamarin Studio (with NuGet plugin installed)
BUILD BUILD
------- -------
Windows **Windows**
- Clone this repository. - Clone this repository.
- Open solution `Greeter.sln` with Visual Studio - Open solution `Greeter.sln` with Visual Studio
- Build the solution (this will automatically download NuGet dependencies) - Build the solution (this will automatically download NuGet dependencies)
Linux (Mono) **Linux (Mono)**
- Clone this repository. - Clone this repository.
- Install gRPC C Core using instructions in https://github.com/grpc/homebrew-grpc - 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) - 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. - 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! Try it!
------- -------
- Run the server - Run the server
```
> cd GreeterServer/bin/Debug ```
> GreeterServer.exe > cd GreeterServer/bin/Debug
``` > GreeterServer.exe
```
- Run the client - 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. You can also run the server and client directly from Visual Studio.

Loading…
Cancel
Save