295 writes to BuildEventContext
Microsoft.Build (70)
BackEnd\BuildManager\BuildManager.cs (1)
1393submissionStartedEvent.BuildEventContext = buildEventContext;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
292BuildEventContext = new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId)
BackEnd\Components\Logging\LoggingContext.cs (1)
157BuildEventContext = _eventContext
BackEnd\Components\Logging\LoggingService.cs (5)
1010warning.BuildEventContext = buildEventContext; 1581BuildEventContext = warningEvent.BuildEventContext, 1603BuildEventContext = warningEvent.BuildEventContext, 1626BuildEventContext = warningEvent.BuildEventContext, 1647BuildEventContext = warningEvent.BuildEventContext,
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (13)
174buildEvent.BuildEventContext = buildEventContext; 326buildEvent.BuildEventContext = buildEventContext; 433BuildEventContext = projectEvaluationEventContext, 463BuildEventContext = projectEvaluationEventContext, 594buildEvent.BuildEventContext = projectBuildEventContext; 615buildEvent.BuildEventContext = projectBuildEventContext; 658buildEvent.BuildEventContext = targetBuildEventContext; 690buildEvent.BuildEventContext = targetBuildEventContext; 716buildEvent.BuildEventContext = taskBuildEventContext; 753buildEvent.BuildEventContext = taskBuildEventContext; 784buildEvent.BuildEventContext = taskBuildEventContext; 805BuildEventContext = buildEventContext, 826responseFileUsedEvent.BuildEventContext = buildEventContext;
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
107BuildEventContext = projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
168buildArgs.BuildEventContext = _loggingContext.BuildEventContext;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
307args.BuildEventContext = buildEventContext;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
561BuildEventContext = _projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
388BuildEventContext = projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
239BuildEventContext = _buildEventContext,
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
456warningEvent.BuildEventContext = _taskLoggingContext.BuildEventContext; 464e.BuildEventContext = _taskLoggingContext.BuildEventContext; 508e.BuildEventContext = _taskLoggingContext.BuildEventContext; 549e.BuildEventContext = _taskLoggingContext.BuildEventContext; 590e.BuildEventContext = _taskLoggingContext.BuildEventContext;
BackEnd\Shared\EventsCreatorHelper.cs (3)
28buildEvent.BuildEventContext = buildEventContext; 59buildEvent.BuildEventContext = buildEventContext; 90buildEvent.BuildEventContext = buildEventContext;
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
168{ BuildEventContext = checkContext.BuildEventContext };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
121eventArgs.BuildEventContext = checkContext.BuildEventContext!; 499new(checkEventStats) { BuildEventContext = loggingContext.BuildEventContext }; 602deferredArgs.BuildEventContext = deferredArgs.BuildEventContext!.WithInstanceIdAndContextId(buildEventContext);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
159eventArgs.BuildEventContext = checkContext.BuildEventContext;
Construction\Solution\SolutionProjectGenerator.cs (1)
1045BuildEventContext = _projectBuildEventContext,
Definition\ProjectProperty.cs (2)
109args.BuildEventContext = loggingContext.BuildEventContext; 128args.BuildEventContext = loggingContext.BuildEventContext;
Evaluation\Evaluator.cs (7)
1704BuildEventContext = _evaluationLoggingContext.BuildEventContext, 1811BuildEventContext = _evaluationLoggingContext.BuildEventContext, 1990BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2051BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2192BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2223BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2278BuildEventContext = _evaluationLoggingContext.BuildEventContext,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
223args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 242args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 293args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 331{ BuildEventContext = _evaluationLoggingContext.BuildEventContext, };
Instance\ProjectPropertyInstance.cs (2)
105args.BuildEventContext = envProperty.loggingContext.BuildEventContext; 119args.BuildEventContext = envProperty.loggingContext.BuildEventContext;
Instance\TaskFactoryLoggingHost.cs (4)
168e.BuildEventContext = _loggingContext.BuildEventContext; 189e.BuildEventContext = _loggingContext.BuildEventContext; 210e.BuildEventContext = _loggingContext.BuildEventContext; 231e.BuildEventContext = _loggingContext.BuildEventContext;
Logging\BinaryLogger\BinaryLogger.cs (1)
306args.BuildEventContext = BuildEventContext.Invalid;
Logging\BinaryLogger\BuildEventArgsReader.cs (6)
927e.BuildEventContext = fields.BuildEventContext; 979e.BuildEventContext = fields.BuildEventContext; 1033e.BuildEventContext = fields.BuildEventContext; 1049e.BuildEventContext = fields.BuildEventContext; 1126e.BuildEventContext = fields.BuildEventContext; 1417buildEventArgs.BuildEventContext = fields.BuildEventContext;
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
252buildMessageEventArgs.BuildEventContext = e.BuildEventContext ?? BuildEventContext.Invalid;
LogMessagePacketBase.cs (2)
1380args.BuildEventContext = buildEventContext; 1394args.BuildEventContext = buildEventContext;
Microsoft.Build.CommandLine.UnitTests (12)
TerminalLogger_Tests.cs (12)
138BuildEventContext = MakeBuildEventContext(), 146BuildEventContext = MakeBuildEventContext(), 154BuildEventContext = MakeBuildEventContext(), 162BuildEventContext = MakeBuildEventContext(), 170BuildEventContext = MakeBuildEventContext(), 178BuildEventContext = MakeBuildEventContext(), 186BuildEventContext = MakeBuildEventContext(), 196BuildEventContext = MakeBuildEventContext(), 204BuildEventContext = MakeBuildEventContext(), 212BuildEventContext = MakeBuildEventContext(), 220BuildEventContext = MakeBuildEventContext(), 229BuildEventContext = MakeBuildEventContext(),
Microsoft.Build.Engine.UnitTests (157)
BackEnd\EventSourceSink_Tests.cs (2)
759BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6) 787BuildEventContext = s_buildWarning.BuildEventContext
BackEnd\LoggingService_Tests.cs (2)
796warningArgs.BuildEventContext = new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidProjectContextId, 5, 6); 993buildEvent.BuildEventContext = projectStarted;
BackEnd\LoggingServicesLogMethod_Tests.cs (10)
1293BuildEventContext = buildEventContext, 1582targetEvent.BuildEventContext = s_targetBuildEventContext; 1605buildEvent.BuildEventContext = s_targetBuildEventContext; 1628taskEvent.BuildEventContext = s_buildEventContext; 1650taskEvent.BuildEventContext = s_buildEventContext; 1670projectEvent.BuildEventContext = projectContext; 1695buildEvent.BuildEventContext = generatedContext; 1714buildMessageEvent.BuildEventContext = s_buildEventContext; 1741buildEvent.BuildEventContext = s_buildEventContext; 1768buildEvent.BuildEventContext = s_buildEventContext;
BackEnd\NodePackets_Tests.cs (9)
135result.BuildEventContext = CreateBuildEventContext(); 157result.BuildEventContext = CreateBuildEventContext(); 227BuildEventContext = CreateBuildEventContext(), 262new EnvironmentVariableReadEventArgs("env", "message", "file", 0, 0) { BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6) }, 294BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6, 7) 300BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6, 7) 306BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6, 7) 312BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6, 7) 318BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
BuildEventArgsDataEnumeration.cs (3)
27BuildEventContext = BuildEventContext.Invalid, 54BuildEventContext = BuildEventContext.Invalid, 92BuildEventContext = BuildEventContext.Invalid,
BuildEventArgsSerialization_Tests.cs (13)
93args.BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6); 165args.BuildEventContext = new BuildEventContext(1, 2, 3, 4, 5, 6); 266args.BuildEventContext = new BuildEventContext(4, 5, 6, 7); 346BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 419BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 495BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 583BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 678BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 750BuildEventContext = BuildEventContext.Invalid, 767BuildEventContext = BuildEventContext.Invalid, 790BuildEventContext = BuildEventContext.Invalid, 823BuildEventContext = BuildEventContext.Invalid, 846BuildEventContext = BuildEventContext.Invalid,
ConfigureableForwardingLogger_Tests.cs (4)
53_error.BuildEventContext = context; 54_warning.BuildEventContext = context; 55_targetStarted.BuildEventContext = context; 56_targetFinished.BuildEventContext = context;
ConsoleLogger_Tests.cs (114)
493bse.BuildEventContext = buildEventContext; 495pse.BuildEventContext = buildEventContext; 497trse.BuildEventContext = buildEventContext; 499tase.BuildEventContext = buildEventContext; 501bmea.BuildEventContext = buildEventContext; 503bwea.BuildEventContext = buildEventContext; 505beea.BuildEventContext = buildEventContext; 507trfea.BuildEventContext = buildEventContext; 509tafea.BuildEventContext = buildEventContext; 511pfea.BuildEventContext = buildEventContext; 513bfea.BuildEventContext = buildEventContext; 515mcea.BuildEventContext = buildEventContext; 610BuildEventContext = new BuildEventContext(1, 2, 3, 4) 680buildEventArgs.BuildEventContext = new BuildEventContext(1, 2, 3, 4); 724bse.BuildEventContext = buildEventContext; 728pse.BuildEventContext = buildEventContext; 732trse.BuildEventContext = buildEventContext; 736tase.BuildEventContext = buildEventContext; 740bmea.BuildEventContext = buildEventContext; 744tafea.BuildEventContext = buildEventContext; 748trfea.BuildEventContext = buildEventContext; 752pfea.BuildEventContext = buildEventContext; 756bfea.BuildEventContext = buildEventContext; 777bse.BuildEventContext = buildEventContext; 781pse.BuildEventContext = buildEventContext; 785trse.BuildEventContext = buildEventContext; 789tase.BuildEventContext = buildEventContext; 796beea.BuildEventContext = buildEventContext; 800tafea.BuildEventContext = buildEventContext; 804trfea.BuildEventContext = buildEventContext; 808pfea.BuildEventContext = buildEventContext; 812bfea.BuildEventContext = buildEventContext; 853bse.BuildEventContext = buildEventContext; 857pse.BuildEventContext = buildEventContext; 861trse.BuildEventContext = buildEventContext; 865tase.BuildEventContext = buildEventContext; 873beea.BuildEventContext = buildEventContext; 877tafea.BuildEventContext = buildEventContext; 881trfea.BuildEventContext = buildEventContext; 885pfea.BuildEventContext = buildEventContext; 889bfea.BuildEventContext = buildEventContext; 930bse.BuildEventContext = buildEventContext; 934pse.BuildEventContext = buildEventContext; 938trse.BuildEventContext = buildEventContext; 942tase.BuildEventContext = buildEventContext; 946bmea.BuildEventContext = buildEventContext; 950tafea.BuildEventContext = buildEventContext; 954trfea.BuildEventContext = buildEventContext; 958pfea.BuildEventContext = buildEventContext; 962bfea.BuildEventContext = buildEventContext; 986bse.BuildEventContext = buildEventContext; 990pse.BuildEventContext = buildEventContext; 994trse.BuildEventContext = buildEventContext; 998tase.BuildEventContext = buildEventContext; 1005beea.BuildEventContext = buildEventContext; 1009tafea.BuildEventContext = buildEventContext; 1013trfea.BuildEventContext = buildEventContext; 1017pfea.BuildEventContext = buildEventContext; 1021bfea.BuildEventContext = buildEventContext; 1061bse.BuildEventContext = buildEventContext; 1065pse.BuildEventContext = buildEventContext; 1069trse.BuildEventContext = buildEventContext; 1073tase.BuildEventContext = buildEventContext; 1081beea.BuildEventContext = buildEventContext; 1085tafea.BuildEventContext = buildEventContext; 1089trfea.BuildEventContext = buildEventContext; 1093pfea.BuildEventContext = buildEventContext; 1097bfea.BuildEventContext = buildEventContext; 1137bse.BuildEventContext = buildEventContext; 1141pse.BuildEventContext = buildEventContext; 1145trse.BuildEventContext = buildEventContext; 1149tase.BuildEventContext = buildEventContext; 1157beea.BuildEventContext = buildEventContext; 1161tafea.BuildEventContext = buildEventContext; 1165trfea.BuildEventContext = buildEventContext; 1169pfea.BuildEventContext = buildEventContext; 1173bfea.BuildEventContext = buildEventContext; 1393c.BuildEventContext = new BuildEventContext(1, 1, 1, 1); 1441buildEvent.BuildEventContext = new BuildEventContext(1, 2, 3, 4); 1697buildEvent.BuildEventContext = new BuildEventContext(1, 2, 3, 4); 1775buildEvent.BuildEventContext = new BuildEventContext(1, 2, 3, 4); 1809buildEvent.BuildEventContext = new BuildEventContext(1, 2, 3, 4); 2136project1Started.BuildEventContext = new BuildEventContext(1, 1, 1, 1); 2139targetStarted1.BuildEventContext = project1Started.BuildEventContext; 2144taskStarted1.BuildEventContext = project1Started.BuildEventContext; 2149messsage1.BuildEventContext = project1Started.BuildEventContext; 2153taskFinished1.BuildEventContext = project1Started.BuildEventContext; 2158targetFinished1.BuildEventContext = project1Started.BuildEventContext; 2164project2Started.BuildEventContext = new BuildEventContext(2, 2, 2, 2); 2167targetStarted2.BuildEventContext = project2Started.BuildEventContext; 2172taskStarted2.BuildEventContext = project2Started.BuildEventContext; 2177messsage2.BuildEventContext = project2Started.BuildEventContext; 2181taskFinished2.BuildEventContext = project2Started.BuildEventContext; 2186targetFinished2.BuildEventContext = project2Started.BuildEventContext; 2191finished2.BuildEventContext = project2Started.BuildEventContext; 2196finished1.BuildEventContext = project1Started.BuildEventContext; 2250messsage1.BuildEventContext = new BuildEventContext(1, 1, 1, 1); 2264messsage2.BuildEventContext = new BuildEventContext(1, 1, 1, 1); 2278messsage2.BuildEventContext = new BuildEventContext(1, 1, 1, 1); 2282project.BuildEventContext = messsage1.BuildEventContext; 2314project.BuildEventContext = context; 2318targetStarted1.BuildEventContext = context; 2322messsage1.BuildEventContext = context; 2344project.BuildEventContext = context; 2348project2.BuildEventContext = context2; 2352targetStarted1.BuildEventContext = context; 2356targetStarted2.BuildEventContext = context2; 2360messsage1.BuildEventContext = context; 2362messsage2.BuildEventContext = context2; 2364messsage3.BuildEventContext = context; 2412project.BuildEventContext = context; 2416targetStarted1.BuildEventContext = context; 2420messsage1.BuildEventContext = context; 2424projectFinished.BuildEventContext = context;
Microsoft.Build.Framework (2)
AssemblyLoadBuildEventArgs.cs (1)
66BuildEventContext = reader.ReadOptionalBuildEventContext();
TaskParameterEventArgs.cs (1)
131BuildEventContext = reader.ReadOptionalBuildEventContext();
Microsoft.Build.Framework.UnitTests (54)
CustomEventArgSerialization_Tests.cs (47)
62genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 79genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 95genericEvent.BuildEventContext = null; 104newGenericEvent.BuildEventContext = new BuildEventContext(1, 3, 4, 5); 128genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 145genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 162genericEvent.BuildEventContext = null; 179genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 213genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 228genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 243genericEvent.BuildEventContext = null; 261genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 279genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 297genericEvent.BuildEventContext = null; 331messageEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 348messageEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 365messageEvent.BuildEventContext = null; 384criticalMessageEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 402criticalMessageEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 419criticalMessageEvent.BuildEventContext = null; 438genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 455genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 472genericEvent.BuildEventContext = null; 489genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 523genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 541genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 560genericEvent.BuildEventContext = null; 590genericEvent.BuildEventContext = new BuildEventContext(7, 8, 9, 10); 654genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 671genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 688genericEvent.BuildEventContext = null; 721genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 739genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 757genericEvent.BuildEventContext = null; 787genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 804genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 822genericEvent.BuildEventContext = null; 851genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 868genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 886genericEvent.BuildEventContext = null; 916genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 934genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 952genericEvent.BuildEventContext = null; 984genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 997genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 1014genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2); 1027genericEvent.BuildEventContext = new BuildEventContext(5, 4, 3, 2);
EventArgs_Tests.cs (2)
34s_baseGenericEvent.BuildEventContext = new BuildEventContext(9, 8, 7, 6); 77startedEvent.BuildEventContext = currentBuildEventContext;
ExtendedBuildEventArgs_Tests.cs (5)
29BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 67BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 106BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 144BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null, 181BuildEventContext = withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
304 references to BuildEventContext
Microsoft.Build (155)
BackEnd\BuildManager\BuildManager.cs (9)
994BuildResult result = _resultsCache!.GetResultsForConfiguration(projectStartedEvent.Value.BuildEventContext!.ProjectInstanceId); 2437? buildEventArgs.BuildEventContext! 2847if (_projectStartedEvents.TryGetValue(e.BuildEventContext!.SubmissionId, out var originalArgs)) 2849if (originalArgs.BuildEventContext!.Equals(e.BuildEventContext)) 2851_projectStartedEvents.Remove(e.BuildEventContext.SubmissionId); 2852if (_buildSubmissions.TryGetValue(e.BuildEventContext.SubmissionId, out var submission)) 2872if (!_projectStartedEvents.ContainsKey(e.BuildEventContext!.SubmissionId)) 2874_projectStartedEvents[e.BuildEventContext.SubmissionId] = e;
BackEnd\Components\Logging\LoggingService.cs (26)
990BuildEventContext buildEventContext = buildEvent?.BuildEventContext ?? BuildEventContext.Invalid; 1253if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1255warningEvent.ProjectFile = GetAndVerifyProjectFileFromContext(warningEvent.BuildEventContext); 1257else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.BuildEventContext != null && errorEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1259errorEvent.ProjectFile = GetAndVerifyProjectFileFromContext(errorEvent.BuildEventContext); 1261else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.BuildEventContext != null && messageEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1263messageEvent.ProjectFile = GetAndVerifyProjectFileFromContext(messageEvent.BuildEventContext); 1359if (!_projectFileMap.ContainsKey(projectStartedEventArgs.BuildEventContext.ProjectContextId)) 1361_projectFileMap[projectStartedEventArgs.BuildEventContext.ProjectContextId] = projectStartedEventArgs.ProjectFile; 1377return GetWarningsConfigKey(buildEventArgs.BuildEventContext); 1581BuildEventContext = warningEvent.BuildEventContext, 1603BuildEventContext = warningEvent.BuildEventContext, 1626BuildEventContext = warningEvent.BuildEventContext, 1647BuildEventContext = warningEvent.BuildEventContext, 1656int submissionId = errorEvent.BuildEventContext?.SubmissionId ?? BuildEventContext.InvalidSubmissionId; 1672AddWarningsAsErrors(projectStartedEvent.BuildEventContext, projectStartedEvent.WarningsAsErrors); 1673AddWarningsAsMessages(projectStartedEvent.BuildEventContext, projectStartedEvent.WarningsAsMessages); 1674AddWarningsNotAsErrors(projectStartedEvent.BuildEventContext, projectStartedEvent.WarningsNotAsErrors); 1677if (buildEventArgs is ProjectFinishedEventArgs projectFinishedEvent && projectFinishedEvent.BuildEventContext != null) 1957if (_warningsAsMessagesByProject != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId) 1994if (_warningsAsErrorsByProject != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
514return args.BuildEventContext;
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
100: base(nodeLoggingContext, projectStarted.BuildEventContext) 180return args.BuildEventContext;
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (10)
76_checkContextFactory.CreateCheckContext(eventArgs.BuildEventContext!), 79_buildCheckManager.EndProjectEvaluation(eventArgs.BuildEventContext!); 87var checkContext = _checkContextFactory.CreateCheckContext(eventArgs.BuildEventContext!); 101_checkContextFactory.CreateCheckContext(eventArgs.BuildEventContext!), 106_checkContextFactory.CreateCheckContext(eventArgs.BuildEventContext!), 119_checkContextFactory.CreateCheckContext(eventArgs.BuildEventContext!), 124_checkContextFactory.CreateCheckContext(eventArgs.BuildEventContext!), 129_checkContextFactory.CreateCheckContext(eventArgs.BuildEventContext!), 153_buildCheckManager.ProcessBuildFinished(_checkContextFactory.CreateCheckContext(eventArgs.BuildEventContext!)); 183private BuildEventContext GetBuildEventContext(BuildEventArgs e) => e.BuildEventContext
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (6)
602deferredArgs.BuildEventContext = deferredArgs.BuildEventContext!.WithInstanceIdAndContextId(buildEventContext); 640eventArgs.BuildEventContext == null || 642eventArgs.BuildEventContext.EvaluationId == BuildEventContext.InvalidEvaluationId || 644eventArgs.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId || 654if (!_deferredEvalDiagnostics.TryGetValue(eventArgs.BuildEventContext.EvaluationId, out var list)) 657_deferredEvalDiagnostics[eventArgs.BuildEventContext.EvaluationId] = list;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (9)
68evaluationFinishedEventArgs.BuildEventContext?.ProjectInstanceId, 84evaluationFinishedEventArgs.BuildEventContext?.ProjectInstanceId, 134if (taskStartedEventArgs.BuildEventContext is not null) 150projectConfigurationId: taskStartedEventArgs.BuildEventContext.ProjectInstanceId, 157_tasksBeingExecuted.Add(new TaskKey(taskStartedEventArgs.BuildEventContext), taskData); 171if (taskFinishedEventArgs?.BuildEventContext is not null) 173TaskKey taskKey = new TaskKey(taskFinishedEventArgs.BuildEventContext); 201if (taskParameterEventArgs.BuildEventContext is not null && 202_tasksBeingExecuted.TryGetValue(new TaskKey(taskParameterEventArgs.BuildEventContext), out ExecutingTaskData taskData))
BuildCheck\OM\ParsedItemsCheckData.cs (1)
66: base(evaluationFinishedEventArgs.ProjectFile!, evaluationFinishedEventArgs.BuildEventContext?.ProjectInstanceId)
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
252buildMessageEventArgs.BuildEventContext = e.BuildEventContext ?? BuildEventContext.Invalid; 657Write(e.BuildEventContext); 815if (e.BuildEventContext != null)
Logging\ParallelLogger\ParallelConsoleLogger.cs (81)
439TargetStartedEventMinimumFields targetEvent = _buildEventManager.GetTargetStartedEvent(errorWarningEventArgs.BuildEventContext); 447ErrorWarningSummaryDictionaryKey key = new ErrorWarningSummaryDictionaryKey(errorWarningEventArgs.BuildEventContext, targetName); 514ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 524counter.AddEventStarted(e.TargetNames, e.BuildEventContext, e.Timestamp, s_compareContextNodeId); 528if (_deferredMessages.TryGetValue(e.BuildEventContext, out var deferredMessages)) 538_deferredMessages.Remove(e.BuildEventContext); 548DisplayDeferredProjectStartedEvent(e.BuildEventContext); 562var projectKey = (e.BuildEventContext.NodeId, e.BuildEventContext.ProjectContextId); 576var evaluationKey = GetEvaluationKey(e.BuildEventContext); 654ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 657ProjectStartedEventMinimumFields startedEvent = _buildEventManager.GetProjectStartedEvent(e.BuildEventContext); 664counter.AddEventFinished(startedEvent.TargetNames, e.BuildEventContext, e.Timestamp); 672_lastProjectFullKey = GetFullProjectKey(e.BuildEventContext); 676WriteLinePrefix(e.BuildEventContext, e.Timestamp, false); 717ShownBuildEventContext(e.BuildEventContext); 722_buildEventManager.RemoveProjectStartedEvent(e.BuildEventContext); 749WriteLinePrefix(e.BuildEventContext, e.Timestamp, false); 751ShownBuildEventContext(e.BuildEventContext); 815WriteLinePrefix(e.BuildEventContext, e.Timestamp, false); 817ShownBuildEventContext(e.BuildEventContext); 844ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 854counter.AddEventStarted(null, e.BuildEventContext, e.Timestamp, s_compareContextNodeIdTargetId); 865ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 871counter.AddEventFinished(null, e.BuildEventContext, e.Timestamp); 877DisplayDeferredTargetStartedEvent(e.BuildEventContext); 881TargetStartedEventMinimumFields startedEvent = _buildEventManager.GetTargetStartedEvent(e.BuildEventContext); 908_lastProjectFullKey = GetFullProjectKey(e.BuildEventContext); 909WriteLinePrefix(e.BuildEventContext, e.Timestamp, false); 913WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", e.Message, e.BuildEventContext.TargetId), true); 922ShownBuildEventContext(e.BuildEventContext); 927_buildEventManager.RemoveTargetStartedEvent(e.BuildEventContext); 937ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 943DisplayDeferredStartedEvents(e.BuildEventContext); 947bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.BuildEventContext, e.Timestamp); 951WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", e.Message, e.BuildEventContext.TaskId), prefixAlreadyWritten); 960ShownBuildEventContext(e.BuildEventContext); 967counter.AddEventStarted(null, e.BuildEventContext, e.Timestamp, null); 978ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 983counter.AddEventFinished(null, e.BuildEventContext, e.Timestamp); 991bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.BuildEventContext, e.Timestamp); 995WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", e.Message, e.BuildEventContext.TaskId), prefixAlreadyWritten); 1003ShownBuildEventContext(e.BuildEventContext); 1014if (e.BuildEventContext != null) 1016var key = (e.BuildEventContext.NodeId, e.BuildEventContext.ProjectContextId); 1028ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 1035_buildEventManager.SetErrorWarningFlagOnCallStack(e.BuildEventContext); 1037TargetStartedEventMinimumFields targetStartedEvent = _buildEventManager.GetTargetStartedEvent(e.BuildEventContext); 1044DisplayDeferredStartedEvents(e.BuildEventContext); 1052WriteLinePrefix(e.BuildEventContext, e.Timestamp, false); 1057ShownBuildEventContext(e.BuildEventContext); 1074ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 1081_buildEventManager.SetErrorWarningFlagOnCallStack(e.BuildEventContext); 1082TargetStartedEventMinimumFields targetStartedEvent = _buildEventManager.GetTargetStartedEvent(e.BuildEventContext); 1090DisplayDeferredStartedEvents(e.BuildEventContext); 1098WriteLinePrefix(e.BuildEventContext, e.Timestamp, false); 1105ShownBuildEventContext(e.BuildEventContext); 1127if (e.BuildEventContext == null && e is AssemblyLoadBuildEventArgs) 1132ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 1156&& e.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId 1157&& _buildEventManager.GetProjectStartedEvent(e.BuildEventContext) == null 1160if (!_deferredMessages.TryGetValue(e.BuildEventContext, out List<BuildMessageEventArgs> messageList)) 1163_deferredMessages.Add(e.BuildEventContext, messageList); 1169DisplayDeferredStartedEvents(e.BuildEventContext); 1173ShownBuildEventContext(e.BuildEventContext); 1184counter.AddEventStarted(null, e.BuildEventContext, e.Timestamp, s_compareContextNodeId); 1192counter.AddEventFinished(null, e.BuildEventContext, e.Timestamp); 1211var evaluationKey = GetEvaluationKey(e.BuildEventContext); 1269if (e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId && e.File == null) 1282if ((IsVerbosityAtLeast(LoggerVerbosity.Diagnostic) || _showEventId) && e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId) 1284bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.BuildEventContext, e.Timestamp); 1285WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", nonNullMessage, e.BuildEventContext.TaskId), prefixAlreadyWritten, prefixAdjustment); 1292bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.BuildEventContext, e.Timestamp); 1312BuildEventContext currentBuildEventContext = e.BuildEventContext; 1342WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", targetName, e.BuildEventContext.TargetId), prefixAlreadyWritten); 1364ProjectFullKey currentProjectFullKey = GetFullProjectKey(e.BuildEventContext); 1578ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 1585DisplayDeferredStartedEvents(e.BuildEventContext); 1586WriteLinePrefix(e.BuildEventContext, e.Timestamp, false); 1588ShownBuildEventContext(e.BuildEventContext);
Logging\ParallelLogger\ParallelLoggerHelpers.cs (6)
47if (!_projectStartedEvents.ContainsKey(e.BuildEventContext)) 75_projectStartedEvents.Add(e.BuildEventContext, new ProjectStartedEventMinimumFields(projectIncrementKeyLocal, projectTargetKeyLocal, e, parentEvent, requireTimestamp)); 85if (!_targetStartedEvents.ContainsKey(e.BuildEventContext)) 87_targetStartedEvents.Add(e.BuildEventContext, new TargetStartedEventMinimumFields(e, requireTimeStamp)); 401_buildEventContext = startedEvent.BuildEventContext; 522_buildEventContext = startedEvent.BuildEventContext;
LogMessagePacketBase.cs (1)
1019var buildEventContext = args.BuildEventContext;
Microsoft.Build.Engine.UnitTests (48)
BackEnd\BuildManager_Tests.cs (1)
3967Assert.True(_logger.AllBuildEvents.OfType<ProjectEvaluationStartedEventArgs>().GroupBy(args => args.BuildEventContext.EvaluationId).All(g => g.Count() == 1));
BackEnd\EventSourceSink_Tests.cs (1)
787BuildEventContext = s_buildWarning.BuildEventContext
BackEnd\LoggingService_Tests.cs (8)
749Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.BuildEventContext, actualBuildEvent.BuildEventContext); 822Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.BuildEventContext, actualBuildEvent.BuildEventContext); 887Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.BuildEventContext, actualBuildEvent.BuildEventContext); 929Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.BuildEventContext, actualBuildEvent.BuildEventContext);
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
1301Assert.Equal(expectedEventArgs.BuildEventContext, actualEventArgs.BuildEventContext);
BuildEventArgsSerialization_Tests.cs (7)
96e => ToString(e.BuildEventContext), 168e => ToString(e.BuildEventContext), 270e => e.BuildEventContext.ToString()); 609desArgs.BuildEventContext.ShouldBe(args.BuildEventContext); 615desArgs.BuildEventContext.ShouldBe(BuildEventContext.Invalid); 860e => e.BuildEventContext.ToString(),
ConsoleLogger_Tests.cs (16)
618message = context + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", "my 1337 message", be.BuildEventContext.TaskId); 2139targetStarted1.BuildEventContext = project1Started.BuildEventContext; 2144taskStarted1.BuildEventContext = project1Started.BuildEventContext; 2149messsage1.BuildEventContext = project1Started.BuildEventContext; 2153taskFinished1.BuildEventContext = project1Started.BuildEventContext; 2158targetFinished1.BuildEventContext = project1Started.BuildEventContext; 2162ProjectStartedEventArgs project2Started = new ProjectStartedEventArgs(2, null, null, "p2", "t2", null, null, project1Started.BuildEventContext); 2167targetStarted2.BuildEventContext = project2Started.BuildEventContext; 2172taskStarted2.BuildEventContext = project2Started.BuildEventContext; 2177messsage2.BuildEventContext = project2Started.BuildEventContext; 2181taskFinished2.BuildEventContext = project2Started.BuildEventContext; 2186targetFinished2.BuildEventContext = project2Started.BuildEventContext; 2191finished2.BuildEventContext = project2Started.BuildEventContext; 2196finished1.BuildEventContext = project1Started.BuildEventContext; 2281ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, messsage1.BuildEventContext); 2282project.BuildEventContext = messsage1.BuildEventContext;
Evaluation\EvaluationLogging_Tests.cs (2)
118buildEvent.BuildEventContext.EvaluationId.ShouldBe(evaluationId); 149var eventEvaluationId = args.BuildEventContext.EvaluationId;
Graph\IsolateProjects_Tests.cs (6)
213logger.Errors.First().BuildEventContext.ShouldNotBe(BuildEventContext.Invalid); 215logger.Errors.First().BuildEventContext.NodeId.ShouldNotBe(BuildEventContext.InvalidNodeId); 216logger.Errors.First().BuildEventContext.ProjectInstanceId.ShouldNotBe(BuildEventContext.InvalidProjectInstanceId); 217logger.Errors.First().BuildEventContext.ProjectContextId.ShouldNotBe(BuildEventContext.InvalidProjectContextId); 218logger.Errors.First().BuildEventContext.TargetId.ShouldNotBe(BuildEventContext.InvalidTargetId); 219logger.Errors.First().BuildEventContext.TaskId.ShouldNotBe(BuildEventContext.InvalidTaskId);
Graph\ResultCacheBasedBuilds_Tests.cs (5)
400results["1"].Logger.Errors.First().BuildEventContext.NodeId.ShouldNotBe(BuildEventContext.InvalidNodeId); 401results["1"].Logger.Errors.First().BuildEventContext.ProjectInstanceId.ShouldNotBe(BuildEventContext.InvalidProjectInstanceId); 402results["1"].Logger.Errors.First().BuildEventContext.ProjectContextId.ShouldNotBe(BuildEventContext.InvalidProjectContextId); 403results["1"].Logger.Errors.First().BuildEventContext.TargetId.ShouldNotBe(BuildEventContext.InvalidTargetId); 404results["1"].Logger.Errors.First().BuildEventContext.TaskId.ShouldNotBe(BuildEventContext.InvalidTaskId);
Microsoft.Build.Framework (2)
AssemblyLoadBuildEventArgs.cs (1)
52writer.WriteOptionalBuildEventContext(BuildEventContext);
TaskParameterEventArgs.cs (1)
182writer.WriteOptionalBuildEventContext(BuildEventContext);
Microsoft.Build.Framework.UnitTests (10)
CustomEventArgSerialization_Tests.cs (2)
115newGenericEvent.BuildEventContext.ShouldBe(genericEvent.BuildEventContext); // "Expected Event Context to Match"
EventArgs_Tests.cs (8)
107startedEvent.BuildEventContext.ShouldNotBeNull(); 117startedEvent.BuildEventContext.SubmissionId.ShouldBe(0); 118startedEvent.BuildEventContext.NodeId.ShouldBe(1); 119startedEvent.BuildEventContext.EvaluationId.ShouldBe(2); 120startedEvent.BuildEventContext.ProjectInstanceId.ShouldBe(3); 121startedEvent.BuildEventContext.ProjectContextId.ShouldBe(4); 122startedEvent.BuildEventContext.TargetId.ShouldBe(5); 123startedEvent.BuildEventContext.TaskId.ShouldBe(6);
Microsoft.Build.Tasks.UnitTests (2)
MSBuild_Tests.cs (2)
1478var expectedTaskId = logger.TaskStartedEvents.First(t => t.TaskName == "MSBuild").BuildEventContext.TaskId; 1514var expectedTaskId = logger.TaskStartedEvents.First(t => t.TaskName == nameof(BuildProjectFileTask)).BuildEventContext.TaskId;
Microsoft.Build.UnitTests.Shared (2)
BuildEventArgsExtension.cs (2)
48if (args.BuildEventContext != other.BuildEventContext)
Microsoft.Build.Utilities.Core (35)
MuxLogger.cs (35)
307_submissionProjectsInProgress.TryGetValue(e.BuildEventContext.SubmissionId, out int value); 308_submissionProjectsInProgress[e.BuildEventContext.SubmissionId] = value + 1; 316int value = _submissionProjectsInProgress[e.BuildEventContext.SubmissionId]; 320_submissionProjectsInProgress.Remove(e.BuildEventContext.SubmissionId); 323_submissionRecords.Remove(e.BuildEventContext.SubmissionId); 328_submissionProjectsInProgress[e.BuildEventContext.SubmissionId] = value - 1; 633if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 675buildEvent.BuildEventContext != null && 677buildEvent.BuildEventContext.SubmissionId != _submissionId && /* The build submission does not match the submissionId for this logger */ 678buildEvent.BuildEventContext.SubmissionId != BuildEventContext.InvalidSubmissionId)) 718buildEvent.BuildEventContext != null && 720buildEvent.BuildEventContext.SubmissionId != _submissionId && /* The build submission does not match the submissionId for this logger */ 721buildEvent.BuildEventContext.SubmissionId != BuildEventContext.InvalidSubmissionId)) 850if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 859_firstProjectStartedEventContext = buildEvent.BuildEventContext; 906if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 948if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 990if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 1032if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 1074if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 1116if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 1163if (buildEvent.BuildEventContext != null && buildEvent.BuildEventContext.SubmissionId != _submissionId) 1212buildEvent.BuildEventContext != null && 1214buildEvent.BuildEventContext.SubmissionId != _submissionId && /* The build submission does not match the submissionId for this logger */ 1216buildEvent.BuildEventContext.SubmissionId == BuildEventContext.InvalidSubmissionId && eventIsErrorOrWarning))) 1257if (projectFinishedEvent != null && buildEvent.BuildEventContext?.Equals(_firstProjectStartedEventContext) == true)
Microsoft.DotNet.ArcadeLogging (5)
PipelinesLogger.cs (5)
195LogErrorOrWarning(isError: true, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.Message, e.BuildEventContext); 198LogErrorOrWarning(isError: false, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.Message, e.BuildEventContext); 207if (!_buildEventContextMap.TryGetValue(e.BuildEventContext, out var parentId)) 223if (!_buildEventContextMap.TryGetValue(e.BuildEventContext, out Guid projectId) || 256_buildEventContextMap[e.BuildEventContext] = projectInfo.Id;
MSBuild (8)
TerminalLogger\TerminalLogger.cs (8)
485var buildEventContext = e.BuildEventContext; 516var buildEventContext = e.BuildEventContext; 706var buildEventContext = e.BuildEventContext; 751var buildEventContext = e.BuildEventContext; 774var buildEventContext = e.BuildEventContext; 792var buildEventContext = e.BuildEventContext; 926BuildEventContext? buildEventContext = e.BuildEventContext; 968BuildEventContext? buildEventContext = e.BuildEventContext;
TaskUsageLogger (6)
TaskUsageLogger.cs (6)
117GatherAndEvaluateTasksForProject(p, e.BuildEventContext.ProjectContextId); 122_toolsVersionsByProjectContextId[e.BuildEventContext.ProjectContextId] = p.ToolsVersion; 155_targetIdsToNames[e.BuildEventContext.TargetId] = e.TargetName; 169_targetIdsToNames[e.BuildEventContext.TargetId], 172GetAssemblySpecificationFor(e.TaskName, e.BuildEventContext.ProjectContextId, e.ProjectFile), 173e.BuildEventContext.TaskId
XmlFileLogger (31)
ObjectModel\Build.cs (29)
77var project = GetOrAddProject(targetStartedEventArgs.BuildEventContext.ProjectContextId); 88var project = GetOrAddProject(buildMessageEventArgs.BuildEventContext.ProjectContextId); 89var target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId); 90var task = target.GetTaskById(buildMessageEventArgs.BuildEventContext.TaskId); 101var project = GetOrAddProject(taskCommandLineEventArgs.BuildEventContext.ProjectContextId); 102var target = project.GetTargetById(taskCommandLineEventArgs.BuildEventContext.TargetId); 103var task = target.GetTaskById(taskCommandLineEventArgs.BuildEventContext.TaskId); 117var project = GetOrAddProject(buildMessageEventArgs.BuildEventContext.ProjectContextId); 118var target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId); 134var project = GetOrAddProject(buildMessageEventArgs.BuildEventContext.ProjectContextId); 135var target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId); 148if (buildMessageEventArgs.BuildEventContext.TaskId > 0) 150node = GetOrAddProject(buildMessageEventArgs.BuildEventContext.ProjectContextId) 151.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId) 152.GetTaskById(buildMessageEventArgs.BuildEventContext.TaskId); 154else if (buildMessageEventArgs.BuildEventContext.TargetId > 0) 156node = GetOrAddProject(buildMessageEventArgs.BuildEventContext.ProjectContextId) 157.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId); 159else if (buildMessageEventArgs.BuildEventContext.ProjectContextId > 0) 161node = GetOrAddProject(buildMessageEventArgs.BuildEventContext.ProjectContextId); 173var project = GetOrAddProject(taskStartedEventArgs.BuildEventContext.ProjectContextId); 174var target = project.GetTargetById(taskStartedEventArgs.BuildEventContext.TargetId); 192var project = GetOrAddProject(projectStartedEventArgs.BuildEventContext.ProjectContextId, projectStartedEventArgs, parent); 234var project = GetOrAddProject(targetFinishedEventArgs.BuildEventContext.ProjectContextId); 235var target = project.GetTargetById(targetFinishedEventArgs.BuildEventContext.TargetId); 246var project = GetOrAddProject(projectFinishedEventArgs.BuildEventContext.ProjectContextId); 256var project = GetOrAddProject(taskFinishedEventArgs.BuildEventContext.ProjectContextId); 257var target = project.GetTargetById(taskFinishedEventArgs.BuildEventContext.TargetId); 258var task = target.GetTaskById(taskFinishedEventArgs.BuildEventContext.TaskId);
ObjectModel\Target.cs (1)
108Id = e.BuildEventContext.TargetId;
ObjectModel\Task.cs (1)
30Id = taskStartedEvent.BuildEventContext.TaskId;