CSharp - Introduction Compilation

Introduction

The name of the C# compiler is csc.exe.

You can run csc manually from the command line to compile manually.

The following command compiles the Main.cs file

csc Main.cs

This produces an application named Main.exe.

To produce a library (.dll), do the following:

csc /target:library Main.cs