fix Build und Start Commands with new Temp-Folder "OBJ"

This commit is contained in:
Gregor Biswanger
2017-10-06 02:54:55 +02:00
parent 44138a81c9
commit 383e9cd3fa
6 changed files with 29 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ namespace ElectronNET.CLI
{
public class ProcessHelper
{
public static void CmdExecute(string command, string workingDirectoryPath, bool output = true)
public static void CmdExecute(string command, string workingDirectoryPath, bool output = true, bool waitForExit = true)
{
using (Process cmd = new Process())
{
@@ -21,7 +21,11 @@ namespace ElectronNET.CLI
cmd.StandardInput.WriteLine(command);
cmd.StandardInput.Flush();
cmd.StandardInput.Close();
cmd.WaitForExit();
if(waitForExit)
{
cmd.WaitForExit();
}
if (output)
{