In the category of “So I don’t forget again”, here is how to compile a simple code.cs file to a console executable:
csc /t:exe NetDir.cs
Very simple, very easy. To make it a Windows exe (console app with no console window, very useful for scheduled or batch processing), change the target (/t == /target) to winexe.
Remember Me
b, blockquote@cite, i, strike, strong, u
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.