Ejemplo n.º 1
0
 public CilGenerator(Disk disk, IBuildData data, IEssentials essentials,
                     CilBackend backend, CilLinker linker, SourcePackage package,
                     string outputDir)
     : base(disk)
 {
     _data       = data;
     _essentials = essentials;
     _backend    = backend;
     _package    = package;
     _linker     = linker;
     _outputDir  = outputDir;
     _assembly   = _linker.Universe.DefineDynamicAssembly(
         new AssemblyName(package.Name) /*{Version = new Version(package.Version)}*/,
         AssemblyBuilderAccess.Save,
         outputDir);
     _module = _assembly.DefineDynamicModule(
         package.Name,
         package.Name + ".dll",
         true);
 }
Ejemplo n.º 2
0
 public CilTransform(CilBackend backend)
     : base(backend)
 {
 }