var process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "cmd.exe",
RedirectStandardInput = true,
UseShellExecute = false
}
};
process.Start();
using (StreamWriter pWriter = process.StandardInput)
{
if (pWriter.BaseStream.CanWrite)
{
foreach (var line in project.buildCommand.Split('\n'))
pWriter.WriteLine(line);
}
}
Console.WriteLine("done");