172 references to ProjectsInOrder
Microsoft.Build (6)
Construction\Solution\SolutionProjectGenerator.cs (4)
271
foreach (ProjectInSolution project in solutionFile.
ProjectsInOrder
)
737
var projectsInOrder = new List<ProjectInSolution>(_solutionFile.
ProjectsInOrder
.Count);
738
foreach (ProjectInSolution project in _solutionFile.
ProjectsInOrder
)
2129
foreach (ProjectInSolution project in _solutionFile.
ProjectsInOrder
)
Graph\GraphBuilder.cs (1)
310
IReadOnlyList<ProjectInSolution> projectsInSolution = Solution.
ProjectsInOrder
;
Graph\ProjectGraph.cs (1)
651
foreach (ProjectInSolution project in Solution.
ProjectsInOrder
)
Microsoft.Build.Engine.OM.UnitTests (24)
Construction\SolutionFile_Tests.cs (24)
99
Assert.Equal(expectedProjectName, solution.
ProjectsInOrder
[0].ProjectName);
100
Assert.Equal(ConvertToUnixPathIfNeeded("Relative path\\to\\Project name.myvctype"), solution.
ProjectsInOrder
[0].RelativePath);
104
Assert.Equal("{0ABED153-9451-483C-8140-9E8D7306B216}", solution.
ProjectsInOrder
[0].ProjectGuid);
189
Assert.Equal(3, solution.
ProjectsInOrder
.Count);
192
ProjectInSolution consoleApplication1 = solution.
ProjectsInOrder
.First(p => p.ProjectName == "ConsoleApplication1");
197
ProjectInSolution vbClassLibrary = solution.
ProjectsInOrder
.First(p => p.ProjectName == "vbClassLibrary");
202
ProjectInSolution classLibrary1 = solution.
ProjectsInOrder
.First(p => p.ProjectName == "ClassLibrary1");
271
Assert.Equal(3, solution.
ProjectsInOrder
.Count);
273
var classLibrary1 = solution.
ProjectsInOrder
279
var myPhysicalFolderClassLibrary1 = solution.
ProjectsInOrder
284
var classLibrary2 = solution.
ProjectsInOrder
356
Assert.Equal(3, solution.
ProjectsInOrder
.Count);
358
var classLibrary1 = solution.
ProjectsInOrder
.First(p => p.ProjectName == "ClassLibrary1");
359
var classLibrary2 = solution.
ProjectsInOrder
.First(p => p.ProjectName == "ClassLibrary2");
360
var classLibrary3 = solution.
ProjectsInOrder
.First(p => p.ProjectName == "ClassLibrary3");
365
Assert.Null(solution.
ProjectsInOrder
[0].ParentProjectGuid);
372
Assert.Null(solution.
ProjectsInOrder
[1].ParentProjectGuid);
374
Assert.Equal(ConvertToUnixPathIfNeeded("ClassLibrary3\\ClassLibrary3.csproj"), solution.
ProjectsInOrder
[2].RelativePath);
375
Assert.Empty(solution.
ProjectsInOrder
[2].Dependencies);
376
Assert.Null(solution.
ProjectsInOrder
[2].ParentProjectGuid);
574
ProjectInSolution csharpProject = solution.
ProjectsInOrder
.First(p => p.ProjectName == "ClassLibrary1");
575
ProjectInSolution vcProject = solution.
ProjectsInOrder
.First(p => p.ProjectName == "MainApp");
659
ProjectInSolution winFormsApp1 = solution.
ProjectsInOrder
.First(p => p.ProjectName == "WinFormsApp1");
660
ProjectInSolution classLibrary1 = solution.
ProjectsInOrder
.First(p => p.ProjectName == "ClassLibrary1");
Microsoft.Build.Engine.UnitTests (140)
Construction\SolutionFile_NewParser_Tests.cs (9)
85
solution.
ProjectsInOrder
.ShouldHaveSingleItem();
87
solution.
ProjectsInOrder
[0].ProjectType.ShouldBe(SolutionProjectType.WebProject);
88
solution.
ProjectsInOrder
[0].ProjectName.ShouldBe(@"C:\WebSites\WebApplication3\");
89
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(ConvertToUnixPathIfNeeded(@"C:\WebSites\WebApplication3\"));
90
solution.
ProjectsInOrder
[0].Dependencies.Count.ShouldBe(2);
91
solution.
ProjectsInOrder
[0].ParentProjectGuid.ShouldBeNull();
92
solution.
ProjectsInOrder
[0].GetUniqueProjectName().ShouldBe(@"C:\WebSites\WebApplication3\");
94
Hashtable aspNetCompilerParameters = solution.
ProjectsInOrder
[0].AspNetConfigurations;
122
List<string> aspNetProjectReferences = solution.
ProjectsInOrder
[0].ProjectReferences;
Construction\SolutionFile_OldParser_Tests.cs (130)
139
Assert.Equal("Project name", solution.
ProjectsInOrder
[0].ProjectName);
140
Assert.Equal("Relative path to project file", solution.
ProjectsInOrder
[0].RelativePath);
141
Assert.Equal("{0ABED153-9451-483C-8140-9E8D7306B216}", solution.
ProjectsInOrder
[0].ProjectGuid);
205
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(@"someproj.etp");
206
solution.
ProjectsInOrder
[1].RelativePath.ShouldBe(@"ClassLibrary2.csproj");
395
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(@"someproj.etp");
396
solution.
ProjectsInOrder
[1].RelativePath.ShouldBe(@"someproj2.etp");
397
solution.
ProjectsInOrder
[2].RelativePath.ShouldBe(@"ClassLibrary1.csproj");
610
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(@"someproj.etp");
611
solution.
ProjectsInOrder
[1].RelativePath.ShouldBe(@"someproj2.etp");
612
solution.
ProjectsInOrder
[2].RelativePath.ShouldBe(@"ETPProjUpgradeTest\someproj3.etp");
613
solution.
ProjectsInOrder
[3].RelativePath.ShouldBe(Path.Combine("ETPProjUpgradeTest", "..", "SomeFolder", "ClassLibrary1.csproj"));
759
Assert.Equal("MyProject,(=IsGreat)", solution.
ProjectsInOrder
[0].ProjectName);
760
Assert.Equal("Relative path to project file", solution.
ProjectsInOrder
[0].RelativePath);
761
Assert.Equal("{0ABED153-9451-483C-8140-9E8D7306B216}", solution.
ProjectsInOrder
[0].ProjectGuid);
981
solution.
ProjectsInOrder
.Count.ShouldBe(4);
983
solution.
ProjectsInOrder
[0].ProjectType.ShouldBe(SolutionProjectType.KnownToBeMSBuildFormat);
984
solution.
ProjectsInOrder
[0].ProjectName.ShouldBe("ConsoleApplication1");
985
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(@"ConsoleApplication1\ConsoleApplication1.vbproj");
986
solution.
ProjectsInOrder
[0].ProjectGuid.ShouldBe("{AB3413A6-D689-486D-B7F0-A095371B3F13}");
987
solution.
ProjectsInOrder
[0].Dependencies.ShouldBeEmpty();
988
solution.
ProjectsInOrder
[0].ParentProjectGuid.ShouldBeNull();
989
solution.
ProjectsInOrder
[0].GetUniqueProjectName().ShouldBe("ConsoleApplication1");
991
solution.
ProjectsInOrder
[1].ProjectType.ShouldBe(SolutionProjectType.KnownToBeMSBuildFormat);
992
solution.
ProjectsInOrder
[1].ProjectName.ShouldBe("vbClassLibrary");
993
solution.
ProjectsInOrder
[1].RelativePath.ShouldBe(@"vbClassLibrary\vbClassLibrary.vbproj");
994
solution.
ProjectsInOrder
[1].ProjectGuid.ShouldBe("{BA333A76-4511-47B8-8DF4-CA51C303AD0B}");
995
solution.
ProjectsInOrder
[1].Dependencies.ShouldBeEmpty();
996
solution.
ProjectsInOrder
[1].ParentProjectGuid.ShouldBeNull();
997
solution.
ProjectsInOrder
[1].GetUniqueProjectName().ShouldBe("vbClassLibrary");
999
solution.
ProjectsInOrder
[2].ProjectType.ShouldBe(SolutionProjectType.KnownToBeMSBuildFormat);
1000
solution.
ProjectsInOrder
[2].ProjectName.ShouldBe("ClassLibrary1");
1001
solution.
ProjectsInOrder
[2].RelativePath.ShouldBe(@"ClassLibrary1\ClassLibrary1.csproj");
1002
solution.
ProjectsInOrder
[2].ProjectGuid.ShouldBe("{DEBCE986-61B9-435E-8018-44B9EF751655}");
1003
solution.
ProjectsInOrder
[2].Dependencies.ShouldBeEmpty();
1004
solution.
ProjectsInOrder
[2].ParentProjectGuid.ShouldBeNull();
1005
solution.
ProjectsInOrder
[2].GetUniqueProjectName().ShouldBe("ClassLibrary1");
1007
solution.
ProjectsInOrder
[3].ProjectType.ShouldBe(SolutionProjectType.KnownToBeMSBuildFormat);
1008
solution.
ProjectsInOrder
[3].ProjectName.ShouldBe("cpsFsProject");
1009
solution.
ProjectsInOrder
[3].RelativePath.ShouldBe(@"cpsFsProject\ProjectFileName.fsproj");
1010
solution.
ProjectsInOrder
[3].ProjectGuid.ShouldBe("{9200923E-1814-4E76-A677-C61E4896D67F}");
1011
solution.
ProjectsInOrder
[3].Dependencies.ShouldBeEmpty();
1012
solution.
ProjectsInOrder
[3].ParentProjectGuid.ShouldBeNull();
1013
solution.
ProjectsInOrder
[3].GetUniqueProjectName().ShouldBe("cpsFsProject");
1069
solution.
ProjectsInOrder
.Count.ShouldBe(5);
1071
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(@"ClassLibrary1\ClassLibrary1.csproj");
1072
solution.
ProjectsInOrder
[0].ProjectGuid.ShouldBe("{34E0D07D-CF8F-459D-9449-C4188D8C5564}");
1073
solution.
ProjectsInOrder
[0].Dependencies.ShouldBeEmpty();
1074
solution.
ProjectsInOrder
[0].ParentProjectGuid.ShouldBeNull();
1075
solution.
ProjectsInOrder
[0].GetUniqueProjectName().ShouldBe("ClassLibrary1");
1077
solution.
ProjectsInOrder
[1].ProjectType.ShouldBe(SolutionProjectType.SolutionFolder);
1078
solution.
ProjectsInOrder
[1].ProjectGuid.ShouldBe("{E0F97730-25D2-418A-A7BD-02CAFDC6E470}");
1079
solution.
ProjectsInOrder
[1].Dependencies.ShouldBeEmpty();
1080
solution.
ProjectsInOrder
[1].ParentProjectGuid.ShouldBeNull();
1081
solution.
ProjectsInOrder
[1].GetUniqueProjectName().ShouldBe("MySlnFolder");
1083
solution.
ProjectsInOrder
[2].RelativePath.ShouldBe(@"MyPhysicalFolder\ClassLibrary1\ClassLibrary1.csproj");
1084
solution.
ProjectsInOrder
[2].ProjectGuid.ShouldBe("{A5EE8128-B08E-4533-86C5-E46714981680}");
1085
solution.
ProjectsInOrder
[2].Dependencies.ShouldBeEmpty();
1086
solution.
ProjectsInOrder
[2].ParentProjectGuid.ShouldBe("{E0F97730-25D2-418A-A7BD-02CAFDC6E470}");
1087
solution.
ProjectsInOrder
[2].GetUniqueProjectName().ShouldBe(@"MySlnFolder\ClassLibrary1");
1089
solution.
ProjectsInOrder
[3].ProjectType.ShouldBe(SolutionProjectType.SolutionFolder);
1090
solution.
ProjectsInOrder
[3].ProjectGuid.ShouldBe("{2AE8D6C4-FB43-430C-8AEB-15E5EEDAAE4B}");
1091
solution.
ProjectsInOrder
[3].Dependencies.ShouldBeEmpty();
1092
solution.
ProjectsInOrder
[3].ParentProjectGuid.ShouldBe("{E0F97730-25D2-418A-A7BD-02CAFDC6E470}");
1093
solution.
ProjectsInOrder
[3].GetUniqueProjectName().ShouldBe(@"MySlnFolder\MySubSlnFolder");
1095
solution.
ProjectsInOrder
[4].RelativePath.ShouldBe(@"ClassLibrary2\ClassLibrary2.csproj");
1096
solution.
ProjectsInOrder
[4].ProjectGuid.ShouldBe("{6DB98C35-FDCC-4818-B5D4-1F0A385FDFD4}");
1097
solution.
ProjectsInOrder
[4].Dependencies.ShouldBeEmpty();
1098
solution.
ProjectsInOrder
[4].ParentProjectGuid.ShouldBe("{2AE8D6C4-FB43-430C-8AEB-15E5EEDAAE4B}");
1099
solution.
ProjectsInOrder
[4].GetUniqueProjectName().ShouldBe(@"MySlnFolder\MySubSlnFolder\ClassLibrary2");
1386
solution.
ProjectsInOrder
.Count.ShouldBe(6);
1388
solution.
ProjectsInOrder
[0].ProjectGuid.ShouldBe("{892B5932-9AA8-46F9-A857-8967DCDBE4F5}");
1389
solution.
ProjectsInOrder
[0].ProjectName.ShouldBe("HubApp2");
1390
SolutionFile.IsBuildableProject(solution.
ProjectsInOrder
[0]).ShouldBeFalse();
1392
solution.
ProjectsInOrder
[1].ProjectGuid.ShouldBe("{A5526AEA-E0A2-496D-94B7-2BBE835C83F8}");
1393
solution.
ProjectsInOrder
[1].ProjectName.ShouldBe("HubApp2.Store");
1394
SolutionFile.IsBuildableProject(solution.
ProjectsInOrder
[1]).ShouldBeTrue();
1396
solution.
ProjectsInOrder
[2].ProjectGuid.ShouldBe("{FF6AEDF3-950A-46DD-910B-52BC69B9C99A}");
1397
solution.
ProjectsInOrder
[2].ProjectName.ShouldBe("Shared");
1398
SolutionFile.IsBuildableProject(solution.
ProjectsInOrder
[2]).ShouldBeFalse();
1400
solution.
ProjectsInOrder
[3].ProjectGuid.ShouldBe("{024E8607-06B0-440D-8741-5A888DC4B176}");
1401
solution.
ProjectsInOrder
[3].ProjectName.ShouldBe("HubApp2.Phone");
1402
SolutionFile.IsBuildableProject(solution.
ProjectsInOrder
[3]).ShouldBeTrue();
1404
solution.
ProjectsInOrder
[4].ProjectGuid.ShouldBe("{E0F97730-25D2-418A-A7BD-02CAFDC6E470}");
1405
solution.
ProjectsInOrder
[4].ProjectName.ShouldBe("MySlnFolder");
1406
SolutionFile.IsBuildableProject(solution.
ProjectsInOrder
[4]).ShouldBeFalse();
1410
solution.
ProjectsInOrder
[5].ProjectGuid.ShouldBe("{A5EE8128-B08E-4533-86C5-E46714981680}");
1411
solution.
ProjectsInOrder
[5].ProjectName.ShouldBe("ClassLibrary1");
1412
SolutionFile.IsBuildableProject(solution.
ProjectsInOrder
[5]).ShouldBeTrue();
1466
solution.
ProjectsInOrder
.Count.ShouldBe(3);
1468
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(@"ClassLibrary1\ClassLibrary1.csproj");
1469
solution.
ProjectsInOrder
[0].ProjectGuid.ShouldBe("{05A5AD00-71B5-4612-AF2F-9EA9121C4111}");
1470
solution.
ProjectsInOrder
[0].Dependencies.ShouldHaveSingleItem();
1471
solution.
ProjectsInOrder
[0].Dependencies[0].ShouldBe("{FAB4EE06-6E01-495A-8926-5514599E3DD9}");
1472
solution.
ProjectsInOrder
[0].ParentProjectGuid.ShouldBeNull();
1473
solution.
ProjectsInOrder
[0].GetUniqueProjectName().ShouldBe("ClassLibrary1");
1475
solution.
ProjectsInOrder
[1].RelativePath.ShouldBe(@"ClassLibrary2\ClassLibrary2.csproj");
1476
solution.
ProjectsInOrder
[1].ProjectGuid.ShouldBe("{7F316407-AE3E-4F26-BE61-2C50D30DA158}");
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}");
1480
solution.
ProjectsInOrder
[1].ParentProjectGuid.ShouldBeNull();
1481
solution.
ProjectsInOrder
[1].GetUniqueProjectName().ShouldBe("ClassLibrary2");
1483
solution.
ProjectsInOrder
[2].RelativePath.ShouldBe(@"ClassLibrary3\ClassLibrary3.csproj");
1484
solution.
ProjectsInOrder
[2].ProjectGuid.ShouldBe("{FAB4EE06-6E01-495A-8926-5514599E3DD9}");
1485
solution.
ProjectsInOrder
[2].Dependencies.ShouldBeEmpty();
1486
solution.
ProjectsInOrder
[2].ParentProjectGuid.ShouldBeNull();
1487
solution.
ProjectsInOrder
[2].GetUniqueProjectName().ShouldBe("ClassLibrary3");
1541
solution.
ProjectsInOrder
.ShouldHaveSingleItem();
1543
solution.
ProjectsInOrder
[0].ProjectType.ShouldBe(SolutionProjectType.WebProject);
1544
solution.
ProjectsInOrder
[0].ProjectName.ShouldBe(@"C:\WebSites\WebApplication3\");
1545
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(@"C:\WebSites\WebApplication3\");
1546
solution.
ProjectsInOrder
[0].ProjectGuid.ShouldBe("{464FD0B9-E335-4677-BE1E-6B2F982F4D86}");
1547
solution.
ProjectsInOrder
[0].Dependencies.Count.ShouldBe(2);
1548
solution.
ProjectsInOrder
[0].ParentProjectGuid.ShouldBeNull();
1549
solution.
ProjectsInOrder
[0].GetUniqueProjectName().ShouldBe(@"C:\WebSites\WebApplication3\");
1551
Hashtable aspNetCompilerParameters = solution.
ProjectsInOrder
[0].AspNetConfigurations;
1579
List<string> aspNetProjectReferences = solution.
ProjectsInOrder
[0].ProjectReferences;
1624
solution.
ProjectsInOrder
.Count.ShouldBe(3);
1626
solution.
ProjectsInOrder
[0].ProjectType.ShouldBe(SolutionProjectType.WebProject);
1627
solution.
ProjectsInOrder
[0].GetUniqueProjectName().ShouldBe(@"C:\WebSites\WebApplication3\");
1629
solution.
ProjectsInOrder
[1].ProjectType.ShouldBe(SolutionProjectType.SolutionFolder);
1630
solution.
ProjectsInOrder
[1].ProjectGuid.ShouldBe("{092FE6E5-71F8-43F7-9C92-30E3124B8A22}");
1632
solution.
ProjectsInOrder
[2].ProjectType.ShouldBe(SolutionProjectType.WebProject);
1633
solution.
ProjectsInOrder
[2].GetUniqueProjectName().ShouldBe(@"C:\WebSites\WebApplication4\");
1634
solution.
ProjectsInOrder
[2].ParentProjectGuid.ShouldBe("{092FE6E5-71F8-43F7-9C92-30E3124B8A22}");
2427
solution.
ProjectsInOrder
[0].ProjectName.ShouldBe("ProjectA");
2428
solution.
ProjectsInOrder
[0].RelativePath.ShouldBe(expectedRelativePath);
2429
solution.
ProjectsInOrder
[0].AbsolutePath.ShouldBe(Path.GetFullPath(Path.Combine(Path.GetDirectoryName(solution.FullPath)!, expectedRelativePath)));
2430
solution.
ProjectsInOrder
[0].ProjectGuid.ShouldBe("{0ABED153-9451-483C-8140-9E8D7306B216}");
Construction\SolutionProjectGenerator_Tests.cs (1)
2755
ProjectInSolution projectInSolution = solution.
ProjectsInOrder
.ShouldHaveSingleItem();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.cs (1)
198
foreach (var project in solutionFile.
ProjectsInOrder
)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
BuildHost.cs (1)
150
foreach (var project in SolutionFile.Parse(solutionFilePath).
ProjectsInOrder
)