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); } }
private ITaskRunnerCommand GetCommand(string cwd, string arguments) { ITaskRunnerCommand command = new TaskRunnerCommand(cwd, _exe, arguments); return(command); }
private ITaskRunnerCommand GetCommand(string cwd, string arguments) { ITaskRunnerCommand command = new TaskRunnerCommand(cwd, "cmd", arguments); return command; }