Ejemplo n.º 1
0
        public CompilerResults CompileAssemblyFromFileBatch(CompilerParameters options, string[] fileNames)
        {
            if (options.BuildExe)
            {
                return(CompileAssemblyFromFileBatch_with_Build(options, fileNames)); // csc.exe does not support building self sufficient executables
            }
            else
            {
                switch (CSExecutor.options.compilerEngine)
                {
                case Directives.compiler_dotnet:
                    return(CompileAssemblyFromFileBatch_with_Build(options, fileNames));

                case Directives.compiler_csc:
                    return(CompileAssemblyFromFileBatch_with_Csc(options, fileNames));

                case Directives.compiler_roslyn:
                    return(RoslynService.CompileAssemblyFromFileBatch_with_roslyn(options, fileNames, false));

                case Directives.compiler_roslyn_inproc:
                    return(RoslynService.CompileAssemblyFromFileBatch_with_roslyn(options, fileNames, true));

                default:
                    return(CompileAssemblyFromFileBatch_with_Build(options, fileNames));
                }
            }
        }
Ejemplo n.º 2
0
 public CompilerResults CompileAssemblyFromFileBatch(CompilerParameters options, string[] fileNames)
 {
     // csc();
     // RoslynService.CompileAssemblyFromFileBatch_with_roslyn(options, fileNames);
     return(RoslynService.CompileAssemblyFromFileBatch_with_roslyn(options, fileNames));
     // return CompileAssemblyFromFileBatch_with_Csc(options, fileNames);
     // return CompileAssemblyFromFileBatch_with_Build(options, fileNames);
 }
Ejemplo n.º 3
0
        public CompilerResults CompileAssemblyFromFileBatch(CompilerParameters options, string[] fileNames)
        {
            switch (CSExecutor.options.compilerEngine)
            {
            case "csc":
                return(CompileAssemblyFromFileBatch_with_Csc(options, fileNames));

            case "roslyn":
                return(RoslynService.CompileAssemblyFromFileBatch_with_roslyn(options, fileNames));

            case "dotnet":
                return(CompileAssemblyFromFileBatch_with_Build(options, fileNames));

            default:
                return(CompileAssemblyFromFileBatch_with_Build(options, fileNames));
            }
        }
Ejemplo n.º 4
0
        public CompilerResults CompileAssemblyFromFileBatch(CompilerParameters options, string[] fileNames)
        {
            switch (CSExecutor.options.compilerEngine)
            {
            case Directives.compiler_roslyn:
                return(RoslynService.CompileAssemblyFromFileBatch_with_roslyn(options, fileNames));

            case Directives.compiler_dotnet:
                return(CompileAssemblyFromFileBatch_with_Build(options, fileNames));

            case Directives.compiler_csc:
                return(CompileAssemblyFromFileBatch_with_Csc(options, fileNames));

            default:
                // return RoslynService.CompileAssemblyFromFileBatch_with_roslyn(options, fileNames);
                // return CompileAssemblyFromFileBatch_with_Csc(options, fileNames);
                return(CompileAssemblyFromFileBatch_with_Build(options, fileNames));
            }
        }