public void ResetConsoleLoggerState()
 {
     ErrorCount   = 0;
     WarningCount = 0;
     _buildEventManager.Reset();
     PrefixWidth = 0;
     LastDisplayedBuildEventContext = null;
     LastProjectFullKey             = new ProjectFullKey(-1, -1);
     HasBuildStarted = false;
     BuildStarted    = default(DateTime);
     PrefixWidth     = 0;
     ProjectPerformanceCounters.Clear();
     TargetPerformanceCounters.Clear();
     TaskPerformanceCounters.Clear();
 }
 public ProjectStartedEventMinimumFields(
     int projectKey,
     int entryPointKey,
     ProjectStartedEventArgs startedEvent,
     ProjectStartedEventMinimumFields parentProjectStartedEvent,
     bool requireTimeStamp)
 {
     TargetNames = startedEvent.TargetNames;
     ProjectFile = startedEvent.ProjectFile;
     ShowProjectFinishedEvent = false;
     ErrorInProject           = false;
     ProjectId = startedEvent.ProjectId;
     ProjectBuildEventContext  = startedEvent.BuildEventContext;
     ParentProjectStartedEvent = parentProjectStartedEvent;
     _projectFullKey           = new ProjectFullKey(projectKey, entryPointKey);
     if (requireTimeStamp)
     {
         TimeStamp = startedEvent.Timestamp;
     }
 }