mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-31 04:54:06 +00:00
fix Build und Start Commands with new Temp-Folder "OBJ"
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user