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