コード例 #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);
        }
コード例 #2
0
 public PowerShellAction(string cmdLine)
 {
     _processAction = new ProcessAction("powershell.exe", cmdLine, true);
 }
コード例 #3
0
 public ShellAction(string cmdLine)
 {
     _processAction = new ProcessAction("cmd.exe", "/c " + cmdLine, true);
 }