Пример #1
0
        public CompilerService GetCompilerService()
        {
            var cs = new CompilerService(Environment.SymbolsContext);

            cs.DirectiveResolver = DirectiveResolver;
            return(cs);
        }
Пример #2
0
        public CompilerService GetCompilerService()
        {
            var cs = new CompilerService(Environment.SymbolsContext);

            switch (System.Environment.OSVersion.Platform)
            {
            case PlatformID.Unix:
                cs.DefinePreprocessorValue("Linux");
                break;

            case PlatformID.MacOSX:
                cs.DefinePreprocessorValue("MacOS");
                break;

            case PlatformID.Win32NT:
                cs.DefinePreprocessorValue("Windows");
                break;
            }

            cs.ProduceExtraCode  = ProduceExtraCode;
            cs.DirectiveResolver = DirectiveResolver;
            return(cs);
        }
Пример #3
0
 public CompilerService GetCompilerService()
 {
     var cs = new CompilerService(Environment.SymbolsContext);
     cs.DirectiveResolver = DirectiveResolver;
     return cs;
 }