125 references to BuildEventContext
Microsoft.Build (9)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
292
BuildEventContext = new
BuildEventContext
(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId)
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
24
: base(loggingService, new
BuildEventContext
(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId), inProcNode)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
185
?? new
BuildEventContext
(
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 (3)
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);
Microsoft.Build.CommandLine.UnitTests (1)
TerminalLogger_Tests.cs (1)
121
return new
BuildEventContext
(1, 1, 1, 1);
Microsoft.Build.Engine.UnitTests (74)
BackEnd\BatchingEngine_Tests.cs (6)
60
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
77
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4))));
149
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
187
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
212
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
242
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
BackEnd\LoggingServicesLogMethod_Tests.cs (6)
37
private static BuildEventContext s_buildEventContext = new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, 4);
42
private static BuildEventContext s_targetBuildEventContext = new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, -1);
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),
BackEnd\MockLoggingService.cs (3)
550
return new
BuildEventContext
(0, 0, 0, 0);
599
return new
BuildEventContext
(0, 0, 0, 0);
637
return new
BuildEventContext
(0, 0, 0, 0);
BackEnd\TaskExecutionHost_Tests.cs (3)
984
TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new
BuildEventContext
(1, 1, BuildEventContext.InvalidProjectContextId, 1));
1012
TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new
BuildEventContext
(1, 1, BuildEventContext.InvalidProjectContextId, 1));
1237
TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new
BuildEventContext
(1, 1, BuildEventContext.InvalidProjectContextId, 1));
BackEnd\TaskRegistry_Tests.cs (3)
72
private readonly BuildEventContext _loggerContext = new
BuildEventContext
(2, 2, 2, 2);
1247
InvalidProjectFileException exception = Should.Throw<InvalidProjectFileException>(() => registry.GetRegisteredTask("Task1", "none", null, false, new TargetLoggingContext(_loggingService, new
BuildEventContext
(1, 1, BuildEventContext.InvalidProjectContextId, 1)), ElementLocation.Create("none", 1, 2)));
2256
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
BuildEventArgsSerialization_Tests.cs (1)
266
args.BuildEventContext = new
BuildEventContext
(4, 5, 6, 7);
ConfigureableForwardingLogger_Tests.cs (1)
52
BuildEventContext context = new
BuildEventContext
(1, 2, 3, 4);
ConsoleLogger_Tests.cs (33)
490
BuildEventContext buildEventContext = new
BuildEventContext
(1, 2, 3, 4);
610
BuildEventContext = new
BuildEventContext
(1, 2, 3, 4)
680
buildEventArgs.BuildEventContext = new
BuildEventContext
(1, 2, 3, 4);
721
BuildEventContext buildEventContext = new
BuildEventContext
(1, 2, 3, 4);
727
ProjectStartedEventArgs pse = new ProjectStartedEventArgs(1, "ps", null, "fname", "", null, null, new
BuildEventContext
(1, 1, 1, 1));
774
BuildEventContext buildEventContext = new
BuildEventContext
(1, 2, 3, 4);
780
ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new
BuildEventContext
(1, 2, 3, 4));
850
BuildEventContext buildEventContext = new
BuildEventContext
(1, 2, 3, 4);
856
ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new
BuildEventContext
(1, 2, 3, 4));
927
BuildEventContext buildEventContext = new
BuildEventContext
(1, 2, 3, 4);
933
ProjectStartedEventArgs pse = new ProjectStartedEventArgs(1, "ps", null, "fname", "", null, null, new
BuildEventContext
(1, 1, 1, 1));
983
BuildEventContext buildEventContext = new
BuildEventContext
(1, 2, 3, 4);
989
ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new
BuildEventContext
(1, 2, 3, 4));
1058
BuildEventContext buildEventContext = new
BuildEventContext
(1, 2, 3, 4);
1064
ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new
BuildEventContext
(1, 2, 3, 4));
1134
BuildEventContext buildEventContext = new
BuildEventContext
(1, 2, 3, 4);
1140
ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new
BuildEventContext
(1, 2, 3, 4));
1393
c.BuildEventContext = new
BuildEventContext
(1, 1, 1, 1);
1441
buildEvent.BuildEventContext = new
BuildEventContext
(1, 2, 3, 4);
1697
buildEvent.BuildEventContext = new
BuildEventContext
(1, 2, 3, 4);
1775
buildEvent.BuildEventContext = new
BuildEventContext
(1, 2, 3, 4);
1809
buildEvent.BuildEventContext = new
BuildEventContext
(1, 2, 3, 4);
2135
ProjectStartedEventArgs project1Started = new ProjectStartedEventArgs(1, null, null, "p", "t", null, null, new
BuildEventContext
(BuildEventContext.InvalidNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId));
2136
project1Started.BuildEventContext = new
BuildEventContext
(1, 1, 1, 1);
2164
project2Started.BuildEventContext = new
BuildEventContext
(2, 2, 2, 2);
2250
messsage1.BuildEventContext = new
BuildEventContext
(1, 1, 1, 1);
2264
messsage2.BuildEventContext = new
BuildEventContext
(1, 1, 1, 1);
2278
messsage2.BuildEventContext = new
BuildEventContext
(1, 1, 1, 1);
2310
BuildEventContext context = new
BuildEventContext
(1, 1, 1, 1);
2311
BuildEventContext context2 = new
BuildEventContext
(2, 2, 2, 2);
2340
BuildEventContext context = new
BuildEventContext
(1, 1, 1, 1);
2341
BuildEventContext context2 = new
BuildEventContext
(2, 2, 2, 2);
2409
BuildEventContext context = new
BuildEventContext
(1, 1, 1, 1);
Construction\SolutionFilter_Tests.cs (1)
31
private static readonly BuildEventContext _buildEventContext = new
BuildEventContext
(0, 0, BuildEventContext.InvalidProjectContextId, 0);
Construction\SolutionProjectGenerator_Tests.cs (1)
39
private static readonly BuildEventContext _buildEventContext = new
BuildEventContext
(0, 0, BuildEventContext.InvalidProjectContextId, 0);
Definition\ToolsVersion_Tests.cs (7)
40
LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, 4));
86
LoggingContext loggingContext = new TestLoggingContext(service, new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, 4));
106
LoggingContext loggingContext = new TestLoggingContext(service, new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, 4));
125
LoggingContext loggingContext = new TestLoggingContext(service, new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, 4));
145
LoggingContext loggingContext = new TestLoggingContext(service, new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, 4));
169
LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, 4));
936
LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new
BuildEventContext
(1, 2, BuildEventContext.InvalidProjectContextId, 4));
Evaluation\Evaluator_Tests.cs (2)
4477
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
4495
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4))));
Evaluation\Expander_Tests.cs (4)
100
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
811
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
2330
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4))));
2340
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4))));
Evaluation\ItemSpec_Tests.cs (1)
96
new TestLoggingContext(null!, new
BuildEventContext
(1, 2, 3, 4)));
Evaluation\UsedUninitializedProperties_Tests.cs (1)
18
PropertiesUseTracker props = new(TestLoggingContext.CreateTestContext(new
BuildEventContext
(1, 2, 3, 4)));
Instance\ProjectInstance_Internal_Tests.cs (1)
861
BuildEventContext buildEventContext = new
BuildEventContext
(0, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId);
Microsoft.Build.Framework (3)
BuildEventArgs.cs (1)
248
buildEventContext = new
BuildEventContext
(nodeId, targetId, projectContextId, taskId);
BuildEventContext.cs (1)
134
public static BuildEventContext Invalid { get; } = new
BuildEventContext
(InvalidNodeId, InvalidTargetId, InvalidProjectContextId, InvalidTaskId);
ProjectStartedEventArgs.cs (1)
436
parentProjectBuildEventContext = new
BuildEventContext
(nodeId, targetId, projectContextId, taskId);
Microsoft.Build.Framework.UnitTests (38)
CustomEventArgSerialization_Tests.cs (36)
62
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
79
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
104
newGenericEvent.BuildEventContext = new
BuildEventContext
(1, 3, 4, 5);
128
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
145
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
179
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
213
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
228
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
261
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
279
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
331
messageEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
348
messageEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
384
criticalMessageEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
402
criticalMessageEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
438
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
455
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
489
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
523
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
541
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
589
ProjectStartedEventArgs genericEvent = new ProjectStartedEventArgs(8, "Message", "HelpKeyword", "ProjectFile", null, propertyList, null, new
BuildEventContext
(7, 8, 9, 10));
590
genericEvent.BuildEventContext = new
BuildEventContext
(7, 8, 9, 10);
653
ProjectStartedEventArgs genericEvent = new ProjectStartedEventArgs(8, "Message", "HelpKeyword", "ProjectFile", null, null, null, new
BuildEventContext
(7, 8, 9, 10));
654
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
671
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
721
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
739
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
787
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
804
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
851
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
868
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
916
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
934
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
984
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
997
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
1014
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
1027
genericEvent.BuildEventContext = new
BuildEventContext
(5, 4, 3, 2);
EventArgs_Tests.cs (1)
34
s_baseGenericEvent.BuildEventContext = new
BuildEventContext
(9, 8, 7, 6);
ProjectStartedEventArgs_Tests.cs (1)
30
BuildEventContext parentBuildEventContext = new
BuildEventContext
(2, 3, 4, 5);