To compile, use csc:
csc program.cs
The compiler will create “program.exe”, which you can run using:
mono program.exe
Full information about .NET and Mono can be found at the link .NET, link Mono
To install the .NET SDK 5.0, run the command in a terminal:
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-5.0
And to install Mono commands:
sudo apt install mono-devel
Installing the JetBrains Rider development environment on Ubuntu
To do this, run the commands:
sudo apt update
sudo apt install snapd
sudo snap install rider --classic