29 references to ReferencingProjects
Microsoft.Build (5)
Graph\GraphBuilder.cs (1)
109if (entryPointNode.ReferencingProjects.Count == 0)
Graph\ProjectGraph.cs (1)
565var inDegree = graphNodes.ToDictionary(n => n, n => n.ReferencingProjects.Count);
Graph\ProjectGraphNode.cs (1)
56$"{truncatedProjectFile}, #GlobalProps={ProjectInstance.GlobalProperties.Count}, #Props={ProjectInstance.Properties.Count}, #Items={ProjectInstance.Items.Count}, #in={ReferencingProjects.Count}, #out={ProjectReferences.Count}";
Graph\ProjectInterpretation.cs (2)
252if (outerBuild.ProjectType == ProjectType.OuterBuild && outerBuild.ReferencingProjects.Count != 0) 256foreach (ProjectGraphNode outerBuildReferencingProject in outerBuild.ReferencingProjects)
Microsoft.Build.Engine.UnitTests (24)
Graph\GraphTestingUtilities.cs (3)
65foreach (ProjectGraphNode outerBuildReferencer in outerBuild.ReferencingProjects) 77innerBuild.ReferencingProjects.ShouldContain(outerBuildReferencer); 78innerBuild.ReferencingProjects.ShouldContain(outerBuild);
Graph\ProjectGraph_Tests.cs (21)
148node.ReferencingProjects.ShouldBeEmpty(); 150reference1.ReferencingProjects.ShouldBeSameIgnoringOrder(new[] { node }); 153reference2.ReferencingProjects.ShouldBeSameIgnoringOrder(new[] { node }); 164node.ReferencingProjects.ShouldBeEmpty(); 167reference1.ReferencingProjects.ShouldBeEmpty(); 170reference2.ReferencingProjects.ShouldBeEmpty(); 278node1.ReferencingProjects.Count.ShouldBe(1); 279node2.ReferencingProjects.Count.ShouldBe(0); 280node3.ReferencingProjects.Count.ShouldBe(1); 281node4.ReferencingProjects.Count.ShouldBe(1); 282node5.ReferencingProjects.Count.ShouldBe(2); 283node6.ReferencingProjects.Count.ShouldBe(1); 284node7.ReferencingProjects.Count.ShouldBe(1); 293node7.ReferencingProjects.ShouldContain(node5); 294node5.ReferencingProjects.ShouldContain(node1); 295node1.ReferencingProjects.ShouldContain(node6); 296node6.ReferencingProjects.ShouldContain(node2); 1822toposort[i].ReferencingProjects.ShouldNotContain(toposort[j], $"Dependency of node at index {j} found at index {i}"); 2150referencedInnerBuild.ReferencingProjects.ShouldBeSameIgnoringOrder(new[] { two, outerBuild }); 2648outerBuild3.ReferencingProjects.Count.ShouldBe(4); 2656inner3.ReferencingProjects.Count.ShouldBe(5);