109 references to Invalid
Microsoft.Build (20)
BackEnd\BuildManager\BuildManager.cs (10)
572
loggingService.LogComment(buildEventContext: BuildEventContext.
Invalid
, MessageImportance.Normal, "BuildCheckEnabled");
641
loggingService.LogComment(BuildEventContext.
Invalid
, MessageImportance.Normal, "UsingInputCaches", string.Join(";", _buildParameters.InputResultsCacheFiles));
646
loggingService.LogComment(BuildEventContext.
Invalid
, MessageImportance.Normal, "WritingToOutputCache", _buildParameters.OutputResultsCacheFile);
1471
if (buildEventContext == BuildEventContext.
Invalid
)
1765
parentBuildEventContext: BuildEventContext.
Invalid
,
2488
loggingService?.LogError(BuildEventContext.
Invalid
, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, shutdownPacket.Exception.ToString());
3058
loggingService.LogCommentFromText(BuildEventContext.
Invalid
, message.Importance, message.Text);
3063
loggingService.LogIncludeFile(BuildEventContext.
Invalid
, message.FilePath);
3219
loggingService?.LogCommentFromText(BuildEventContext.
Invalid
, MessageImportance.High, message);
3227
BuildEventContext.
Invalid
,
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
862
BuildEventContext.
Invalid
,
BackEnd\Components\Logging\LoggingService.cs (1)
990
BuildEventContext buildEventContext = buildEvent?.BuildEventContext ?? BuildEventContext.
Invalid
;
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
200
BuildEventContext buildEventContext = BuildEventContext.
Invalid
;
811
BuildEventContext buildEventContext = BuildEventContext.
Invalid
;
BackEnd\Shared\BuildRequest.cs (3)
116
_buildEventContext = BuildEventContext.
Invalid
;
156
_parentBuildEventContext = BuildEventContext.
Invalid
;
347
ErrorUtilities.VerifyThrow(_buildEventContext == BuildEventContext.
Invalid
, "The build event context is already set.");
Evaluation\ConditionEvaluator.cs (1)
260
conditionParser.LogBuildEventContext = loggingContext?.BuildEventContext ?? BuildEventContext.
Invalid
;
Logging\BinaryLogger\BinaryLogger.cs (1)
306
args.BuildEventContext = BuildEventContext.
Invalid
;
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
252
buildMessageEventArgs.BuildEventContext = e.BuildEventContext ?? BuildEventContext.
Invalid
;
Microsoft.Build.Engine.UnitTests (87)
BackEnd\BuildRequest_Tests.cs (3)
165
BuildEventContext.
Invalid
,
192
BuildEventContext.
Invalid
,
201
return new BuildRequest(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.
Invalid
, null);
BackEnd\BuildRequestEngine_Tests.cs (1)
513
BuildRequest request = new BuildRequest(1 /* submission id */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.
Invalid
, null);
BackEnd\BuildRequestEntry_Tests.cs (1)
279
return new BuildRequest(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.
Invalid
, null);
BackEnd\BuildResult_Tests.cs (1)
349
return new BuildRequest(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.
Invalid
, null);
BackEnd\CacheAggregator_Tests.cs (11)
82
var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.
Invalid
, null));
103
var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.
Invalid
, null));
108
var buildResult2 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.
Invalid
, null));
132
var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.
Invalid
, null));
154
var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.
Invalid
, null));
162
var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.
Invalid
, null));
198
var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.
Invalid
, null));
217
var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.
Invalid
, null));
219
var buildResult12 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "c", "d" }, null, BuildEventContext.
Invalid
, null));
229
var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.
Invalid
, null));
231
var buildResult22 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "g", "h" }, null, BuildEventContext.
Invalid
, null));
BackEnd\CacheSerialization_Tests.cs (3)
44
var request1 = new BuildRequest(1, 0, 1, new string[] { "target1", "target2", "target3" }, null, BuildEventContext.
Invalid
, null);
45
var request2 = new BuildRequest(2, 0, 2, new string[] { "target2" }, null, BuildEventContext.
Invalid
, null);
46
var request3 = new BuildRequest(3, 0, 3, new string[] { "target3" }, null, BuildEventContext.
Invalid
, null);
BackEnd\IntrinsicTask_Tests.cs (2)
3958
BuildRequestEntry entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.
Invalid
, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
3993
var entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.
Invalid
, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\LoggingService_Tests.cs (1)
978
BuildEventContext projectStarted = loggingService.LogProjectStarted(buildEventContext, 0, buildEventContext.ProjectInstanceId, BuildEventContext.
Invalid
, "projectFile", "Build", Enumerable.Empty<DictionaryEntry>(), Enumerable.Empty<DictionaryEntry>());
BackEnd\LoggingServicesLogMethod_Tests.cs (3)
880
parentBuildEventContext: BuildEventContext.
Invalid
,
917
parentBuildEventContext: BuildEventContext.
Invalid
,
956
parentBuildEventContext: BuildEventContext.
Invalid
,
BackEnd\RequestBuilder_Tests.cs (1)
318
return new BuildRequest(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.
Invalid
, null);
BackEnd\ResultsCache_Tests.cs (22)
36
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.
Invalid
, null); BuildResult result = new BuildResult(request);
49
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.
Invalid
, null);
54
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "otherTarget" }, null, BuildEventContext.
Invalid
, null);
69
BuildRequest request = new BuildRequest(submissionId: 1, nodeRequestId: 0, configurationId: 1, new string[1] { "testTarget" }, null, BuildEventContext.
Invalid
, null);
74
request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "otherTarget" }, null, BuildEventContext.
Invalid
, null);
79
BuildResult result2 = new BuildResult(new BuildRequest(submissionId: 1, nodeRequestId: 0, configurationId: 2, new string[1] { "testTarget" }, null, BuildEventContext.
Invalid
, null));
97
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.
Invalid
, null);
106
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[2] { "testTarget", "testTarget2" }, null, BuildEventContext.
Invalid
, null);
125
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "testTarget" }, null, BuildEventContext.
Invalid
, null);
144
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[2] { "testTarget", "testTarget2" }, null, BuildEventContext.
Invalid
, null);
156
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.
Invalid
, null);
179
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.
Invalid
, null);
209
BuildEventContext.
Invalid
/* parentBuildEventContext */,
219
BuildEventContext.
Invalid
/* parentBuildEventContext */,
229
BuildEventContext.
Invalid
/* parentBuildEventContext */,
282
BuildEventContext.
Invalid
/* parentBuildEventContext */,
297
BuildEventContext.
Invalid
/* parentBuildEventContext */,
348
BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget2" }, null, BuildEventContext.
Invalid
, null);
364
var request1 = new BuildRequest(1, 2, 3, new[] { "target1" }, null, BuildEventContext.
Invalid
, null);
365
var request2 = new BuildRequest(4, 5, 6, new[] { "target2" }, null, BuildEventContext.
Invalid
, null);
410
var request1 = new BuildRequest(1, 2, 3, new[] { "target1" }, null, BuildEventContext.
Invalid
, null);
411
var request2 = new BuildRequest(4, 5, 6, new[] { "target2" }, null, BuildEventContext.
Invalid
, null);
BackEnd\Scheduler_Tests.cs (1)
828
BuildEventContext.
Invalid
,
BackEnd\TargetBuilder_Tests.cs (1)
1562
return new BuildRequest(1 /* submissionId */, _nodeRequestId++, configurationId, targets.Select(t => t.name).ToArray(), null, BuildEventContext.
Invalid
, null, flags);
BackEnd\TargetEntry_Tests.cs (1)
1015
return new BuildRequest(1 /* submissionId */, _nodeRequestId++, configurationId, targets, null, BuildEventContext.
Invalid
, null);
BackEnd\TargetUpToDateChecker_Tests.cs (1)
614
TargetUpToDateChecker analyzer = new TargetUpToDateChecker(p, p.Targets["Build"], _mockHost, BuildEventContext.
Invalid
);
BackEnd\TaskHost_Tests.cs (2)
75
BuildRequest buildRequest = new BuildRequest(1 /* submissionId */, 1, 1, new List<string>(), null, BuildEventContext.
Invalid
, null);
88
_taskHost.LoggingContext = new TaskLoggingContext(_loggingService, BuildEventContext.
Invalid
);
BuildEventArgsDataEnumeration.cs (3)
27
BuildEventContext = BuildEventContext.
Invalid
,
54
BuildEventContext = BuildEventContext.
Invalid
,
92
BuildEventContext = BuildEventContext.
Invalid
,
BuildEventArgsSerialization_Tests.cs (6)
615
desArgs.BuildEventContext.ShouldBe(BuildEventContext.
Invalid
);
750
BuildEventContext = BuildEventContext.
Invalid
,
767
BuildEventContext = BuildEventContext.
Invalid
,
790
BuildEventContext = BuildEventContext.
Invalid
,
823
BuildEventContext = BuildEventContext.
Invalid
,
846
BuildEventContext = BuildEventContext.
Invalid
,
Construction\SolutionProjectGenerator_Tests.cs (19)
1527
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService());
1607
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService());
1639
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService());
1900
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService());
1957
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService());
2038
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, globalProperties, null, BuildEventContext.
Invalid
, CreateMockLoggingService());
2307
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, globalProperties, null, BuildEventContext.
Invalid
, collection.LoggingService);
2353
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), new List<string> { "One" });
2357
instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), new List<string> { "Two", "Three", "Four" });
2363
instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), new List<string> { "Build" });
2367
instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), new List<string> { "Five", "Rebuild" });
2372
instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), new List<string> { "My_Project:Six" });
2408
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), null);
2488
instances = SolutionProjectGenerator.Generate(solution, globalProperties, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), targetNames);
2495
instances = SolutionProjectGenerator.Generate(solution, globalProperties, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), new[] { "Foo" });
2543
ProjectInstance projectInstance = SolutionProjectGenerator.Generate(solutionFile, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), new[] { "MyTarget" }).FirstOrDefault();
2604
ProjectInstance projectInstance = SolutionProjectGenerator.Generate(solutionFile, null, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), targetsToBuild).FirstOrDefault();
2721
ProjectInstance projectInstance = SolutionProjectGenerator.Generate(solutionFile, globalProperties, null, BuildEventContext.
Invalid
, CreateMockLoggingService(), new[] { "Build" }).FirstOrDefault();
2831
ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, globalProperties, toolsVersion, BuildEventContext.
Invalid
, CreateMockLoggingService());
Definition\ToolsVersion_Tests.cs (3)
195
LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.
Invalid
);
220
LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.
Invalid
);
241
LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.
Invalid
);
Graph\IsolateProjects_Tests.cs (1)
213
logger.Errors.First().BuildEventContext.ShouldNotBe(BuildEventContext.
Invalid
);
Microsoft.Build.Framework (2)
BuildEventArgs.cs (1)
276
buildEventContext = BuildEventContext.
Invalid
;
ProjectStartedEventArgs.cs (1)
532
parentProjectBuildEventContext = BuildEventContext.
Invalid
;