|
1 | | -# C# bindings for RGB Matrix library |
| 1 | +C# bindings for RGB Matrix library |
| 2 | +====================================== |
2 | 3 |
|
3 | | -## Usage: |
4 | | -### Building on the Pi |
5 | | -- Install the .Net SDK |
6 | | - `sudo apt install dotnet8` should work in most cases. |
7 | | - For some old distributions, read [docs](https://learn.microsoft.com/dotnet/core/install/linux) |
8 | | -- Edit `bindings/c#/MatrixOptions.cs` and put in the options for your matrix |
9 | | -- Change to an example folder |
10 | | - eg `cd bindings/c#/examples/BoxesBoxesBoxes` |
11 | | -- Build: `dotnet build` |
12 | | -- Run: `sudo dotnet run` |
| 4 | +Building |
| 5 | +-------- |
13 | 6 |
|
14 | | -### Build on a Windows PC, run on the Pi |
15 | | -- Only needs .NET runtime on Pi, do not need SDK |
16 | | - Or you could modify the `publish current C#` task and add `--self-contained` to deploy with no need for dotnet to be installed on the Pi at all. |
17 | | -- See README in .vscode folder |
18 | | - (Set some env variables, install a VSCode extension) |
19 | | -- Edit `bindings/c#/MatrixOptions.cs` and put in the options for your matrix |
20 | | -- Make one of the `Program.cs` example files the active file in VSCode |
21 | | -- Hit F5 |
22 | | - The example will build on the PC, rsync to the Pi, launch and debug |
| 7 | +To build the C# wrapper for the RGB Matrix C library you need to first have __.NET SDK__ installed. |
| 8 | + |
| 9 | +### Install .NET SDK |
| 10 | + |
| 11 | +`sudo apt install dotnet8` should work in most cases. |
| 12 | +For some old distributions, read [docs](https://learn.microsoft.com/dotnet/core/install/linux) |
| 13 | +Then, in the `bindings/c#` directory type: `dotnet build` |
| 14 | +To run the example applications in the c#\examples\EXAMPLE folder: `sudo dotnet run` |
0 commit comments