35 references to Dependencies
Microsoft.Build (6)
Construction\Solution\SolutionProjectGenerator.cs (3)
281
foreach (string dependencyProjectGuid in project.
Dependencies
)
1152
foreach (string dependencyProjectGuid in projectToAdd.
Dependencies
)
1308
foreach (string dependencyProjectGuid in project.
Dependencies
)
Graph\GraphBuilder.cs (3)
339
if (project.
Dependencies
.Count > 0)
343
List<string> solutionDependenciesForProject = new(project.
Dependencies
.Count);
344
foreach (string dependencyProjectGuid in project.
Dependencies
)
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\SolutionFile_Tests.cs (12)
194
Assert.Empty(consoleApplication1.
Dependencies
);
199
Assert.Empty(vbClassLibrary.
Dependencies
);
204
Assert.Empty(classLibrary1.
Dependencies
);
276
Assert.Empty(classLibrary1.
Dependencies
);
282
Assert.Empty(myPhysicalFolderClassLibrary1.
Dependencies
);
287
Assert.Empty(classLibrary2.
Dependencies
);
363
Assert.Single(classLibrary1.
Dependencies
);
364
Assert.Equal(classLibrary3.ProjectGuid, classLibrary1.
Dependencies
[0]);
368
Assert.Equal(2, classLibrary2.
Dependencies
.Count);
370
Assert.Contains(classLibrary3.ProjectGuid, classLibrary2.
Dependencies
);
371
Assert.Contains(classLibrary1.ProjectGuid, classLibrary2.
Dependencies
);
375
Assert.Empty(solution.ProjectsInOrder[2].
Dependencies
);
Microsoft.Build.Engine.UnitTests (17)
Construction\SolutionFile_NewParser_Tests.cs (1)
90
solution.ProjectsInOrder[0].
Dependencies
.Count.ShouldBe(2);
Construction\SolutionFile_OldParser_Tests.cs (16)
987
solution.ProjectsInOrder[0].
Dependencies
.ShouldBeEmpty();
995
solution.ProjectsInOrder[1].
Dependencies
.ShouldBeEmpty();
1003
solution.ProjectsInOrder[2].
Dependencies
.ShouldBeEmpty();
1011
solution.ProjectsInOrder[3].
Dependencies
.ShouldBeEmpty();
1073
solution.ProjectsInOrder[0].
Dependencies
.ShouldBeEmpty();
1079
solution.ProjectsInOrder[1].
Dependencies
.ShouldBeEmpty();
1085
solution.ProjectsInOrder[2].
Dependencies
.ShouldBeEmpty();
1091
solution.ProjectsInOrder[3].
Dependencies
.ShouldBeEmpty();
1097
solution.ProjectsInOrder[4].
Dependencies
.ShouldBeEmpty();
1470
solution.ProjectsInOrder[0].
Dependencies
.ShouldHaveSingleItem();
1471
solution.ProjectsInOrder[0].
Dependencies
[0].ShouldBe("{FAB4EE06-6E01-495A-8926-5514599E3DD9}");
1477
solution.ProjectsInOrder[1].
Dependencies
.Count.ShouldBe(2);
1478
solution.ProjectsInOrder[1].
Dependencies
[0].ShouldBe("{FAB4EE06-6E01-495A-8926-5514599E3DD9}");
1479
solution.ProjectsInOrder[1].
Dependencies
[1].ShouldBe("{05A5AD00-71B5-4612-AF2F-9EA9121C4111}");
1485
solution.ProjectsInOrder[2].
Dependencies
.ShouldBeEmpty();
1547
solution.ProjectsInOrder[0].
Dependencies
.Count.ShouldBe(2);