Compilation and Execution in C# — a practical guide to C# compilation execution with clear examples you can reuse in real projects.
C# Tutorial Series (10/121). Prefer one article? Read the complete C# tutorial.
Short description
`dotnet build` compiles; `dotnet run` builds and executes.
CLI
dotnet build
dotnet run
dotnet publish -c Release