private void eventSource_MessageRaised(object sender, Microsoft.Build.Framework.BuildMessageEventArgs e) { if (!_showMessages || e.Importance < Microsoft.Build.Framework.MessageImportance.High) { return; } OutputString(EventArgsFormatter.FormatEventMessage(e, false, true)); }
/// <summary> /// Handles the MessageRaised event of the eventSource control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Microsoft.Build.Framework.BuildMessageEventArgs" /> instance containing the event data.</param> private void eventSource_MessageRaised(object sender, Microsoft.Build.Framework.BuildMessageEventArgs e) { if (!e.SenderName.ToLower().Equals(@"message") || string.IsNullOrEmpty(e.Message)) { return; } lock (this.lockObject) { var solutions = e.Message.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); itemsBuilt.AddRange(solutions); } }
public void MessageHandler(object sender, Microsoft.Build.Framework.BuildMessageEventArgs e) { }
void eventSource_MessageRaised(object sender, Microsoft.Build.Framework.BuildMessageEventArgs e) { //log.AppendFormat("[{0}] {1}: {2} \r\n", e.Timestamp, e.SenderName, e.Message); //throw new NotImplementedException(); }
void eventSource_MessageRaised(object sender, Microsoft.Build.Framework.BuildMessageEventArgs e) { Console.WriteLine(e.Message); }