1 write to ProjectNodes
Microsoft.Build (1)
Graph\ProjectGraph.cs (1)
445
ProjectNodes
= graphBuilder.ProjectNodes;
113 references to ProjectNodes
Microsoft.Build (9)
BackEnd\BuildManager\BuildManager.cs (3)
1991
var blockedNodes = new HashSet<ProjectGraphNode>(projectGraph.
ProjectNodes
);
1992
var finishedNodes = new HashSet<ProjectGraphNode>(projectGraph.
ProjectNodes
.Count);
1994
var resultsPerNode = new Dictionary<ProjectGraphNode, BuildResult>(projectGraph.
ProjectNodes
.Count);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
110
projectGraph.
ProjectNodes
,
Graph\ProjectGraph.cs (5)
449
_projectNodesTopologicallySorted = new Lazy<IReadOnlyCollection<ProjectGraphNode>>(() => TopologicalSort(GraphRoots,
ProjectNodes
));
486
ProjectNodes
.Count,
513
foreach (var node in
ProjectNodes
)
556
return $"#roots={GraphRoots.Count}, #nodes={
ProjectNodes
.Count}, #entryPoints={EntryPointNodes.Count}";
614
var targetLists =
ProjectNodes
.ToDictionary(node => node, node => ImmutableList<string>.Empty);
Microsoft.Build.Engine.UnitTests (104)
BackEnd\BuildManager_Tests.cs (6)
4204
graph.
ProjectNodes
.Count.ShouldBe(2);
4211
var node1 = graph.
ProjectNodes
.First(node => node.ProjectInstance.FullPath.Equals(project1, StringComparison.OrdinalIgnoreCase));
4215
var node2 = graph.
ProjectNodes
.First(node => node.ProjectInstance.FullPath.Equals(project2, StringComparison.OrdinalIgnoreCase));
4289
graph.
ProjectNodes
.Count.ShouldBe(2);
4296
var node1 = graph.
ProjectNodes
.First(node => node.ProjectInstance.FullPath.Equals(project1, StringComparison.OrdinalIgnoreCase));
4300
var node2 = graph.
ProjectNodes
.First(node => node.ProjectInstance.FullPath.Equals(project2, StringComparison.OrdinalIgnoreCase));
Construction\SolutionFilter_Tests.cs (2)
134
graphFromSolution.
ProjectNodes
.ShouldHaveSingleItem();
135
graphFromSolution.
ProjectNodes
.Single().ProjectInstance.ProjectFileLocation.LocationString.ShouldBe(simpleProject.Path);
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
184
graph.
ProjectNodes
.Count.ShouldBe(3);
Graph\GraphLoadedFromSolution_tests.cs (9)
212
var projectSpecificConfigurations = graph.
ProjectNodes
.ToDictionary(
256
graph.
ProjectNodes
.ShouldBeEmpty();
690
graph.
ProjectNodes
.Count.ShouldBe(graph.
ProjectNodes
.Select(GetProjectPath).Distinct().Count());
694
.ShouldBeSetEquivalentTo(graph.
ProjectNodes
.Select(GetProjectPath));
696
if (projectConfigurations == null || graphFromSolution.
ProjectNodes
.All(n => n.ProjectReferences.Count == 0))
701
graphFromSolution.
ProjectNodes
.Select(GetProjectPath)
702
.ShouldBeSameIgnoringOrder(graph.
ProjectNodes
.Select(GetProjectPath));
708
foreach (var node in graphFromSolution.
ProjectNodes
)
Graph\GraphTestingUtilities.cs (1)
138
return graph.
ProjectNodes
.Where(node => node.ProjectInstance.FullPath.EndsWith(projectNum + ".proj"));
Graph\ProjectGraph_Tests.cs (74)
52
projectGraph.
ProjectNodes
.ShouldBeEmpty();
66
projectGraph.
ProjectNodes
.Count.ShouldBe(1);
67
projectGraph.
ProjectNodes
.First().ProjectInstance.FullPath.ShouldBe(entryProject.Path);
117
projectGraph.
ProjectNodes
.Count.ShouldBe(1);
118
projectGraph.
ProjectNodes
.First().ProjectInstance.FullPath.ShouldBe(entryProject.Path);
232
graph.
ProjectNodes
.Count.ShouldBe(3);
261
graph.
ProjectNodes
.Count.ShouldBe(7);
406
graph.
ProjectNodes
.Count.ShouldBe(5);
431
graph.
ProjectNodes
.Count.ShouldBe(3);
464
graph.
ProjectNodes
.Count.ShouldBe(6);
500
graph.
ProjectNodes
.Count.ShouldBe(4);
535
graph.
ProjectNodes
.Count.ShouldBe(6);
579
projectGraph.
ProjectNodes
.Count.ShouldBe(3);
602
projectGraph.
ProjectNodes
.Count.ShouldBe(4);
641
projectGraph.
ProjectNodes
.Count.ShouldBe(3);
866
projectGraph.
ProjectNodes
.Count.ShouldBe(7);
868
ProjectGraphNode project1Node = projectGraph.
ProjectNodes
.Single(node => node.ProjectInstance.FullPath == project1Path);
874
ProjectGraphNode project2Node = projectGraph.
ProjectNodes
.Single(node => node.ProjectInstance.FullPath == project2Path);
880
ProjectGraphNode project3Node = projectGraph.
ProjectNodes
.Single(node => node.ProjectInstance.FullPath == project3Path);
887
ProjectGraphNode project4Node = projectGraph.
ProjectNodes
.Single(node => node.ProjectInstance.FullPath == project4Path);
893
ProjectGraphNode project5Node = projectGraph.
ProjectNodes
.Single(node => node.ProjectInstance.FullPath == project5Path);
899
ProjectGraphNode project6Node = projectGraph.
ProjectNodes
.Single(node => node.ProjectInstance.FullPath == project6Path);
905
Assert.DoesNotContain(projectGraph.
ProjectNodes
, node => node.ProjectInstance.FullPath == project7Path);
907
ProjectGraphNode project8Node = projectGraph.
ProjectNodes
.Single(node => node.ProjectInstance.FullPath == project8Path);
925
projectGraph.
ProjectNodes
.Count.ShouldBe(4);
928
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
953
projectGraph.
ProjectNodes
.Count.ShouldBe(3);
956
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
984
projectGraph.
ProjectNodes
.Count.ShouldBe(6);
987
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1006
projectGraph.
ProjectNodes
.Count.ShouldBe(2);
1009
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1024
projectGraph.
ProjectNodes
.Count.ShouldBe(2);
1027
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1047
projectGraph.
ProjectNodes
.Count.ShouldBe(2);
1050
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1070
projectGraph.
ProjectNodes
.Count.ShouldBe(2);
1073
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1087
projectGraph.
ProjectNodes
.Count.ShouldBe(1);
1113
projectGraph.
ProjectNodes
.Count.ShouldBe(2);
1116
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1154
projectGraph.
ProjectNodes
.Count.ShouldBe(2);
1157
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1188
projectGraph.
ProjectNodes
.Count.ShouldBe(4);
1192
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1360
projectGraph.
ProjectNodes
.Count.ShouldBe(12);
1364
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1395
projectGraph.
ProjectNodes
.Count.ShouldBe(2);
1398
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1418
projectGraph.
ProjectNodes
.Count.ShouldBe(2);
1421
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1448
projectGraph.
ProjectNodes
.Count.ShouldBe(7);
1451
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
1505
projectGraph.
ProjectNodes
.Count.ShouldBe(expected: 5);
1508
targetLists.Count.ShouldBe(expected: projectGraph.
ProjectNodes
.Count);
1815
toposort.Length.ShouldBe(projectGraph.
ProjectNodes
.Count);
1853
foreach (var node in graph.
ProjectNodes
)
1876
Regex.Matches(dot, "label").Count.ShouldBe(graph.
ProjectNodes
.Count);
1888
graph.
ProjectNodes
.Count.ShouldBe(3);
1915
graph.
ProjectNodes
.Count.ShouldBe(4);
1949
graph.
ProjectNodes
.Count.ShouldBe(4);
1982
graph.
ProjectNodes
.Count.ShouldBe(4);
2001
graph.
ProjectNodes
.Count.ShouldBe(4);
2029
graph.
ProjectNodes
.Count.ShouldBe(2);
2048
graph.
ProjectNodes
.Count.ShouldBe(2);
2069
graph.
ProjectNodes
.Count.ShouldBe(8);
2096
graph.
ProjectNodes
.Count.ShouldBe(11);
2136
graph.
ProjectNodes
.Count.ShouldBe(4);
2170
graph.
ProjectNodes
.Count.ShouldBe(3);
2214
graph.
ProjectNodes
.Count.ShouldBe(5);
2334
foreach (var node in projectGraph.
ProjectNodes
)
2351
projectGraph.
ProjectNodes
.First().ProjectInstance.GlobalProperties[PropertyNames.IsGraphBuild].ShouldBe("xyz");
2364
foreach (var node in graph.
ProjectNodes
)
2878
targetLists.Count.ShouldBe(projectGraph.
ProjectNodes
.Count);
ProjectCache\ProjectCacheTests.cs (10)
576
string solutionConfigurationGlobalProperty = CreateSolutionConfigurationProperty(graph.
ProjectNodes
);
604
foreach (var node in graph.
ProjectNodes
)
782
instanceMockCache.Requests.Count.ShouldBe(graph.
ProjectNodes
.Count);
788
Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.
ProjectNodes
.Count);
792
foreach (var node in graph.
ProjectNodes
)
1428
return buildSession.BuildProjectFileAsync(graph.
ProjectNodes
.First(n => GetProjectNumber(n) == projectNumber).ProjectInstance.FullPath);
1465
var solutionConfigurationGlobalProperty = CreateSolutionConfigurationProperty(graph.
ProjectNodes
);
1480
foreach (var node in graph.
ProjectNodes
.Where(n => referenceNumbers.Contains(GetProjectNumber(n))))
1501
StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", graph.
ProjectNodes
.Count);
1544
cache.QueryStartStops.Count.ShouldBe(graph.
ProjectNodes
.Count * 2);
SolutionFileBuilder.cs (1)
94
Projects = graph.
ProjectNodes
.ToDictionary(