コード例 #1
0
        internal void InitializeHostObjectSupportForNewSwitches(
            ITaskHost hostObject,
            ref string param
            )
        {
            var compilerOptionsHostObject = hostObject as ICompilerOptionsHostObject;

            if (compilerOptionsHostObject != null)
            {
                var commandLineBuilder = new CommandLineBuilderExtension();
                AddResponseFileCommandsForSwitchesSinceInitialReleaseThatAreNeededByTheHost(
                    commandLineBuilder
                    );
                param = "CompilerOptions";
                CheckHostObjectSupport(
                    param,
                    compilerOptionsHostObject.SetCompilerOptions(commandLineBuilder.ToString())
                    );
            }
        }
コード例 #2
0
ファイル: ManagedCompiler.cs プロジェクト: Eyas/roslyn
        internal void InitializeHostObjectSupportForNewSwitches(ITaskHost hostObject, ref string param)
        {
            var compilerOptionsHostObject = hostObject as ICompilerOptionsHostObject;

            if (compilerOptionsHostObject != null)
            {
                var commandLineBuilder = new CommandLineBuilderExtension();
                AddResponseFileCommandsForSwitchesSinceInitialReleaseThatAreNeededByTheHost(commandLineBuilder);
                param = "CompilerOptions";
                CheckHostObjectSupport(param, compilerOptionsHostObject.SetCompilerOptions(commandLineBuilder.ToString()));
            }
        }
コード例 #3
0
ファイル: ManagedCompiler.cs プロジェクト: Eyas/roslyn
 protected override string GenerateCommandLineCommands()
 {
     CommandLineBuilderExtension commandLineBuilder = new CommandLineBuilderExtension();
     AddCommandLineCommands(commandLineBuilder);
     return commandLineBuilder.ToString();
 }
コード例 #4
0
 protected override string GenerateResponseFileCommands()
 {
     var commandLineBuilder = new CommandLineBuilderExtension();
     AddResponseFileCommands(commandLineBuilder);
     return commandLineBuilder.ToString();
 }