Setup project - Xenoage/RpcLib GitHub Wiki
- You need at least two projects: the server and the client. In our SimpleDemo example, these projects are named
DemoServer
andDemoClient
.- The server project must be an ASP.NET Core project, since the RPC handler on the server side is based on an ASP.NET Core Web API controller.
- The client project can be of any kind, e.g. a simple console application.
- An additional class library project is recommended, which is referenced by both the client and the server. This project is called
DemoShared
in the example code. - Add a reference to this library to your projects, e.g. by using the NuGet GUI or by calling
dotnet add package Xenoage.RpcLib
Proceed with defining the RPC methods.