71 references to InvalidProjectContextId
Microsoft.Build (39)
BackEnd\BuildManager\BuildManager.cs (10)
1383
BuildEventContext.
InvalidProjectContextId
,
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);
1757
private static void AddBuildRequestToSubmission(BuildSubmission submission, int configurationId, int projectContextId = BuildEventContext.
InvalidProjectContextId
)
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);
1919
BuildEventContext.
InvalidProjectContextId
,
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\ILoggingService.cs (2)
556
int projectContextId = BuildEventContext.
InvalidProjectContextId
);
570
int projectContextId = BuildEventContext.
InvalidProjectContextId
);
BackEnd\Components\Logging\LoggingService.cs (4)
1011
if (warning.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.
InvalidProjectContextId
)
1253
if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectContextId != BuildEventContext.
InvalidProjectContextId
)
1257
else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.BuildEventContext != null && errorEvent.BuildEventContext.ProjectContextId != BuildEventContext.
InvalidProjectContextId
)
1261
else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.BuildEventContext != null && messageEvent.BuildEventContext.ProjectContextId != BuildEventContext.
InvalidProjectContextId
)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (7)
135
if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.
InvalidProjectContextId
)
175
if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.
InvalidProjectContextId
)
327
if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.
InvalidProjectContextId
)
405
=> new BuildEventContext(submissionId, nodeId, NextEvaluationId, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.
InvalidProjectContextId
, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId);
499
int projectContextId = BuildEventContext.
InvalidProjectContextId
)
532
int projectContextId = BuildEventContext.
InvalidProjectContextId
)
536
if (projectContextId == BuildEventContext.
InvalidProjectContextId
)
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
24
: base(loggingService, new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.
InvalidProjectContextId
, BuildEventContext.InvalidTaskId), inProcNode)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
446
_buildManager.PostCacheResult(cacheRequest, CacheResult.IndicateException(e), BuildEventContext.
InvalidProjectContextId
);
BackEnd\Components\Scheduler\Scheduler.cs (1)
2023
BuildEventContext.
InvalidProjectContextId
,
BackEnd\Shared\BuildRequest.cs (2)
148
int projectContextId = BuildEventContext.
InvalidProjectContextId
)
184
int projectContextId = BuildEventContext.
InvalidProjectContextId
)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
490
BuildEventContext.
InvalidProjectContextId
,
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
187
BuildEventContext.
InvalidProjectContextId
,
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 (1)
1156
&& e.BuildEventContext.ProjectContextId != BuildEventContext.
InvalidProjectContextId
Microsoft.Build.Engine.UnitTests (31)
BackEnd\LoggingService_Tests.cs (2)
796
warningArgs.BuildEventContext = new BuildEventContext(1, 2, BuildEventContext.
InvalidProjectContextId
, BuildEventContext.
InvalidProjectContextId
, 5, 6);
BackEnd\LoggingServicesLogMethod_Tests.cs (7)
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);
873
projectCacheBuildEventContext.ProjectContextId.ShouldNotBe(BuildEventContext.
InvalidProjectContextId
);
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 (2)
548
int projectContextId = BuildEventContext.
InvalidProjectContextId
)
566
int projectContextId = BuildEventContext.
InvalidProjectContextId
)
BackEnd\SdkResolverService_Tests.cs (1)
41
new BuildEventContext(0, 0, BuildEventContext.
InvalidProjectContextId
, 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 (1)
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)));
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));
Construction\SolutionFilter_Tests.cs (1)
30
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\Expander_Tests.cs (2)
5137
new BuildEventContext(0, 0, BuildEventContext.
InvalidProjectContextId
, 0, 0));
5174
new BuildEventContext(0, 0, BuildEventContext.
InvalidProjectContextId
, 0, 0));
Graph\IsolateProjects_Tests.cs (1)
217
logger.Errors.First().BuildEventContext.ProjectContextId.ShouldNotBe(BuildEventContext.
InvalidProjectContextId
);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
402
results["1"].Logger.Errors.First().BuildEventContext.ProjectContextId.ShouldNotBe(BuildEventContext.
InvalidProjectContextId
);
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);