{ if (line.Data != null) Log.LogMessageFromText(line.Data, MessageImportance.High); }; p.ErrorDataReceived += (object sender, DataReceivedEventArgs line) => { if (line.Data != null) Log.LogMessageFromText(line.Data, MessageImportance.High); }; p.Start(); p.BeginOutputReadLine(); p.BeginErrorReadLine(); while (!p.WaitForExit(100)) { if (m_Cancel) { // Keep sending CTRL+C events - sometimes it takes more than one.. GenerateConsoleCtrlEvent(ConsoleCtrlEvent.CTRL_C, 0); } } p.WaitForExit(); return m_Cancel ? false : p.ExitCode == 0; } } catch(Exception e) { Console.WriteLine(e); return false; } } } ]]> GetNativeTargetPath;%(Targets) obj lib dll xdc $(TargetPath) Project PropertySheet