1 write to ProjectNodes
Microsoft.Build (1)
Graph\ProjectGraph.cs (1)
445ProjectNodes = graphBuilder.ProjectNodes;
118 references to ProjectNodes
dotnet-watch (5)
Build\EvaluationResult.cs (2)
22=> projectGraph.ProjectNodes.SelectMany(p => p.ProjectInstance.ImportPaths) 23.Concat(projectGraph.ProjectNodes.Select(p => p.ProjectInstance.FullPath))
Build\FilePathExclusions.cs (1)
21foreach (var projectNode in projectGraph.ProjectNodes)
Build\ProjectNodeMap.cs (1)
16graph.ProjectNodes.GroupBy(n => n.ProjectInstance.FullPath).ToDictionary(
HotReload\HotReloadDotNetWatcher.cs (1)
576foreach (var node in graph.ProjectNodes)
Microsoft.Build (9)
BackEnd\BuildManager\BuildManager.cs (3)
2077var blockedNodes = new HashSet<ProjectGraphNode>(projectGraph.ProjectNodes); 2078var finishedNodes = new HashSet<ProjectGraphNode>(projectGraph.ProjectNodes.Count); 2080var resultsPerNode = new Dictionary<ProjectGraphNode, BuildResult>(projectGraph.ProjectNodes.Count);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
114projectGraph.ProjectNodes,
Graph\ProjectGraph.cs (5)
449_projectNodesTopologicallySorted = new Lazy<IReadOnlyCollection<ProjectGraphNode>>(() => TopologicalSort(GraphRoots, ProjectNodes)); 486ProjectNodes.Count, 513foreach (var node in ProjectNodes) 556return $"#roots={GraphRoots.Count}, #nodes={ProjectNodes.Count}, #entryPoints={EntryPointNodes.Count}"; 614var targetLists = ProjectNodes.ToDictionary(node => node, node => ImmutableList<string>.Empty);
Microsoft.Build.Engine.UnitTests (104)
BackEnd\BuildManager_Tests.cs (6)
4203graph.ProjectNodes.Count.ShouldBe(2); 4210var node1 = graph.ProjectNodes.First(node => node.ProjectInstance.FullPath.Equals(project1, StringComparison.OrdinalIgnoreCase)); 4214var node2 = graph.ProjectNodes.First(node => node.ProjectInstance.FullPath.Equals(project2, StringComparison.OrdinalIgnoreCase)); 4288graph.ProjectNodes.Count.ShouldBe(2); 4295var node1 = graph.ProjectNodes.First(node => node.ProjectInstance.FullPath.Equals(project1, StringComparison.OrdinalIgnoreCase)); 4299var node2 = graph.ProjectNodes.First(node => node.ProjectInstance.FullPath.Equals(project2, StringComparison.OrdinalIgnoreCase));
Construction\SolutionFilter_Tests.cs (2)
136graphFromSolution.ProjectNodes.ShouldHaveSingleItem(); 137graphFromSolution.ProjectNodes.Single().ProjectInstance.ProjectFileLocation.LocationString.ShouldBe(simpleProject.Path);
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
173graph.ProjectNodes.Count.ShouldBe(3);
Graph\GraphLoadedFromSolution_tests.cs (9)
211var projectSpecificConfigurations = graph.ProjectNodes.ToDictionary( 255graph.ProjectNodes.ShouldBeEmpty(); 689graph.ProjectNodes.Count.ShouldBe(graph.ProjectNodes.Select(GetProjectPath).Distinct().Count()); 693.ShouldBeSetEquivalentTo(graph.ProjectNodes.Select(GetProjectPath)); 695if (projectConfigurations == null || graphFromSolution.ProjectNodes.All(n => n.ProjectReferences.Count == 0)) 700graphFromSolution.ProjectNodes.Select(GetProjectPath) 701.ShouldBeSameIgnoringOrder(graph.ProjectNodes.Select(GetProjectPath)); 707foreach (var node in graphFromSolution.ProjectNodes)
Graph\GraphTestingUtilities.cs (1)
138return graph.ProjectNodes.Where(node => node.ProjectInstance.FullPath.EndsWith(projectNum + ".proj"));
Graph\ProjectGraph_Tests.cs (74)
53projectGraph.ProjectNodes.ShouldBeEmpty(); 67projectGraph.ProjectNodes.Count.ShouldBe(1); 68projectGraph.ProjectNodes.First().ProjectInstance.FullPath.ShouldBe(entryProject.Path); 118projectGraph.ProjectNodes.Count.ShouldBe(1); 119projectGraph.ProjectNodes.First().ProjectInstance.FullPath.ShouldBe(entryProject.Path); 233graph.ProjectNodes.Count.ShouldBe(3); 262graph.ProjectNodes.Count.ShouldBe(7); 407graph.ProjectNodes.Count.ShouldBe(5); 432graph.ProjectNodes.Count.ShouldBe(3); 465graph.ProjectNodes.Count.ShouldBe(6); 501graph.ProjectNodes.Count.ShouldBe(4); 536graph.ProjectNodes.Count.ShouldBe(6); 580projectGraph.ProjectNodes.Count.ShouldBe(3); 603projectGraph.ProjectNodes.Count.ShouldBe(4); 642projectGraph.ProjectNodes.Count.ShouldBe(3); 867projectGraph.ProjectNodes.Count.ShouldBe(7); 869ProjectGraphNode project1Node = projectGraph.ProjectNodes.Single(node => node.ProjectInstance.FullPath == project1Path); 875ProjectGraphNode project2Node = projectGraph.ProjectNodes.Single(node => node.ProjectInstance.FullPath == project2Path); 881ProjectGraphNode project3Node = projectGraph.ProjectNodes.Single(node => node.ProjectInstance.FullPath == project3Path); 888ProjectGraphNode project4Node = projectGraph.ProjectNodes.Single(node => node.ProjectInstance.FullPath == project4Path); 894ProjectGraphNode project5Node = projectGraph.ProjectNodes.Single(node => node.ProjectInstance.FullPath == project5Path); 900ProjectGraphNode project6Node = projectGraph.ProjectNodes.Single(node => node.ProjectInstance.FullPath == project6Path); 906Assert.DoesNotContain(projectGraph.ProjectNodes, node => node.ProjectInstance.FullPath == project7Path); 908ProjectGraphNode project8Node = projectGraph.ProjectNodes.Single(node => node.ProjectInstance.FullPath == project8Path); 926projectGraph.ProjectNodes.Count.ShouldBe(4); 929targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 954projectGraph.ProjectNodes.Count.ShouldBe(3); 957targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 985projectGraph.ProjectNodes.Count.ShouldBe(6); 988targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1007projectGraph.ProjectNodes.Count.ShouldBe(2); 1010targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1025projectGraph.ProjectNodes.Count.ShouldBe(2); 1028targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1048projectGraph.ProjectNodes.Count.ShouldBe(2); 1051targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1071projectGraph.ProjectNodes.Count.ShouldBe(2); 1074targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1088projectGraph.ProjectNodes.Count.ShouldBe(1); 1114projectGraph.ProjectNodes.Count.ShouldBe(2); 1117targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1155projectGraph.ProjectNodes.Count.ShouldBe(2); 1158targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1189projectGraph.ProjectNodes.Count.ShouldBe(4); 1193targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1361projectGraph.ProjectNodes.Count.ShouldBe(12); 1365targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1396projectGraph.ProjectNodes.Count.ShouldBe(2); 1399targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1419projectGraph.ProjectNodes.Count.ShouldBe(2); 1422targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1449projectGraph.ProjectNodes.Count.ShouldBe(7); 1452targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count); 1506projectGraph.ProjectNodes.Count.ShouldBe(expected: 5); 1509targetLists.Count.ShouldBe(expected: projectGraph.ProjectNodes.Count); 1816toposort.Length.ShouldBe(projectGraph.ProjectNodes.Count); 1854foreach (var node in graph.ProjectNodes) 1877Regex.Matches(dot, "label").Count.ShouldBe(graph.ProjectNodes.Count); 1889graph.ProjectNodes.Count.ShouldBe(3); 1916graph.ProjectNodes.Count.ShouldBe(4); 1950graph.ProjectNodes.Count.ShouldBe(4); 1983graph.ProjectNodes.Count.ShouldBe(4); 2002graph.ProjectNodes.Count.ShouldBe(4); 2030graph.ProjectNodes.Count.ShouldBe(2); 2049graph.ProjectNodes.Count.ShouldBe(2); 2070graph.ProjectNodes.Count.ShouldBe(8); 2097graph.ProjectNodes.Count.ShouldBe(11); 2137graph.ProjectNodes.Count.ShouldBe(4); 2171graph.ProjectNodes.Count.ShouldBe(3); 2215graph.ProjectNodes.Count.ShouldBe(5); 2335foreach (var node in projectGraph.ProjectNodes) 2352projectGraph.ProjectNodes.First().ProjectInstance.GlobalProperties[PropertyNames.IsGraphBuild].ShouldBe("xyz"); 2365foreach (var node in graph.ProjectNodes) 2879targetLists.Count.ShouldBe(projectGraph.ProjectNodes.Count);
ProjectCache\ProjectCacheTests.cs (10)
595string solutionConfigurationGlobalProperty = CreateSolutionConfigurationProperty(graph.ProjectNodes); 623foreach (var node in graph.ProjectNodes) 801instanceMockCache.Requests.Count.ShouldBe(graph.ProjectNodes.Count); 807Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count); 811foreach (var node in graph.ProjectNodes) 1447return buildSession.BuildProjectFileAsync(graph.ProjectNodes.First(n => GetProjectNumber(n) == projectNumber).ProjectInstance.FullPath); 1484var solutionConfigurationGlobalProperty = CreateSolutionConfigurationProperty(graph.ProjectNodes); 1499foreach (var node in graph.ProjectNodes.Where(n => referenceNumbers.Contains(GetProjectNumber(n)))) 1520StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", graph.ProjectNodes.Count); 1563cache.QueryStartStops.Count.ShouldBe(graph.ProjectNodes.Count * 2);
SolutionFileBuilder.cs (1)
94Projects = graph.ProjectNodes.ToDictionary(