aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/csharp/Helloworld/README.md
diff options
context:
space:
mode:
authorGravatar kkm <kkm@smartaction.com>2018-10-11 20:22:40 -0700
committerGravatar kkm <kkm@smartaction.com>2018-10-14 02:24:12 -0700
commit6fcb5b29e18268c8948d5bd99c14fca13f9d7b67 (patch)
treea33e6b46ab61a0d8434751d13ecd137e711f2e0c /examples/csharp/Helloworld/README.md
parentd0cb61eada9d270b9043ec866b55c88617d362be (diff)
Redo C# examples to use new Grpc.Tools
* No pre-compilation of proto files required; * Tested under Windows and Linux dotnet and mono; * But not tested on Mac/mono; * README updated.
Diffstat (limited to 'examples/csharp/Helloworld/README.md')
-rw-r--r--examples/csharp/Helloworld/README.md32
1 files changed, 11 insertions, 21 deletions
diff --git a/examples/csharp/Helloworld/README.md b/examples/csharp/Helloworld/README.md
index 4871132426..e4771ee91a 100644
--- a/examples/csharp/Helloworld/README.md
+++ b/examples/csharp/Helloworld/README.md
@@ -3,41 +3,31 @@ gRPC in 3 minutes (C#)
BACKGROUND
-------------
-For this sample, we've already generated the server and client stubs from [helloworld.proto][].
-
-Example projects in this directory depend on the [Grpc](https://www.nuget.org/packages/Grpc/)
-and [Google.Protobuf](https://www.nuget.org/packages/Google.Protobuf/) NuGet packages
-which have been already added to the project for you.
+This is a version of the helloworld example using the dotnet SDK
+tools to compile [helloworld.proto][] in a common library, build the server
+and the client, and run them.
PREREQUISITES
-------------
- The [.NET Core SDK 2.1+](https://www.microsoft.com/net/core)
-You can also build the example directly using Visual Studio 2017, but it's not a requirement.
-
-BUILD
--------
-
-From the `examples/csharp/Helloworld` directory:
+You can also build the solution `Greeter.sln` using Visual Studio 2017,
+but it's not a requirement.
-- `dotnet build Greeter.sln`
-
-Try it!
--------
+BUILD AND RUN
+-------------
-- Run the server
+- Build and run the server
```
- > cd GreeterServer
- > dotnet run -f netcoreapp2.1
+ > dotnet run -p GreeterServer
```
-- Run the client
+- Build and run the client
```
- > cd GreeterClient
- > dotnet run -f netcoreapp2.1
+ > dotnet run -p GreeterClient
```
Tutorial