private void EventSourceOnErrorRaised(object sender, BuildErrorEventArgs e) { var errorRecord = new ErrorRecord( new Exception(FormatErrorEvent(e)), $"MSBuildError({e.Code})", ErrorCategory.NotSpecified, e); PSEventSink?.WriteError(errorRecord); }
protected override void Write(string message) { PSEventSink?.WriteHost(message); }
private void EventSourceOnWarningRaised(object sender, BuildWarningEventArgs e) { var message = FormatWarningEvent(e); PSEventSink?.WriteWarning(message); }
protected override void Write(string message) { PSEventSink?.WriteVerbose(message); }