how to compile and run c# code in visual studio command line code example Example: how to make a C# application visual studio code mkdir MyApp; cd MyApp; dotnet new console