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