Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public PowerShellAction(string cmdLine)
 {
     _processAction = new ProcessAction("powershell.exe", cmdLine, true);
 }
Ejemplo n.º 3
0
 public ShellAction(string cmdLine)
 {
     _processAction = new ProcessAction("cmd.exe", "/c " + cmdLine, true);
 }