private void Process_OnOutputReceived(object sender, ProcessRunnerOutputEventArgs e) { if (string.IsNullOrWhiteSpace(e.Data)) return; if (e.IsError) { this.errorTextLines.Add(e.Data); } else { var level = MSBuildHelper.GetOutputLevel(e.Data); switch(level) { case MSBuildOutputLevel.Normal: this.outputTextLines.Add(e.Data); break; case MSBuildOutputLevel.Error: this.errorTextLines.Add(e.Data); break; case MSBuildOutputLevel.Warning: this.warningTextLines.Add(e.Data); break; } } }
private void NotifyProcessOutputReceived(ProcessRunnerOutputEventArgs e) { this.CheckIsDisposed(); var handler = this.OutputRecevied; if(handler == null) return; handler(this, e); }