| Refresh | Home EGTry.com

build C# program with command-line compiler csc.exe


simple way, after set environment with vcvarall.bat

csc Hello.cs

or
csc /t:exe /out:Hello.exe /nostdlib- Hello.cs


Output

Hello.exe