private ITaskRunnerCommand GetCommand(string cwd, string arguments)
        {
            if (Platform.IsWindows)
            {
                ITaskRunnerCommand command = new TaskRunnerCommand(cwd, _executablePath, arguments);
                return(command);
            }
            else
            {
                var    monoRuntime = Runtime.SystemAssemblyService.DefaultRuntime as MonoTargetRuntime;
                string monoPath    = Path.Combine(monoRuntime.MonoRuntimeInfo.Prefix, "bin", "mono");

                arguments = "\"" + _executablePath + "\" " + arguments;
                ITaskRunnerCommand command = new TaskRunnerCommand(cwd, monoPath, arguments);
                return(command);
            }
        }
Пример #2
0
        private ITaskRunnerCommand GetCommand(string cwd, string arguments)
        {
            ITaskRunnerCommand command = new TaskRunnerCommand(cwd, _exe, arguments);

            return(command);
        }
Пример #3
0
        private ITaskRunnerCommand GetCommand(string cwd, string arguments)
        {
            ITaskRunnerCommand command = new TaskRunnerCommand(cwd, "cmd", arguments);

            return command;
        }