35 references to Dependencies
Microsoft.Build (6)
Construction\Solution\SolutionProjectGenerator.cs (3)
281foreach (string dependencyProjectGuid in project.Dependencies) 1152foreach (string dependencyProjectGuid in projectToAdd.Dependencies) 1308foreach (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)
194Assert.Empty(consoleApplication1.Dependencies); 199Assert.Empty(vbClassLibrary.Dependencies); 204Assert.Empty(classLibrary1.Dependencies); 276Assert.Empty(classLibrary1.Dependencies); 282Assert.Empty(myPhysicalFolderClassLibrary1.Dependencies); 287Assert.Empty(classLibrary2.Dependencies); 363Assert.Single(classLibrary1.Dependencies); 364Assert.Equal(classLibrary3.ProjectGuid, classLibrary1.Dependencies[0]); 368Assert.Equal(2, classLibrary2.Dependencies.Count); 370Assert.Contains(classLibrary3.ProjectGuid, classLibrary2.Dependencies); 371Assert.Contains(classLibrary1.ProjectGuid, classLibrary2.Dependencies); 375Assert.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);