1 write to GraphRoots
Microsoft.Build (1)
Graph\ProjectGraph.cs (1)
444GraphRoots = graphBuilder.RootNodes;
23 references to GraphRoots
Microsoft.Build (2)
Graph\ProjectGraph.cs (2)
449_projectNodesTopologicallySorted = new Lazy<IReadOnlyCollection<ProjectGraphNode>>(() => TopologicalSort(GraphRoots, ProjectNodes)); 556return $"#roots={GraphRoots.Count}, #nodes={ProjectNodes.Count}, #entryPoints={EntryPointNodes.Count}";
Microsoft.Build.Engine.UnitTests (21)
BackEnd\BuildManager_Tests.cs (2)
200graph.GraphRoots.FirstOrDefault() 4353graph.GraphRoots.First().ProjectInstance.FullPath,
Graph\GraphLoadedFromSolution_tests.cs (2)
698graphFromSolution.GraphRoots.Select(GetProjectPath) 699.ShouldBeSameIgnoringOrder(graph.GraphRoots.Select(GetProjectPath));
Graph\ProjectGraph_Tests.cs (13)
54projectGraph.GraphRoots.ShouldBeEmpty(); 675projectGraph.GraphRoots.Count.ShouldBe(2); 676projectGraph.GraphRoots.ShouldNotContain(GetFirstNodeWithProjectNumber(projectGraph, 2)); 864projectGraph.GraphRoots.Count.ShouldBe(2); 865projectGraph.GraphRoots.Select(node => node.ProjectInstance.FullPath).ShouldBe(new[] { project1Path, project6Path }, ignoreOrder: true); 1890var outerBuild = graph.GraphRoots.First(); 2003AssertOuterBuild(graph.GraphRoots.First(), graph); 2031AssertInnerBuildEvaluation(graph.GraphRoots.First(), false, new Dictionary<string, string>()); 2050AssertInnerBuildEvaluation(graph.GraphRoots.First(), true, new Dictionary<string, string>()); 2071AssertOuterBuild(graph.GraphRoots.First(), graph); 2098AssertOuterBuild(graph.GraphRoots.First(), graph); 2138var outerBuild = graph.GraphRoots.First(i => i.ProjectType == ProjectInterpretation.ProjectType.OuterBuild); 2172var rootNode = graph.GraphRoots.First();
ProjectCache\ProjectCacheTests.cs (4)
538logger.FullLog.ShouldNotContain($"EntryPoint: {graph.GraphRoots.First().ProjectInstance.FullPath}"); 539logger.FullLog.ShouldContain($"EntryPoint: {graph.GraphRoots.First().ProjectReferences.First().ProjectInstance.FullPath}"); 684var rootNode = graph.GraphRoots.First(); 1498buildSession.BuildProjectFile(graph.GraphRoots.First().ProjectInstance.FullPath).ShouldHaveSucceeded();