35 references to Dependencies
Microsoft.Build (6)
Construction\Solution\SolutionProjectGenerator.cs (3)
281foreach (string dependencyProjectGuid in project.Dependencies) 1165foreach (string dependencyProjectGuid in projectToAdd.Dependencies) 1321foreach (string dependencyProjectGuid in project.Dependencies)
Graph\GraphBuilder.cs (3)
339if (project.Dependencies.Count > 0) 343List<string> solutionDependenciesForProject = new(project.Dependencies.Count); 344foreach (string dependencyProjectGuid in project.Dependencies)
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\SolutionFile_Tests.cs (12)
213Assert.Empty(consoleApplication1.Dependencies); 218Assert.Empty(vbClassLibrary.Dependencies); 223Assert.Empty(classLibrary1.Dependencies); 298Assert.Empty(classLibrary1.Dependencies); 304Assert.Empty(myPhysicalFolderClassLibrary1.Dependencies); 309Assert.Empty(classLibrary2.Dependencies); 387Assert.Single(classLibrary1.Dependencies); 388Assert.Equal(classLibrary3.ProjectGuid, classLibrary1.Dependencies[0]); 392Assert.Equal(2, classLibrary2.Dependencies.Count); 394Assert.Contains(classLibrary3.ProjectGuid, classLibrary2.Dependencies); 395Assert.Contains(classLibrary1.ProjectGuid, classLibrary2.Dependencies); 399Assert.Empty(solution.ProjectsInOrder[2].Dependencies);
Microsoft.Build.Engine.UnitTests (17)
Construction\SolutionFile_NewParser_Tests.cs (1)
90solution.ProjectsInOrder[0].Dependencies.Count.ShouldBe(2);
Construction\SolutionFile_OldParser_Tests.cs (16)
987solution.ProjectsInOrder[0].Dependencies.ShouldBeEmpty(); 995solution.ProjectsInOrder[1].Dependencies.ShouldBeEmpty(); 1003solution.ProjectsInOrder[2].Dependencies.ShouldBeEmpty(); 1011solution.ProjectsInOrder[3].Dependencies.ShouldBeEmpty(); 1073solution.ProjectsInOrder[0].Dependencies.ShouldBeEmpty(); 1079solution.ProjectsInOrder[1].Dependencies.ShouldBeEmpty(); 1085solution.ProjectsInOrder[2].Dependencies.ShouldBeEmpty(); 1091solution.ProjectsInOrder[3].Dependencies.ShouldBeEmpty(); 1097solution.ProjectsInOrder[4].Dependencies.ShouldBeEmpty(); 1470solution.ProjectsInOrder[0].Dependencies.ShouldHaveSingleItem(); 1471solution.ProjectsInOrder[0].Dependencies[0].ShouldBe("{FAB4EE06-6E01-495A-8926-5514599E3DD9}"); 1477solution.ProjectsInOrder[1].Dependencies.Count.ShouldBe(2); 1478solution.ProjectsInOrder[1].Dependencies[0].ShouldBe("{FAB4EE06-6E01-495A-8926-5514599E3DD9}"); 1479solution.ProjectsInOrder[1].Dependencies[1].ShouldBe("{05A5AD00-71B5-4612-AF2F-9EA9121C4111}"); 1485solution.ProjectsInOrder[2].Dependencies.ShouldBeEmpty(); 1547solution.ProjectsInOrder[0].Dependencies.Count.ShouldBe(2);