public void LoadDefaultReferences() { //mscorlib _assemblyReferences.Add( LoadAssembly("mscorlib", true) ); //System _assemblyReferences.Add( LoadAssembly("System", true) ); //boo.lang.dll _booAssembly = typeof(Boo.Lang.Builtins).Assembly; _assemblyReferences.Add(_booAssembly); //boo.lang.extensions.dll Assembly extensionsAssembly = null; extensionsAssembly = LoadAssembly("Boo.Lang.Extensions", false); if (extensionsAssembly != null) { _assemblyReferences.Add(extensionsAssembly); } if (TraceSwitch.TraceInfo) { Trace.WriteLine("BOO LANG DLL: " + _booAssembly.Location); Trace.WriteLine("BOO COMPILER EXTENSIONS DLL: " + (extensionsAssembly != null ? extensionsAssembly.Location : "NOT FOUND!")); } }
public CompilerParameters() { _pipeline = new CompilerPipeline(); _input = new CompilerInputCollection(); _assemblyReferences = new AssemblyCollection(); _assemblyReferences.Add(GetType().Assembly); _assemblyReferences.Add(typeof(string).Assembly); // corlib _assemblyReferences.Add(System.Reflection.Assembly.LoadWithPartialName("System")); // System _maxAttributeSteps = 2; _outputAssembly = string.Empty; _outputType = CompilerOutputType.ConsoleApplication; }
public CompilerParameters() { _pipeline = null; _input = new CompilerInputCollection(); _resources = new CompilerResourceCollection(); _assemblyReferences = new AssemblyCollection(); _assemblyReferences.Add(typeof(Boo.Lang.Builtins).Assembly); _assemblyReferences.Add(GetType().Assembly); _assemblyReferences.Add(typeof(object).Assembly); // corlib _assemblyReferences.Add(System.Reflection.Assembly.LoadWithPartialName("System")); // System _maxAttributeSteps = 2; _outputAssembly = string.Empty; _outputType = CompilerOutputType.ConsoleApplication; _outputWriter = System.Console.Out; _debug = true; _generateInMemory = true; }
public void LoadDefaultReferences() { //mscorlib _assemblyReferences.Add( LoadAssembly("mscorlib", true) ); //System _assemblyReferences.Add( LoadAssembly("System", true) ); //boo.lang.dll _booAssembly = typeof(Boo.Lang.Builtins).Assembly; _assemblyReferences.Add(_booAssembly); //boo.lang.compiler.dll _assemblyReferences.Add(GetType().Assembly); if (TraceSwitch.TraceInfo) { Trace.WriteLine("BOO LANG DLL: " + _booAssembly.Location); Trace.WriteLine("BOO COMPILER DLL: " + GetType().Assembly.Location); } }