private static int Compile(string Namespace, string SourceFileName, string ErrorFileName, string OutputRootFolder, bool ActivateVerification, Guid singledGuid, string singledName) { Compiler c = new Compiler(); c.Compile(SourceFileName); IErrorList ErrorList = c.ErrorList; if (ErrorList.IsEmpty) { TargetCSharp t = new TargetCSharp(c, Namespace); t.OutputRootFolder = OutputRootFolder; t.SingledGuid = singledGuid; t.SingledName = singledName; t.SourceFileName = SourceFileName; t.Translate(); ErrorList = t.ErrorList; } Debug.WriteLine(ErrorList.ToString()); if (!ErrorList.IsEmpty) { ReportErrors(ErrorFileName, ErrorList); return(-2); } return(0); }