static public void Initialize() { if (isInitialized) { return; } isInitialized = true; // Create Evaluator evaluatorDefaultReportPrinter = new Mono.CSharp.ConsoleReportPrinter(); var settings = new Mono.CSharp.CompilerSettings(); // settings.AssemblyReferences = new List<string> { // Assembly.GetExecutingAssembly().FullName // }; // settings.LoadDefaultReferences = false; evaluatorCtx = new Mono.CSharp.CompilerContext( settings, evaluatorDefaultReportPrinter); evaluatorInstance = new Mono.CSharp.Evaluator(evaluatorCtx); ReferenceAllAssemblies(); SetUsings(); Log.Initialize(); Inspector.Initialize(); }
static public void Initialize() { if (isInitialized) { return; } isInitialized = true; ReferenceAllAssemblies(); SetUsings(); Log.Initialize(); Inspector.Initialize(); }
static public void Initialize() { if (isInitialized) { return; } isInitialized = true; Mono.Initialize(); SetUsings(); Log.Initialize(); Inspector.Initialize(); Evaluate("null;"); }