示例#1
0
 // DO not call context.AssmeblyGen.SaveAssembly() directly.
 internal void SaveAssembly()
 {
     if (_dynInitHelper != null)
     {
         _dynInitHelper.FinalizeType();
     }
     _assyGen.SaveAssembly();
 }
示例#2
0
        // DO not call context.AssmeblyGen.SaveAssembly() directly.
        internal void SaveAssembly()
        {
            if (_dynInitHelper != null)
            {
                _dynInitHelper.FinalizeType();
            }

#if NET461
            _assyGen.SaveAssembly();
#else
            Console.WriteLine("AOT-compilation not available");
            //var assembly = AssemblyBuilder;
            //var generator = new Lokad.ILPack.AssemblyGenerator();
            //generator.GenerateAssembly(assembly,Path);
#endif
        }