How to compile (build) a CS file into a useful program. CD your way to wherever your cs file is. Or where you want it to build. Open new terminal (Terminal-> New Terminal) and type dotnet new console. dotnet run