Пример #1
0
        public void OutputMessageEvent(OutputMessageEventArgs e)
        {
            if (Silent)
                return;

            switch (e.Importance)
            {
                case MessageImportance.Low:
                    Console.ForegroundColor = ConsoleColor.DarkGray;
                    break;

                case MessageImportance.High:
                    Console.ForegroundColor = ConsoleColor.Cyan;
                    break;

                default:
                    Console.ForegroundColor = ConsoleColor.Gray;
                    break;
            }

            writer.WriteLine(e.Message);
            Console.ResetColor();
        }
Пример #2
0
 public void OutputMessageEvent(OutputMessageEventArgs args)
 {
     buildEngine.LogMessageEvent(new BuildMessageEventArgs(
         args.Message, args.HelpKeyword, taskName, (Microsoft.Build.Framework.MessageImportance)(int)args.Importance));
 }
Пример #3
0
 public void OutputMessageEvent(OutputMessageEventArgs e)
 {
 }
Пример #4
0
 void IOutputter.OutputMessageEvent(OutputMessageEventArgs e)
 {
     Trace.WriteLine(e.Message);
 }