35 references to Dependencies
Microsoft.Build (6)
Construction\Solution\SolutionProjectGenerator.cs (3)
281foreach (string dependencyProjectGuid in project.Dependencies) 1212foreach (string dependencyProjectGuid in projectToAdd.Dependencies) 1378foreach (string dependencyProjectGuid in project.Dependencies)
Graph\GraphBuilder.cs (3)
348if (project.Dependencies.Count > 0) 352List<string> solutionDependenciesForProject = new(project.Dependencies.Count); 353foreach (string dependencyProjectGuid in project.Dependencies)
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\SolutionFile_Tests.cs (12)
210Assert.Empty(consoleApplication1.Dependencies); 215Assert.Empty(vbClassLibrary.Dependencies); 220Assert.Empty(classLibrary1.Dependencies); 295Assert.Empty(classLibrary1.Dependencies); 301Assert.Empty(myPhysicalFolderClassLibrary1.Dependencies); 306Assert.Empty(classLibrary2.Dependencies); 384Assert.Single(classLibrary1.Dependencies); 385Assert.Equal(classLibrary3.ProjectGuid, classLibrary1.Dependencies[0]); 389Assert.Equal(2, classLibrary2.Dependencies.Count); 391Assert.Contains(classLibrary3.ProjectGuid, classLibrary2.Dependencies); 392Assert.Contains(classLibrary1.ProjectGuid, classLibrary2.Dependencies); 396Assert.Empty(solution.ProjectsInOrder[2].Dependencies);
Microsoft.Build.Engine.UnitTests (17)
Construction\SolutionFile_NewParser_Tests.cs (1)
87solution.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);