|
4 тижнів тому | |
---|---|---|
.. | ||
Greeter | 4 тижнів тому | |
GreeterClient | 4 тижнів тому | |
GreeterServer | 4 тижнів тому | |
Greeter.sln | 4 тижнів тому | |
README.md | 4 тижнів тому |
This is a different version of the helloworld example, using the "classic" .csproj files, the only format supported by VS2013 (and older versions of mono). You can still use gRPC with the classic .csproj files, but using the new-style .csproj projects (supported by VS2017 v15.3 and above, and dotnet SDK) is recommended.
Example projects depend on the Grpc, Grpc.Tools and Google.Protobuf NuGet packages which have been already added to the project for you.
Greeter.sln
with Visual Studio, Monodevelop (on Linux) or Xamarin Studio (on Mac OS X)The NuGet add-in available for Xamarin Studio and Monodevelop IDEs is too old to download all of the NuGet dependencies of gRPC.
Using these IDEs, a workaround is as follows:
nuget update -self
.nuget restore
.Run the server
> cd GreeterServer/bin/Debug
> GreeterServer.exe
Run the client
> cd GreeterClient/bin/Debug
> GreeterClient.exe
You can also run the server and client directly from the IDE.
On Linux or Mac, use mono GreeterServer.exe
and mono GreeterClient.exe
to run the server and client.
You can find a more detailed tutorial in gRPC Basics: C#