30 references to ReferencingProjects
dotnet-watch (1)
Build\ProjectGraphUtilities.cs (1)
150=> GetTransitiveProjects(projects, static project => project.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)
55$"{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)
149node.ReferencingProjects.ShouldBeEmpty(); 151reference1.ReferencingProjects.ShouldBeSameIgnoringOrder(new[] { node }); 154reference2.ReferencingProjects.ShouldBeSameIgnoringOrder(new[] { node }); 165node.ReferencingProjects.ShouldBeEmpty(); 168reference1.ReferencingProjects.ShouldBeEmpty(); 171reference2.ReferencingProjects.ShouldBeEmpty(); 279node1.ReferencingProjects.Count.ShouldBe(1); 280node2.ReferencingProjects.Count.ShouldBe(0); 281node3.ReferencingProjects.Count.ShouldBe(1); 282node4.ReferencingProjects.Count.ShouldBe(1); 283node5.ReferencingProjects.Count.ShouldBe(2); 284node6.ReferencingProjects.Count.ShouldBe(1); 285node7.ReferencingProjects.Count.ShouldBe(1); 294node7.ReferencingProjects.ShouldContain(node5); 295node5.ReferencingProjects.ShouldContain(node1); 296node1.ReferencingProjects.ShouldContain(node6); 297node6.ReferencingProjects.ShouldContain(node2); 1823toposort[i].ReferencingProjects.ShouldNotContain(toposort[j], $"Dependency of node at index {j} found at index {i}"); 2151referencedInnerBuild.ReferencingProjects.ShouldBeSameIgnoringOrder(new[] { two, outerBuild }); 2649outerBuild3.ReferencingProjects.Count.ShouldBe(4); 2657inner3.ReferencingProjects.Count.ShouldBe(5);