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)
340if (project.Dependencies.Count > 0) 344List<string> solutionDependenciesForProject = new(project.Dependencies.Count); 345foreach (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)
88solution.ProjectsInOrder[0].Dependencies.Count.ShouldBe(2);
Construction\SolutionFile_OldParser_Tests.cs (16)
988solution.ProjectsInOrder[0].Dependencies.ShouldBeEmpty(); 996solution.ProjectsInOrder[1].Dependencies.ShouldBeEmpty(); 1004solution.ProjectsInOrder[2].Dependencies.ShouldBeEmpty(); 1012solution.ProjectsInOrder[3].Dependencies.ShouldBeEmpty(); 1074solution.ProjectsInOrder[0].Dependencies.ShouldBeEmpty(); 1080solution.ProjectsInOrder[1].Dependencies.ShouldBeEmpty(); 1086solution.ProjectsInOrder[2].Dependencies.ShouldBeEmpty(); 1092solution.ProjectsInOrder[3].Dependencies.ShouldBeEmpty(); 1098solution.ProjectsInOrder[4].Dependencies.ShouldBeEmpty(); 1471solution.ProjectsInOrder[0].Dependencies.ShouldHaveSingleItem(); 1472solution.ProjectsInOrder[0].Dependencies[0].ShouldBe("{FAB4EE06-6E01-495A-8926-5514599E3DD9}"); 1478solution.ProjectsInOrder[1].Dependencies.Count.ShouldBe(2); 1479solution.ProjectsInOrder[1].Dependencies[0].ShouldBe("{FAB4EE06-6E01-495A-8926-5514599E3DD9}"); 1480solution.ProjectsInOrder[1].Dependencies[1].ShouldBe("{05A5AD00-71B5-4612-AF2F-9EA9121C4111}"); 1486solution.ProjectsInOrder[2].Dependencies.ShouldBeEmpty(); 1548solution.ProjectsInOrder[0].Dependencies.Count.ShouldBe(2);