public MSBuildAction(string path, bool clean, Environment environment) { if (environment == null || string.IsNullOrEmpty(environment.MSBuildPath)) { throw new ApplicationException("Failed to locate the MSBuild executable"); } string msBuildVerb = clean ? "clean" : "build"; _processAction = new ProcessAction(environment.MSBuildPath, "\"" + path + "\" /m /t:" + msBuildVerb, true); }
public PowerShellAction(string cmdLine) { _processAction = new ProcessAction("powershell.exe", cmdLine, true); }
public ShellAction(string cmdLine) { _processAction = new ProcessAction("cmd.exe", "/c " + cmdLine, true); }