Exemple #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())
                    );
            }
        }
Exemple #2
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()));
            }
        }
Exemple #3
0
 protected override string GenerateCommandLineCommands()
 {
     CommandLineBuilderExtension commandLineBuilder = new CommandLineBuilderExtension();
     AddCommandLineCommands(commandLineBuilder);
     return commandLineBuilder.ToString();
 }
 protected override string GenerateResponseFileCommands()
 {
     var commandLineBuilder = new CommandLineBuilderExtension();
     AddResponseFileCommands(commandLineBuilder);
     return commandLineBuilder.ToString();
 }