示例#1
0
        public override void Run()
        {
            if (_context.Errors.Count > 0)
            {
                return;
            }

            AssemblyBuilder builder = EmitAssemblyStep.GetAssemblyBuilder(_context);

            builder.Save(Path.GetFileName(CompilerParameters.OutputAssembly));
        }
示例#2
0
        public override void Run()
        {
            if (Errors.Count > 0 || CompilerOutputType.Library == CompilerParameters.OutputType)
            {
                return;
            }

            System.Reflection.MethodInfo method = EmitAssemblyStep.GetEntryPoint(CompileUnit);
            try
            {
                method.Invoke(null, null);
            }
            catch (System.Reflection.TargetInvocationException x)
            {
                throw x.InnerException;
            }
        }