|
Corelink C# Client Library
|
These documents are a work in progress, and we are trying to improve upon them on a daily basis. However, given our capacity and workload, there are bound to be things which get missed or checked in which should not have been checked in. If you find mistakes or documents wanting information, and you would like to help, you can do so in two ways
- Submit corrections. When you update anything and submit a PR, we will review it and if all looks good, it will be added. This is the fastest way that one can expect changes to be in.
- Submit tickets. If you are not sure how to make updates, or if you are short on time, please raise an issue in the repo, with details and what you think needs to be the expected text. We will try and update the literature to reflect any changes that we feel are merited. Note that this route will take longer than the first approach and there are no guarantees on the timeline.
The Corelink C# client has two dependencies:
System.Net.WebSockets, System.Net.Sockets) is part of the .NET Base Class Library and requires no separate installation.csharp.csproj and installed automatically by dotnet restore.There are no native library dependencies, no header files to locate, and no linker paths to configure. The .NET toolchain handles everything.
You will need the .NET 8.0 SDK (or later) installed on your machine. It is cross-platform and runs on Windows, macOS, and Linux.
Windows
Or download the installer from the official site: https://dotnet.microsoft.com/download
macOS
Linux
Install via your distribution's package manager. For example, on Ubuntu/Debian:
For other distributions, refer to: https://learn.microsoft.com/en-us/dotnet/core/install/linux
This should print 8.x.x or later.
The C# client can be built and run entirely from the command line. If you prefer an IDE:
Clone the corelink-client repository:
The C# client is located in the csharp/ subdirectory:
Navigate to the project directory and restore NuGet packages:
dotnet restore reads csharp.csproj and downloads Newtonsoft.Json automatically. No manual steps are required.
This compiles the project and reports any errors or warnings. Fix all warnings before submitting a merge request.
See the setup examples document for the full list of run modes and CLI options.
dotnet restore. There are no native libraries, no CMake, and no platform-specific header or library paths to configure.