using System; using System.IO; using System.Diagnostics; class MainClass { [STAThread] static void Main(string[] args) { Trace.WriteLine("My Trace String"); Trace.Flush(); } }