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