示例#1
0
        RhinoExecutionCommand CreateRhinoExecutionCommand(ConfigurationSelector configSel, DotNetProjectConfiguration configuration, ProjectRunConfiguration runConfiguration)
        {
            FilePath outputFileName;
            var      rhinoRunConfiguration = runConfiguration as RhinoRunConfiguration;

            if (rhinoRunConfiguration?.StartAction == AssemblyRunConfiguration.StartActions.Program)
            {
                outputFileName = rhinoRunConfiguration.StartProgram;
            }
            else
            {
                outputFileName = Project.GetOutputFileName(configuration.Selector);
            }

            // find the rhino to use!
            var cmd = new RhinoExecutionCommand(
                Project,
                RhinoPluginType.Value,
                string.IsNullOrEmpty(rhinoRunConfiguration?.StartWorkingDirectory) ? Project.BaseDirectory : rhinoRunConfiguration.StartWorkingDirectory,
                outputFileName,
                rhinoRunConfiguration?.StartArguments,
                rhinoRunConfiguration?.EnvironmentVariables
                );

            cmd.ExternalConsole    = rhinoRunConfiguration?.ExternalConsole ?? false;
            cmd.PauseConsoleOutput = rhinoRunConfiguration?.PauseConsoleOutput ?? false;
            return(cmd);
        }
 public RhinoDebuggerStartInfo(RhinoExecutionCommand cmd)
     : base(new Mono.Debugging.Soft.SoftDebuggerListenArgs("Rhino", System.Net.IPAddress.Loopback, 0))
 {
     Command      = cmd.Command;
     Arguments    = cmd.Arguments;
     RhinoVersion = cmd.RhinoVersion;
     foreach (var env in cmd.EnvironmentVariables)
     {
         EnvironmentVariables.Add(env.Key, env.Value);
     }
     ApplicationPath  = cmd.ApplicationPath;
     ExecutablePath   = cmd.ExecutablePath;
     WorkingDirectory = cmd.WorkingDirectory;
 }