예제 #1
0
        private void OnTaskSetup(object sender, BeforeTaskSetupEventArgs e)
        {
            var b = e.TaskSetupContext.BuildSystem();

            if (b.IsRunningOnMyGet)
            {
                var messageText = $"Starting Task {e.TaskSetupContext.Task.Name}{(string.IsNullOrWhiteSpace(e.TaskSetupContext.Task.Description) ? string.Empty : $" ({e.TaskSetupContext.Task.Description})")}";
                Console.WriteLine("##myget[message text='{0}' status='NORMAL']", messageText);
                _stopwatch = _stopwatch.EnsureStarted();
            }