38 instantiations of BuildEventContext
Microsoft.Build (30)
BackEnd\BuildManager\BuildManager.cs (9)
1716BuildEventContext buildEventContext = new BuildEventContext( 1812buildEventContext = new BuildEventContext(request.SubmissionId, 0, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2075BuildEventContext buildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2185BuildEventContext projectBuildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2201var buildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2260new BuildEventContext( 2794: new BuildEventContext(result.SubmissionId, node, configuration.Project?.EvaluationId ?? BuildEventContext.InvalidEvaluationId, configuration.ConfigurationId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2833BuildEventContext buildEventContext = new BuildEventContext(submission.SubmissionId, BuildEventContext.InvalidNodeId, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2989BuildEventContext buildEventContext = new BuildEventContext(0, Scheduler.VirtualNode, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
349BuildEventContext = new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (5)
472=> new BuildEventContext(submissionId, nodeId, NextEvaluationId, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 490return new BuildEventContext(submissionId, nodeId, evaluationId, projectInstanceId, projectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 636BuildEventContext projectBuildEventContext = new BuildEventContext(submissionId, nodeBuildEventContext.NodeId, evaluationId, configurationId, projectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 704BuildEventContext targetBuildEventContext = new BuildEventContext( 801BuildEventContext taskBuildEventContext = new BuildEventContext(
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
24: base(loggingService, new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId), inProcNode)
BackEnd\Components\Scheduler\Scheduler.cs (4)
617BuildEventContext context = new BuildEventContext(submissionId, 0, 0, 0, 0, 0); 2050new BuildEventContext( 2995plan.WritePlan(submissionId, _componentHost.LoggingService, new BuildEventContext(submissionId, 0, 0, 0, 0, 0)); 3004_schedulingPlan.ReadPlan(submissionId, _componentHost.LoggingService, new BuildEventContext(submissionId, 0, 0, 0, 0, 0));
BackEnd\Shared\BuildRequestConfiguration.cs (1)
522new BuildEventContext(
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
212?? new BuildEventContext(
Definition\Project.cs (1)
70private static readonly BuildEventContext s_buildEventContext = new BuildEventContext(0 /* node ID */, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId);
Definition\ProjectCollection.cs (2)
419BuildEventContext buildEventContext = new BuildEventContext(0 /* node ID */, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 1317var buildEventContext = new BuildEventContext(nodeId: 0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId);
Instance\ProjectInstance.cs (4)
325BuildEventContext buildEventContext = new BuildEventContext(buildParameters.NodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 557BuildEventContext buildEventContext = new BuildEventContext(0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 632BuildEventContext buildEventContext = new BuildEventContext(0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 647BuildEventContext buildEventContext = new BuildEventContext(submissionId, 0, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId);
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1539var result = new BuildEventContext(
Microsoft.Build.Framework (8)
BinaryReaderExtensions.cs (1)
81var buildEventContext = new BuildEventContext(submissionId, nodeId, evaluationId, projectInstanceId, projectContextId, targetId, taskId);
BinaryTranslator.cs (1)
482value = new BuildEventContext(
BuildEventArgs.cs (2)
243buildEventContext = new BuildEventContext(submissionId, nodeId, evaluationId, projectInstanceId, projectContextId, targetId, taskId); 247buildEventContext = new BuildEventContext(nodeId, targetId, projectContextId, taskId);
BuildEventContext.cs (2)
120return new BuildEventContext(_submissionId, _nodeId, _evaluationId, projectInstanceId, projectContextId, 134public static BuildEventContext Invalid { get; } = new BuildEventContext(InvalidNodeId, InvalidTargetId, InvalidProjectContextId, InvalidTaskId);
ProjectStartedEventArgs.cs (2)
431parentProjectBuildEventContext = new BuildEventContext(submissionId, nodeId, projectInstanceId, projectContextId, targetId, taskId); 435parentProjectBuildEventContext = new BuildEventContext(nodeId, targetId, projectContextId, taskId);
499 references to BuildEventContext
Microsoft.Build (463)
BackEnd\BuildManager\BuildManager.cs (61)
702loggingService.LogComment(buildEventContext: BuildEventContext.Invalid, MessageImportance.Normal, "BuildCheckEnabled"); 771loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "UsingInputCaches", string.Join(";", _buildParameters.InputResultsCacheFiles)); 776loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "WritingToOutputCache", _buildParameters.OutputResultsCacheFile); 1199(_overallBuildSuccess && loggingService.HasBuildSubmissionLoggedErrors(BuildEventContext.InvalidSubmissionId))) 1716BuildEventContext buildEventContext = new BuildEventContext( 1719BuildEventContext.InvalidProjectInstanceId, 1720BuildEventContext.InvalidProjectContextId, 1721BuildEventContext.InvalidTargetId, 1722BuildEventContext.InvalidTaskId); 1809var buildEventContext = request.BuildEventContext; 1810if (buildEventContext == BuildEventContext.Invalid) 1812buildEventContext = new BuildEventContext(request.SubmissionId, 0, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2075BuildEventContext buildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2097private static void AddBuildRequestToSubmission(BuildSubmission submission, int configurationId, int projectContextId = BuildEventContext.InvalidProjectContextId) 2105parentBuildEventContext: BuildEventContext.Invalid, 2185BuildEventContext projectBuildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2201var buildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2263BuildEventContext.InvalidEvaluationId, 2264BuildEventContext.InvalidProjectInstanceId, 2265BuildEventContext.InvalidProjectContextId, 2266BuildEventContext.InvalidTargetId, 2267BuildEventContext.InvalidTaskId), 2772if (result.EvaluationId != BuildEventContext.InvalidEvaluationId) 2792BuildEventContext buildEventContext = _projectStartedEvents.TryGetValue(result.SubmissionId, out BuildEventArgs? buildEventArgs) 2794: new BuildEventContext(result.SubmissionId, node, configuration.Project?.EvaluationId ?? BuildEventContext.InvalidEvaluationId, configuration.ConfigurationId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2833BuildEventContext buildEventContext = new BuildEventContext(submission.SubmissionId, BuildEventContext.InvalidNodeId, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 2844loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, shutdownPacket.Exception.ToString()); 2989BuildEventContext buildEventContext = new BuildEventContext(0, Scheduler.VirtualNode, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 3439BuildEventContext.Invalid, 3450message.BuildEvent.BuildEventContext ??= BuildEventContext.Invalid; 3455loggingService.LogCommentFromText(BuildEventContext.Invalid, message.Importance, message.Text); 3461loggingService.LogIncludeFile(BuildEventContext.Invalid, message.FilePath); 3616loggingService?.LogCommentFromText(BuildEventContext.Invalid, MessageImportance.High, message); 3624BuildEventContext.Invalid,
BackEnd\BuildManager\CacheAggregator.cs (1)
92BuildEventContext.InvalidSubmissionId,
BackEnd\BuildManager\CoordinatorClient.cs (9)
172loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "CoordinatorFailedToNegotiate"); 180loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "CoordinatorFailedToConnect"); 215loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "CoordinatorLaunchTimedOut"); 247loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "CoordinatorFailedToConnect"); 267loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "CoordinatorFailedToConnect"); 378loggingService?.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "CoordinatorNodeGrantReceived", grant.GrantedNodes); 388loggingService?.LogComment(BuildEventContext.Invalid, MessageImportance.High, "CoordinatorWaitingForNodes"); 421loggingService?.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "CoordinatorNodeGrantReceived", grant.GrantedNodes); 506loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "CoordinatorFailedToLaunch");
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
45loggingService.LogWarning(BuildEventContext.Invalid, null, BuildEventFileInfo.Empty, "DotnetHostPathIsDirectory", dotnetHostPath);
BackEnd\Components\Communications\LogMessagePacket.cs (3)
113var buildEventContext = args.BuildEventContext; 321private static (BuildEventContext buildEventContext, DateTime timestamp, string projectFile) 324BuildEventContext buildEventContext = null;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
349BuildEventContext = new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId) 1409BuildEventContext.Invalid,
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
94public static void TranslateOptionalBuildEventContext(this ITranslator translator, ref BuildEventContext buildEventContext)
BackEnd\Components\Logging\BuildLoggingContext.cs (2)
31protected BuildLoggingContext(ILoggingService loggingService, BuildEventContext buildEventContext, bool inProc) : base(loggingService, buildEventContext) 37protected BuildLoggingContext(BuildLoggingContext baseContext, BuildEventContext newEventContext) : base(baseContext, newEventContext)
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
19public EvaluationLoggingContext(ILoggingService loggingService, BuildEventContext buildEventContext, string projectFile)
BackEnd\Components\Logging\ILoggingService.cs (45)
272/// <param name="buildEventContext">A <see cref="BuildEventContext"/> to associate with the list of warning codes.</param> 274void AddWarningsAsMessages(BuildEventContext buildEventContext, ISet<string> codes); 279/// <param name="buildEventContext">A <see cref="BuildEventContext"/> to associate with the list of warning codes.</param> 281void AddWarningsAsErrors(BuildEventContext buildEventContext, ISet<string> codes); 286/// <param name="buildEventContext">A <see cref="BuildEventContext"/> to associate with the list of warning codes.</param> 288void AddWarningsNotAsErrors(BuildEventContext buildEventContext, ISet<string> codes); 308ICollection<string> GetWarningsAsErrors(BuildEventContext context); 315ICollection<string> GetWarningsNotAsErrors(BuildEventContext context); 322ICollection<string> GetWarningsAsMessages(BuildEventContext context); 370void LogComment(BuildEventContext buildEventContext, MessageImportance importance, string messageResourceName, params object[] messageArgs); 378void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message); 390void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object[] messageArgs); 409void LogError(BuildEventContext buildEventContext, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 419void LogError(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 430void LogErrorFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string errorCode, string helpKeyword, BuildEventFileInfo file, string message); 437void LogInvalidProjectFileError(BuildEventContext buildEventContext, InvalidProjectFileException invalidProjectFileException); 445void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file); 454void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName); 464void LogFatalError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 475void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName); 485void LogWarning(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 496void LogWarningFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string warningCode, string helpKeyword, BuildEventFileInfo file, string message); 522BuildEventContext CreateEvaluationBuildEventContext(int nodeId, int submissionId); 532BuildEventContext CreateProjectCacheBuildEventContext(int submissionId, int evaluationId, int projectInstanceId, string projectFile); 540void LogProjectEvaluationStarted(BuildEventContext eventContext, string projectFile); 553BuildEventContext projectEvaluationEventContext, 574BuildEventContext LogProjectStarted( 575BuildEventContext nodeBuildEventContext, 578BuildEventContext parentBuildEventContext, 583int evaluationId = BuildEventContext.InvalidEvaluationId, 584int projectContextId = BuildEventContext.InvalidProjectContextId); 589BuildEventContext nodeBuildEventContext, 592BuildEventContext parentBuildEventContext, 597int evaluationId = BuildEventContext.InvalidEvaluationId, 598int projectContextId = BuildEventContext.InvalidProjectContextId); 606void LogProjectFinished(BuildEventContext projectBuildEventContext, string projectFile, bool success); 618BuildEventContext LogTargetStarted(BuildEventContext projectBuildEventContext, string targetName, string projectFile, string projectFileOfTargetElement, string parentTargetName, TargetBuiltReason buildReason); 629void LogTargetFinished(BuildEventContext targetBuildEventContext, string targetName, string projectFile, string projectFileOfTargetElement, bool success, IEnumerable<TaskItem> targetOutputs); 639void LogTaskStarted(BuildEventContext taskBuildEventContext, string taskName, string projectFile, string projectFileOfTaskNode, string taskAssemblyLocation); 652BuildEventContext LogTaskStarted2(BuildEventContext targetBuildEventContext, string taskName, string projectFile, string projectFileOfTaskNode, int line, int column, string taskAssemblyLocation); 662void LogTaskFinished(BuildEventContext taskBuildEventContext, string taskName, string projectFile, string projectFileOfTaskNode, bool success); 672void LogTelemetry(BuildEventContext buildEventContext, string eventName, IDictionary<string, string> properties); 681void LogIncludeFile(BuildEventContext buildEventContext, string filePath);
BackEnd\Components\Logging\LoggingContext.cs (4)
29private BuildEventContext _eventContext; 43public LoggingContext(ILoggingService loggingService, BuildEventContext eventContext) 61public LoggingContext(LoggingContext baseContext, BuildEventContext newEventContext) 89public BuildEventContext BuildEventContext
BackEnd\Components\Logging\LoggingService.cs (22)
217/// A list of build submission IDs that have logged errors. If an error is logged outside of a submission, the submission ID is <see cref="BuildEventContext.InvalidSubmissionId"/>. 222/// A list of build submission IDs that have logged errors through buildcheck. If an error is logged outside of a submission, the submission ID is <see cref="BuildEventContext.InvalidSubmissionId"/>. 232/// A list of warnings to treat as errors for an associated <see cref="BuildEventContext"/>. If an empty set, all warnings are treated as errors. 237/// A list of warnings to not to be promoted to errors for an associated <see cref="BuildEventContext"/>. 242/// A list of warnings to treat as messages for an associated <see cref="BuildEventContext"/>. 688public ICollection<string> GetWarningsAsErrors(BuildEventContext context) 699public ICollection<string> GetWarningsNotAsErrors(BuildEventContext context) 710public ICollection<string> GetWarningsAsMessages(BuildEventContext context) 725private ICollection<string> GetWarningsForProject(BuildEventContext context, IDictionary<WarningsConfigKey, ISet<string>> warningsByProject, ISet<string> warnings) 749public void AddWarningsAsErrors(BuildEventContext buildEventContext, ISet<string> codes) 759public void AddWarningsNotAsErrors(BuildEventContext buildEventContext, ISet<string> codes) 769public void AddWarningsAsMessages(BuildEventContext buildEventContext, ISet<string> codes) 780private void AddWarningsAsMessagesOrErrors(ref IDictionary<WarningsConfigKey, ISet<string>> warningsByProject, BuildEventContext buildEventContext, ISet<string> codes) 1283if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1287else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.BuildEventContext != null && errorEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1291else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.BuildEventContext != null && messageEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1431taskParameterEventArgs.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1443private static WarningsConfigKey GetWarningsConfigKey(BuildEventContext buildEventContext) 1742int submissionId = errorEvent.BuildEventContext?.SubmissionId ?? BuildEventContext.InvalidSubmissionId; 2026BuildEventContext context = eventArgs.BuildEventContext!; 2048if (_warningsAsMessagesByProject != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId) 2085if (_warningsAsErrorsByProject != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (54)
38public void LogComment(BuildEventContext buildEventContext, MessageImportance importance, string messageResourceName, params object[] messageArgs) 57public void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message) 72public void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object[] messageArgs) 98public void LogError(BuildEventContext location, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 112public void LogError(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 132public void LogErrorFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string errorCode, string helpKeyword, BuildEventFileInfo file, string message) 136if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 155public void LogInvalidProjectFileError(BuildEventContext buildEventContext, InvalidProjectFileException invalidProjectFileException) 176if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 195public void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file) 209public void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName) 226public void LogFatalError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 260public void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName) 285public void LogWarning(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 302public void LogWarningFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string warningCode, string helpKeyword, BuildEventFileInfo file, string message) 328if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 445msgEvent.BuildEventContext = BuildEventContext.Invalid; 452registerEvent.BuildEventContext = BuildEventContext.Invalid; 471public BuildEventContext CreateEvaluationBuildEventContext(int nodeId, int submissionId) 472=> new BuildEventContext(submissionId, nodeId, NextEvaluationId, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 475public BuildEventContext CreateProjectCacheBuildEventContext( 490return new BuildEventContext(submissionId, nodeId, evaluationId, projectInstanceId, projectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 494public void LogProjectEvaluationStarted(BuildEventContext projectEvaluationEventContext, string projectFile) 518BuildEventContext projectEvaluationEventContext, 556public BuildEventContext LogProjectStarted( 557BuildEventContext nodeBuildEventContext, 560BuildEventContext parentBuildEventContext, 565int evaluationId = BuildEventContext.InvalidEvaluationId, 566int projectContextId = BuildEventContext.InvalidProjectContextId) 590BuildEventContext nodeBuildEventContext, 593BuildEventContext parentBuildEventContext, 598int evaluationId = BuildEventContext.InvalidEvaluationId, 599int projectContextId = BuildEventContext.InvalidProjectContextId) 603if (projectContextId == BuildEventContext.InvalidProjectContextId) 636BuildEventContext projectBuildEventContext = new BuildEventContext(submissionId, nodeBuildEventContext.NodeId, evaluationId, configurationId, projectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 670public void LogProjectFinished(BuildEventContext projectBuildEventContext, string projectFile, bool success) 701public BuildEventContext LogTargetStarted(BuildEventContext projectBuildEventContext, string targetName, string projectFile, string projectFileOfTargetElement, string parentTargetName, TargetBuiltReason buildReason) 704BuildEventContext targetBuildEventContext = new BuildEventContext( 710BuildEventContext.InvalidTaskId); 740public void LogTargetFinished(BuildEventContext targetBuildEventContext, string targetName, string projectFile, string projectFileOfTargetElement, bool success, IEnumerable<TaskItem> targetOutputs) 769public void LogTaskStarted(BuildEventContext taskBuildEventContext, string taskName, string projectFile, string projectFileOfTaskNode, string taskAssemblyLocation) 798public BuildEventContext LogTaskStarted2(BuildEventContext targetBuildEventContext, string taskName, string projectFile, string projectFileOfTaskNode, int line, int column, string taskAssemblyLocation) 801BuildEventContext taskBuildEventContext = new BuildEventContext( 836public void LogTaskFinished(BuildEventContext taskBuildEventContext, string taskName, string projectFile, string projectFileOfTaskNode, bool success) 864public void LogTelemetry(BuildEventContext buildEventContext, string eventName, IDictionary<string, string> properties) 886public void LogIncludeFile(BuildEventContext buildEventContext, string filePath)
BackEnd\Components\Logging\NodeLoggingContext.cs (5)
24: base(loggingService, new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId), inProcNode) 26Assumed.NotEqual(nodeId, BuildEventContext.InvalidNodeId, "Should not ever be given an invalid NodeId"); 89int evaluationId = configuration?.ProjectEvaluationId ?? BuildEventContext.InvalidEvaluationId;
BackEnd\Components\Logging\ProjectLoggingContext.cs (5)
60int evaluationId = BuildEventContext.InvalidEvaluationId) 128BuildEventContext parentBuildEventContext, 155private static BuildEventContext CreateInitialContext( 164BuildEventContext parentBuildEventContext, 195BuildEventContext parentBuildEventContext,
BackEnd\Components\Logging\ProjectTelemetry.cs (1)
123public void LogProjectTelemetry(ILoggingService loggingService, BuildEventContext buildEventContext)
BackEnd\Components\Logging\TargetLoggingContext.cs (3)
41private static BuildEventContext CreateInitialContext(ProjectLoggingContext projectLoggingContext, 45BuildEventContext buildEventContext = projectLoggingContext.LoggingService.LogTargetStarted( 55internal TargetLoggingContext(ILoggingService loggingService, BuildEventContext outOfProcContext)
BackEnd\Components\Logging\TaskLoggingContext.cs (3)
46private static BuildEventContext CreateInitialContext(TargetLoggingContext targetLoggingContext, 49BuildEventContext buildEventContext = targetLoggingContext.LoggingService.LogTaskStarted2( 87internal TaskLoggingContext(ILoggingService loggingService, BuildEventContext outOfProcContext)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (12)
207BuildEventContext buildEventContext = BuildEventContext.Invalid; 526_buildManager.PostCacheResult(cacheRequest, CacheResult.IndicateException(e), BuildEventContext.InvalidProjectContextId); 538BuildEventContext buildEventContext = _loggingService.CreateProjectCacheBuildEventContext( 581private async ValueTask<CacheResult> GetCacheResultAsync(BuildRequestData buildRequest, BuildRequestConfiguration buildRequestConfiguration, BuildEventContext buildEventContext, CancellationToken cancellationToken) 807BuildEventContext buildEventContext, 953BuildEventContext buildEventContext = BuildEventContext.Invalid; 1048private readonly BuildEventContext _buildEventContext; 1056BuildEventContext buildEventContext, 1103private readonly BuildEventContext _buildEventContext; 1111BuildEventContext buildEventContext,
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
282BuildEventContext buildEventContext,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
1423BuildEventContext projectBuildEventContext = _projectLoggingContext?.BuildEventContext; 1501BuildEventContext buildEventContext = _projectLoggingContext?.BuildEventContext; 1505if (project != null && buildEventContext != null && loggingService != null && buildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
56internal TargetUpToDateChecker(ProjectInstance project, ProjectTargetInstance targetToAnalyze, ILoggingService loggingServices, BuildEventContext buildEventContext) 1249private BuildEventContext _buildEventContext;
BackEnd\Components\Scheduler\Scheduler.cs (8)
617BuildEventContext context = new BuildEventContext(submissionId, 0, 0, 0, 0, 0); 2053BuildEventContext.InvalidProjectInstanceId, 2054BuildEventContext.InvalidProjectContextId, 2055BuildEventContext.InvalidTargetId, 2056BuildEventContext.InvalidTaskId), 2405private void WriteNodeUtilizationGraph(ILoggingService loggingService, BuildEventContext context, bool useConfigurations) 2539private void WriteNodeUtilizationGraphLine(ILoggingService loggingService, BuildEventContext context, int[] currentWork, int[] previousWork, DateTime currentEventTime, DateTime previousEventTime, int invalidWorkId, ref double accumulatedDuration) 2611private void WriteRecursiveSummary(ILoggingService loggingService, BuildEventContext context, int submissionId, SchedulableRequest request, int level, bool useConfigurations, bool isLastChild)
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
86public void WritePlan(int submissionId, ILoggingService loggingService, BuildEventContext buildEventContext) 135public void ReadPlan(int submissionId, ILoggingService loggingService, BuildEventContext buildEventContext)
BackEnd\Components\SdkResolution\SdkResolverRequest.cs (4)
17private BuildEventContext _buildEventContext; 33private SdkResolverRequest(int submissionId, string name, string version, string minimumVersion, BuildEventContext buildEventContext, ElementLocation elementLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio) 47public BuildEventContext BuildEventContext => _buildEventContext; 71public static SdkResolverRequest Create(int submissionId, SdkReference sdkReference, BuildEventContext buildEventContext, ElementLocation elementLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio)
BackEnd\Components\SdkResolution\SdkResolverService.cs (3)
146BuildEventContext.InvalidSubmissionId, // disables GetResolverState/SetResolverState 478if (submissionId != BuildEventContext.InvalidSubmissionId) 559if (submissionId != BuildEventContext.InvalidSubmissionId)
BackEnd\Node\OutOfProcNode.cs (1)
617_loggingContext?.BuildEventContext ?? BuildEventContext.Invalid, null, BuildEventFileInfo.Empty,
BackEnd\Shared\BuildRequest.cs (11)
77private BuildEventContext _parentBuildEventContext; 82private BuildEventContext _buildEventContext; 119_buildEventContext = BuildEventContext.Invalid; 151int projectContextId = BuildEventContext.InvalidProjectContextId) 159_parentBuildEventContext = BuildEventContext.Invalid; 182BuildEventContext parentBuildEventContext, 187int projectContextId = BuildEventContext.InvalidProjectContextId) 330public BuildEventContext ParentBuildEventContext 340public BuildEventContext BuildEventContext 350Assumed.Equal(_buildEventContext, BuildEventContext.Invalid, "The build event context is already set."); 360public BuildEventContext CurrentTaskContext { get; set; }
BackEnd\Shared\BuildRequestConfiguration.cs (6)
146private int _projectEvaluationId = BuildEventContext.InvalidEvaluationId; 525BuildEventContext.InvalidEvaluationId, 526BuildEventContext.InvalidProjectInstanceId, 527BuildEventContext.InvalidProjectContextId, 528BuildEventContext.InvalidTargetId, 529BuildEventContext.InvalidTaskId),
BackEnd\Shared\BuildResult.cs (1)
150private int _evaluationId = BuildEventContext.InvalidEvaluationId;
BackEnd\Shared\EventsCreatorHelper.cs (3)
12public static BuildMessageEventArgs CreateMessageEventFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object?[]? messageArgs) 29public static BuildErrorEventArgs CreateErrorEventFromText(BuildEventContext buildEventContext, string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message) 60public static BuildWarningEventArgs CreateWarningEventFromText(BuildEventContext buildEventContext, string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message)
BackEnd\Shared\TargetResult.cs (5)
55/// The (possibly null) <see cref="BuildEventContext"/> from the original target build 57private BuildEventContext _originalBuildEventContext; 77internal TargetResult(TaskItem[] items, WorkUnitResult result, BuildEventContext originalBuildEventContext = null, TargetSkipReason skipReason = TargetSkipReason.None) 200/// The (possibly null) <see cref="BuildEventContext"/> from the original target build 202internal BuildEventContext OriginalBuildEventContext => _originalBuildEventContext;
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (5)
211private BuildEventContext GetBuildEventContext(BuildEventArgs e) => e.BuildEventContext 213BuildEventContext.InvalidNodeId, 214BuildEventContext.InvalidTargetId, 215BuildEventContext.InvalidProjectContextId, 216BuildEventContext.InvalidTaskId);
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (5)
558private bool TryGetProjectFullPath(BuildEventContext buildEventContext, out string projectFullPath) 639public void EndProjectEvaluation(BuildEventContext buildEventContext) 645BuildEventContext buildEventContext = checkContext.BuildEventContext; 687eventArgs.BuildEventContext.EvaluationId == BuildEventContext.InvalidEvaluationId || 689eventArgs.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId ||
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
34public TaskKey(BuildEventContext context) 43/// Keeps track of in-flight tasks. Keyed by task ID as passed in <see cref="BuildEventContext.TaskId"/>.
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (4)
18private readonly BuildEventContext _eventContext; 22BuildEventContext eventContext) 28public BuildEventContext BuildEventContext => _eventContext; 47private void DispatchAsCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object?[]? messageArgs)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContextFactory.cs (1)
22public ICheckContext CreateCheckContext(BuildEventContext eventContext)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
20internal readonly struct CheckLoggingContext(ILoggingService loggingService, BuildEventContext eventContext) 23public BuildEventContext BuildEventContext => eventContext;
BuildCheck\Infrastructure\CheckContext\CheckLoggingContextFactory.cs (1)
15public ICheckContext CreateCheckContext(BuildEventContext eventContext)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (1)
18BuildEventContext BuildEventContext { get; }
BuildCheck\Infrastructure\CheckContext\ICheckContextFactory.cs (1)
10ICheckContext CreateCheckContext(BuildEventContext eventContext);
BuildCheck\Infrastructure\IBuildCheckManager.cs (1)
81void EndProjectEvaluation(BuildEventContext buildEventContext);
BuildCheck\Infrastructure\NullBuildCheckManager.cs (1)
73public void EndProjectEvaluation(BuildEventContext buildEventContext)
Construction\Solution\SolutionProjectGenerator.cs (4)
137private readonly BuildEventContext _projectBuildEventContext; 176BuildEventContext projectBuildEventContext, 215BuildEventContext projectBuildEventContext, 219int submissionId = BuildEventContext.InvalidSubmissionId)
Definition\Project.cs (12)
70private static readonly BuildEventContext s_buildEventContext = new BuildEventContext(0 /* node ID */, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 856/// This number corresponds to the <see cref="BuildEventContext.EvaluationId"/> and can be used to connect 2522/// This number corresponds to the <see cref="BuildEventContext.EvaluationId"/> and can be used to connect 3783BuildEventContext.InvalidSubmissionId, 3787Assumed.NotEqual(LastEvaluationId, BuildEventContext.InvalidEvaluationId, "Evaluation should produce an evaluation ID"); 3855Assumed.Equal(LastEvaluationId, BuildEventContext.InvalidEvaluationId, "This is the first evaluation therefore the last evaluation id is invalid"); 3859Assumed.NotEqual(LastEvaluationId, BuildEventContext.InvalidEvaluationId, "Last evaluation ID must be valid after the first evaluation"); 4210public int EvaluationId { get; set; } = BuildEventContext.InvalidEvaluationId; 4337EvaluationId = BuildEventContext.InvalidEvaluationId;
Definition\ProjectCollection.cs (8)
419BuildEventContext buildEventContext = new BuildEventContext(0 /* node ID */, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 1317var buildEventContext = new BuildEventContext(nodeId: 0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId);
Evaluation\Conditionals\Parser.cs (2)
54private BuildEventContext _logBuildEventContext; 59internal BuildEventContext LogBuildEventContext
Evaluation\ConditionEvaluator.cs (2)
11using BuildEventContext = Microsoft.Build.Framework.BuildEventContext; 261conditionParser.LogBuildEventContext = loggingContext?.BuildEventContext ?? BuildEventContext.Invalid;
Evaluation\Evaluator.cs (5)
231BuildEventContext buildEventContext, 330BuildEventContext buildEventContext, 392internal static List<I> CreateItemsFromInclude(string rootDirectory, ProjectItemElement itemElement, IItemFactory<I, I> itemFactory, string unevaluatedIncludeEscaped, Expander<P, I> expander, ILoggingService loggingService, string buildEventFileInfoFullPath, BuildEventContext buildEventContext) 648Assumed.Equal(_data.EvaluationId, BuildEventContext.InvalidEvaluationId, "There is no prior evaluation ID. The evaluator data needs to be reset at this point"); 676Assumed.NotEqual(_data.EvaluationId, BuildEventContext.InvalidEvaluationId, "Evaluation should produce an evaluation ID");
Instance\ProjectInstance.cs (29)
195private int _evaluationId = BuildEventContext.InvalidEvaluationId; 325BuildEventContext buildEventContext = new BuildEventContext(buildParameters.NodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 557BuildEventContext buildEventContext = new BuildEventContext(0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 632BuildEventContext buildEventContext = new BuildEventContext(0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 647BuildEventContext buildEventContext = new BuildEventContext(submissionId, 0, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId); 656internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId, ProjectLoadSettings? projectLoadSettings) 672internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId) 2692BuildEventContext projectBuildEventContext, 2755BuildEventContext projectBuildEventContext, 3051BuildEventContext projectBuildEventContext, 3106BuildEventContext projectBuildEventContext, 3250BuildEventContext buildEventContext, 3252int submissionId = BuildEventContext.InvalidSubmissionId, 3341Assumed.Equal(EvaluationId, BuildEventContext.InvalidEvaluationId, "Evaluation ID is invalid prior to evaluation"); 3367Assumed.NotEqual(EvaluationId, BuildEventContext.InvalidEvaluationId, "Evaluation should produce an evaluation ID"); 3633public GenericLoggingContext(ILoggingService loggingService, BuildEventContext eventContext)
Logging\BinaryLogger\BinaryLogger.cs (1)
490args.BuildEventContext = BuildEventContext.Invalid;
Logging\BinaryLogger\BuildEventArgsFields.cs (1)
20public BuildEventContext BuildEventContext { get; set; }
Logging\BinaryLogger\BuildEventArgsReader.cs (5)
567BuildEventContext? originalBuildEventContext = null; 738BuildEventContext? parentContext = null; 1523private BuildEventContext ReadBuildEventContext() 1533int evaluationId = BuildEventContext.InvalidEvaluationId; 1539var result = new BuildEventContext(
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
253buildMessageEventArgs.BuildEventContext = e.BuildEventContext ?? BuildEventContext.Invalid; 1176private void Write(BuildEventContext buildEventContext)
Logging\ParallelLogger\ParallelConsoleLogger.cs (27)
68_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 177private void ShownBuildEventContext(BuildEventContext e) 210_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 480BuildEventContext previousEntryPoint = null; 660private (int, int) GetEvaluationKey(BuildEventContext buildEventContext) 1174&& e.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId 1243private void DisplayDeferredStartedEvents(BuildEventContext e) 1291if (e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId && e.File == null) 1304if ((IsVerbosityAtLeast(LoggerVerbosity.Diagnostic) || _showEventId) && e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId) 1334BuildEventContext currentBuildEventContext = e.BuildEventContext; 1383private bool WriteTargetMessagePrefix(BuildEventArgs e, BuildEventContext context, DateTime timeStamp) 1429private void DisplayDeferredTargetStartedEvent(BuildEventContext e) 1504private void DisplayDeferredProjectStartedEvent(BuildEventContext e) 1602private void WriteLinePrefix(BuildEventContext e, DateTime eventTimeStamp, bool isMessagePrefix) 1646private ProjectFullKey GetFullProjectKey(BuildEventContext e) 1700private Dictionary<BuildEventContext, object> _startedEvent; 1713internal void AddEventStarted(string projectTargetNames, BuildEventContext buildEventContext, DateTime eventTimeStamp, IEqualityComparer<BuildEventContext> comparer) 1727? new Dictionary<BuildEventContext, object>() 1728: new Dictionary<BuildEventContext, object>(comparer); 1740internal void AddEventFinished(string projectTargetNames, BuildEventContext buildEventContext, DateTime eventTimeStamp) 1790private static readonly ComparerContextNodeId<BuildEventContext> s_compareContextNodeId = new ComparerContextNodeId<BuildEventContext>(); 1791private static readonly ComparerContextNodeIdTargetId<BuildEventContext> s_compareContextNodeIdTargetId = new ComparerContextNodeIdTargetId<BuildEventContext>(); 1792private BuildEventContext _lastDisplayedBuildEventContext; 1805private Dictionary<BuildEventContext, List<BuildMessageEventArgs>> _deferredMessages;
Logging\ParallelLogger\ParallelLoggerHelpers.cs (37)
20private Dictionary<BuildEventContext, ProjectStartedEventMinimumFields> _projectStartedEvents; 21private Dictionary<BuildEventContext, TargetStartedEventMinimumFields> _targetStartedEvents; 24private static ComparerContextNodeId<BuildEventContext> s_compareContextNodeId = new ComparerContextNodeId<BuildEventContext>(); 25private static ComparerContextNodeIdTargetId<BuildEventContext> s_compareContextNodeIdTargetId = new ComparerContextNodeIdTargetId<BuildEventContext>(); 32_projectStartedEvents = new Dictionary<BuildEventContext, ProjectStartedEventMinimumFields>(s_compareContextNodeId); 33_targetStartedEvents = new Dictionary<BuildEventContext, TargetStartedEventMinimumFields>(s_compareContextNodeIdTargetId); 94internal List<ProjectStartedEventMinimumFields> GetProjectCallStack(BuildEventContext e) 121internal void SetErrorWarningFlagOnCallStack(BuildEventContext e) 137internal string[] ProjectCallStackFromProject(BuildEventContext e) 139BuildEventContext currentKey = e; 169internal ProjectStartedEventMinimumFields GetProjectStartedEvent(BuildEventContext e) 178internal TargetStartedEventMinimumFields GetTargetStartedEvent(BuildEventContext e) 187internal void RemoveProjectStartedEvent(BuildEventContext e) 200internal void RemoveTargetStartedEvent(BuildEventContext e) 220BuildEventContext contextX = x as BuildEventContext; 221BuildEventContext contextY = y as BuildEventContext; 235BuildEventContext context = x as BuildEventContext; 249BuildEventContext contextX = x as BuildEventContext; 250BuildEventContext contextY = y as BuildEventContext; 265BuildEventContext context = x as BuildEventContext; 286private BuildEventContext _buildEventContext; 382internal BuildEventContext ProjectBuildEventContext 425private BuildEventContext _buildEventContext; 494internal BuildEventContext ProjectBuildEventContext 537private BuildEventContext _entryPointContext; 539private static ComparerContextNodeId<BuildEventContext> s_eventComparer = new ComparerContextNodeId<BuildEventContext>(); 543internal ErrorWarningSummaryDictionaryKey(BuildEventContext entryPoint, string targetName) 551internal BuildEventContext EntryPointContext
Logging\TerminalLogger\TerminalLogger.cs (14)
51public ProjectContext(BuildEventContext context) 62public EvalContext(BuildEventContext context) 780var buildEventContext = e.BuildEventContext; 898var buildEventContext = evalFinish.BuildEventContext; 1057var buildEventContext = e.BuildEventContext; 1088private void UpdateNodeStatus(BuildEventContext buildEventContext, TerminalNodeStatus? nodeStatus) 1123var buildEventContext = e.BuildEventContext; 1161var buildEventContext = e.BuildEventContext; 1179var buildEventContext = e.BuildEventContext; 1198var buildEventContext = e.BuildEventContext; 1357BuildEventContext? buildEventContext = e.BuildEventContext; 1446BuildEventContext? buildEventContext = e.BuildEventContext; 1605/// Returns the <see cref="_nodes"/> index corresponding to the given <see cref="BuildEventContext"/>. 1607private int NodeIndexForContext(BuildEventContext context)
Utilities\EngineFileUtilities.cs (3)
111BuildEventContext? buildEventContext = null, 183BuildEventContext? buildEventContext = null, 428private static void LogDriveEnumerationWarningWithLoggingService(ILoggingService loggingService, IElementLocation? includeLocation, BuildEventContext? buildEventContext, string? buildEventFileInfoFullPath, string filespecUnescaped)
Microsoft.Build.Framework (29)
BinaryReaderExtensions.cs (3)
60public static BuildEventContext? ReadOptionalBuildEventContext(this BinaryReader reader) 71public static BuildEventContext ReadBuildEventContext(this BinaryReader reader) 81var buildEventContext = new BuildEventContext(submissionId, nodeId, evaluationId, projectInstanceId, projectContextId, targetId, taskId);
BinaryTranslator.cs (2)
480public void Translate(ref BuildEventContext value) 1300public void Translate(ref BuildEventContext value)
BinaryWriterExtensions.cs (2)
69public static void WriteOptionalBuildEventContext(this BinaryWriter writer, BuildEventContext? context) 83public static void WriteBuildEventContext(this BinaryWriter writer, BuildEventContext context)
BuildEventArgs.cs (3)
56private BuildEventContext? buildEventContext; 171public BuildEventContext? BuildEventContext 275buildEventContext = BuildEventContext.Invalid;
BuildEventContext.cs (10)
118internal BuildEventContext WithInstanceIdAndContextId(int projectInstanceId, int projectContextId) 124internal BuildEventContext WithInstanceIdAndContextId(BuildEventContext other) 134public static BuildEventContext Invalid { get; } = new BuildEventContext(InvalidNodeId, InvalidTargetId, InvalidProjectContextId, InvalidTaskId); 259return InternalEquals((BuildEventContext)obj); 268public static bool operator ==(BuildEventContext? left, BuildEventContext? right) 290public static bool operator !=(BuildEventContext? left, BuildEventContext? right) 300private bool InternalEquals(BuildEventContext buildEventContext)
ITranslator.cs (1)
278void Translate(ref BuildEventContext value);
ProjectStartedEventArgs.cs (6)
84BuildEventContext? parentBuildEventContext) 111BuildEventContext? parentBuildEventContext, 168BuildEventContext? parentBuildEventContext, 195private BuildEventContext? parentProjectBuildEventContext; 200public BuildEventContext? ParentProjectBuildEventContext 531parentProjectBuildEventContext = BuildEventContext.Invalid;
TargetSkippedEventArgs.cs (2)
110/// <see cref="BuildEventContext"/> describing the original build of the target, or null if not available. 112public BuildEventContext OriginalBuildEventContext { get; set; }
Microsoft.Build.Utilities.Core (4)
MuxLogger.cs (4)
370private BuildEventContext _firstProjectStartedEventContext; 678buildEvent.BuildEventContext.SubmissionId != BuildEventContext.InvalidSubmissionId)) 721buildEvent.BuildEventContext.SubmissionId != BuildEventContext.InvalidSubmissionId)) 1216buildEvent.BuildEventContext.SubmissionId == BuildEventContext.InvalidSubmissionId && eventIsErrorOrWarning)))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (2)
15/// Maps a build's <see cref="MSB.Framework.BuildEventContext.SubmissionId"/> to the 46private void AddLogItem(DiagnosticLogItemKind kind, MSB.Framework.BuildEventContext? buildEventContext, string? projectFile, string? message, string? file, int lineNumber, int columnNumber)
MSBuild (1)
XMake.cs (1)
2148BuildEventContext = BuildEventContext.Invalid,