To build the C# wrapper for the RGB Matrix C library you need to first have .NET SDK installed.
sudo apt install dotnet6
should work in most cases.
For some old distributions, read docs
Then, in the bindings/c#
directory type: dotnet build
To run the example applications in the c#\examples\EXAMPLE folder: sudo dotnet run