36 references to InvalidTaskId
Microsoft.Build (27)
BackEnd\BuildManager\BuildManager.cs (9)
1385
BuildEventContext.
InvalidTaskId
);
1473
buildEventContext = new BuildEventContext(request.SubmissionId, 0, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
1735
BuildEventContext buildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
1844
BuildEventContext projectBuildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
1860
var buildEventContext = new BuildEventContext(submission.SubmissionId, 1, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
1921
BuildEventContext.
InvalidTaskId
),
2438
: new BuildEventContext(result.SubmissionId, node, configuration.Project?.EvaluationId ?? BuildEventContext.InvalidEvaluationId, configuration.ConfigurationId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
2477
BuildEventContext buildEventContext = new BuildEventContext(submission.SubmissionId, BuildEventContext.InvalidNodeId, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
2633
BuildEventContext buildEventContext = new BuildEventContext(0, Scheduler.VirtualNode, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
292
BuildEventContext = new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
405
=> new BuildEventContext(submissionId, nodeId, NextEvaluationId, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
423
return new BuildEventContext(submissionId, nodeId, evaluationId, projectInstanceId, projectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
572
BuildEventContext projectBuildEventContext = new BuildEventContext(submissionId, nodeBuildEventContext.NodeId, evaluationId, configurationId, projectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
645
BuildEventContext.
InvalidTaskId
);
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
24
: base(loggingService, new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
), inProcNode)
BackEnd\Components\Scheduler\Scheduler.cs (1)
2025
BuildEventContext.
InvalidTaskId
);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
492
BuildEventContext.
InvalidTaskId
),
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
188
BuildEventContext.
InvalidTaskId
);
Definition\Project.cs (1)
64
private static readonly BuildEventContext s_buildEventContext = new BuildEventContext(0 /* node ID */, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
Definition\ProjectCollection.cs (2)
359
BuildEventContext buildEventContext = new BuildEventContext(0 /* node ID */, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
1202
var buildEventContext = new BuildEventContext(0 /* node ID */, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
Instance\ProjectInstance.cs (4)
309
BuildEventContext buildEventContext = new BuildEventContext(buildParameters.NodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
515
BuildEventContext buildEventContext = new BuildEventContext(0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
589
BuildEventContext buildEventContext = new BuildEventContext(0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
604
BuildEventContext buildEventContext = new BuildEventContext(submissionId, 0, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidTaskId
);
Logging\ParallelLogger\ParallelConsoleLogger.cs (2)
1269
if (e.BuildEventContext.TaskId != BuildEventContext.
InvalidTaskId
&& e.File == null)
1282
if ((IsVerbosityAtLeast(LoggerVerbosity.Diagnostic) || _showEventId) && e.BuildEventContext.TaskId != BuildEventContext.
InvalidTaskId
)
Microsoft.Build.Engine.UnitTests (8)
BackEnd\LoggingServicesLogMethod_Tests.cs (4)
875
BuildEventContext nodeBuildEventContext = new BuildEventContext(Scheduler.InProcNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
910
BuildEventContext nodeBuildEventContext = new BuildEventContext(Scheduler.InProcNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
951
BuildEventContext nodeBuildEventContext = new BuildEventContext(NodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
1426
new BuildEventContext(1, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
),
ConsoleLogger_Tests.cs (1)
2135
ProjectStartedEventArgs project1Started = new ProjectStartedEventArgs(1, null, null, "p", "t", null, null, new BuildEventContext(BuildEventContext.InvalidNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
));
Graph\IsolateProjects_Tests.cs (1)
219
logger.Errors.First().BuildEventContext.TaskId.ShouldNotBe(BuildEventContext.
InvalidTaskId
);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
404
results["1"].Logger.Errors.First().BuildEventContext.TaskId.ShouldNotBe(BuildEventContext.
InvalidTaskId
);
Instance\ProjectInstance_Internal_Tests.cs (1)
861
BuildEventContext buildEventContext = new BuildEventContext(0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.
InvalidTaskId
);
Microsoft.Build.Framework (1)
BuildEventContext.cs (1)
134
public static BuildEventContext Invalid { get; } = new BuildEventContext(InvalidNodeId, InvalidTargetId, InvalidProjectContextId,
InvalidTaskId
);