11 instantiations of ProjectInSolution
Microsoft.Build (4)
Construction\Solution\SolutionFile.cs (4)
368var proj = new ProjectInSolution(this) 480var proj = new ProjectInSolution(this) 1030var proj = new ProjectInSolution(this); 1174var proj = new ProjectInSolution(this)
Microsoft.Build.Engine.UnitTests (7)
Construction\SolutionFile_OldParser_Tests.cs (7)
37ProjectInSolution proj = new ProjectInSolution(p); 61ProjectInSolution proj = new ProjectInSolution(p); 78ProjectInSolution proj = new ProjectInSolution(p); 97ProjectInSolution proj = new ProjectInSolution(p); 153ProjectInSolution proj = new ProjectInSolution(p); 716ProjectInSolution proj = new ProjectInSolution(p); 779ProjectInSolution proj = new ProjectInSolution(p);
118 references to ProjectInSolution
Microsoft.Build (73)
Construction\Solution\ProjectInSolution.cs (4)
409ProjectInSolution proj = null; 410ProjectInSolution solutionFolder = null; 450ProjectInSolution proj = null; 451ProjectInSolution solutionFolder = null;
Construction\Solution\SolutionFile.cs (37)
101private Dictionary<string, ProjectInSolution> _projectsByGuid; 104private Dictionary<string, ProjectInSolution> _solutionFoldersByGuid; 107private List<ProjectInSolution> _projectsInOrder; 202public IReadOnlyList<ProjectInSolution> ProjectsInOrder => _projectsInOrder.AsReadOnly(); 209public IReadOnlyDictionary<string, ProjectInSolution> ProjectsByGuid => new ReadOnlyDictionary<string, ProjectInSolution>(_projectsByGuid); 211internal IReadOnlyDictionary<string, ProjectInSolution> SolutionFoldersByGuid => new ReadOnlyDictionary<string, ProjectInSolution>(_solutionFoldersByGuid); 339_projectsByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 340_solutionFoldersByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 341_projectsInOrder = new List<ProjectInSolution>(); 368var proj = new ProjectInSolution(this) 414private void SetProjectDependencies(ProjectInSolution proj, SolutionProjectModel projectModel) 427private void SetWebsiteProperties(ProjectInSolution proj, SolutionProjectModel projectModel) 443ProjectInSolution proj, 480var proj = new ProjectInSolution(this) 510internal static bool IsBuildableProject(ProjectInSolution project) 744_projectsByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 745_solutionFoldersByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 746_projectsInOrder = new List<ProjectInSolution>(); 805var projectsByUniqueName = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 808foreach (ProjectInSolution proj in _projectsInOrder) 823foreach (ProjectInSolution otherProj in _projectsInOrder) 842if (projectsByUniqueName.TryGetValue(uniqueName, out ProjectInSolution project)) 887foreach (ProjectInSolution project in _projectsInOrder) 1030var proj = new ProjectInSolution(this); 1118internal void ParseEtpProject(ProjectInSolution etpProj) 1174var proj = new ProjectInSolution(this) 1256private void AddProjectToSolution(ProjectInSolution proj) 1278private void ValidateProjectRelativePath(ProjectInSolution proj) 1303ProjectInSolution proj, 1503ProjectInSolution proj) 1527private void SetProjectType(ProjectInSolution proj, string projectTypeGuid) 1612if (!_projectsByGuid.TryGetValue(projectGuid, out ProjectInSolution proj)) 1755foreach (ProjectInSolution project in _projectsInOrder) 1875if (_projectsByGuid.TryGetValue(projectGuid, out ProjectInSolution proj)) 1891if (_projectsByGuid.TryGetValue(projectGuid, out ProjectInSolution proj))
Construction\Solution\SolutionProjectGenerator.cs (26)
271foreach (ProjectInSolution project in solutionFile.ProjectsInOrder) 284if (!solutionFile.ProjectsByGuid.TryGetValue(dependencyProjectGuid, out ProjectInSolution dependencyProject)) 651internal static bool WouldProjectBuild(SolutionFile solutionFile, string selectedSolutionConfiguration, ProjectInSolution project, ProjectConfigurationInSolution projectConfiguration) 737var projectsInOrder = new List<ProjectInSolution>(_solutionFile.ProjectsInOrder.Count); 738foreach (ProjectInSolution project in _solutionFile.ProjectsInOrder) 790private void EvaluateAndAddProjects(List<ProjectInSolution> projectsInOrder, List<ProjectInstance> projectInstances, ProjectInstance traversalInstance, string selectedSolutionConfiguration) 793foreach (ProjectInSolution project in projectsInOrder) 840private void AddStandardTraversalTargets(ProjectInstance traversalInstance, List<ProjectInSolution> projectsInOrder) 855private ProjectInstance CreateTraversalInstance(string wrapperProjectToolsVersion, bool explicitToolsVersionSpecified, List<ProjectInSolution> projectsInOrder) 1055private void AddProjectReference(ProjectInstance traversalProject, ProjectInstance projectInstance, ProjectInSolution projectToAdd, ProjectConfigurationInSolution projectConfiguration, bool direct) 1144private bool CanBuildDirectly(ProjectInstance traversalProject, ProjectInSolution projectToAdd, ProjectConfigurationInSolution projectConfiguration) 1154if (!_solutionFile.ProjectsByGuid.TryGetValue(dependencyProjectGuid, out ProjectInSolution dependencyProject)) 1211private ProjectInstance CreateMetaproject(ProjectInstance traversalProject, ProjectInSolution project, ProjectConfigurationInSolution projectConfiguration) 1281private string GetMetaprojectName(ProjectInSolution project) 1306private void AddMetaprojectReferenceItems(ProjectInstance traversalProject, ProjectInstance metaprojectInstance, ProjectInSolution project) 1310if (!_solutionFile.ProjectsByGuid.TryGetValue(dependencyProjectGuid, out ProjectInSolution dependencyProject)) 1334private static void AddMetaprojectTargetForManagedProject(ProjectInstance traversalProject, ProjectInstance metaprojectInstance, ProjectInSolution project, ProjectConfigurationInSolution projectConfiguration, string targetName, string outputItem) 1384private void AddMetaprojectBuildTask(ProjectInSolution project, ProjectTargetInstance target, string targetToBuild, string outputItem) 1852private void AddMetaprojectTargetForUnknownProjectType(ProjectInstance traversalProject, ProjectInstance metaprojectInstance, ProjectInSolution project, string targetName, string unknownProjectTypeErrorMessage) 1922private void AddValidateProjectsTarget(ProjectInstance traversalProject, List<ProjectInSolution> projects) 1926foreach (ProjectInSolution project in projects) 2016private void AddTraversalTargetForProject(ProjectInstance traversalProject, ProjectInSolution project, ProjectConfigurationInSolution projectConfiguration, string targetToBuild, string outputItem, bool canBuildDirectly) 2018string baseProjectName = ProjectInSolution.DisambiguateProjectTargetName(project.GetUniqueProjectName()); 2129foreach (ProjectInSolution project in _solutionFile.ProjectsInOrder) 2199private void AddDependencyByGuid(ProjectInSolution project, string dependencyGuid) 2334private void AddInitialTargets(ProjectInstance traversalProject, List<ProjectInSolution> projects)
Graph\GraphBuilder.cs (3)
310IReadOnlyList<ProjectInSolution> projectsInSolution = Solution.ProjectsInOrder; 314foreach (ProjectInSolution project in projectsInSolution) 346if (!Solution.ProjectsByGuid.TryGetValue(dependencyProjectGuid, out ProjectInSolution dependencyProject))
Graph\ProjectGraph.cs (3)
651foreach (ProjectInSolution project in Solution.ProjectsInOrder) 658string baseProjectName = ProjectInSolution.DisambiguateProjectTargetName(project.GetUniqueProjectName()); 691ProjectGraphNode GetNodeForProject(ProjectInSolution project) => EntryPointNodes.First(node => string.Equals(node.ProjectInstance.FullPath, project.AbsolutePath));
Microsoft.Build.Engine.OM.UnitTests (13)
Construction\SolutionFile_Tests.cs (13)
192ProjectInSolution consoleApplication1 = solution.ProjectsInOrder.First(p => p.ProjectName == "ConsoleApplication1"); 197ProjectInSolution vbClassLibrary = solution.ProjectsInOrder.First(p => p.ProjectName == "vbClassLibrary"); 202ProjectInSolution classLibrary1 = solution.ProjectsInOrder.First(p => p.ProjectName == "ClassLibrary1"); 273var classLibrary1 = solution.ProjectsInOrder 279var myPhysicalFolderClassLibrary1 = solution.ProjectsInOrder 284var classLibrary2 = solution.ProjectsInOrder 358var classLibrary1 = solution.ProjectsInOrder.First(p => p.ProjectName == "ClassLibrary1"); 359var classLibrary2 = solution.ProjectsInOrder.First(p => p.ProjectName == "ClassLibrary2"); 360var classLibrary3 = solution.ProjectsInOrder.First(p => p.ProjectName == "ClassLibrary3"); 574ProjectInSolution csharpProject = solution.ProjectsInOrder.First(p => p.ProjectName == "ClassLibrary1"); 575ProjectInSolution vcProject = solution.ProjectsInOrder.First(p => p.ProjectName == "MainApp"); 659ProjectInSolution winFormsApp1 = solution.ProjectsInOrder.First(p => p.ProjectName == "WinFormsApp1"); 660ProjectInSolution classLibrary1 = solution.ProjectsInOrder.First(p => p.ProjectName == "ClassLibrary1");
Microsoft.Build.Engine.UnitTests (30)
Construction\SolutionFile_OldParser_Tests.cs (27)
37ProjectInSolution proj = new ProjectInSolution(p); 61ProjectInSolution proj = new ProjectInSolution(p); 78ProjectInSolution proj = new ProjectInSolution(p); 97ProjectInSolution proj = new ProjectInSolution(p); 153ProjectInSolution proj = new ProjectInSolution(p); 278ProjectInSolution project = solution.ProjectsByGuid["{AD0F3D02-9925-4D57-9DAF-E0A9D936ABDB}"]; 279ProjectInSolution project2 = solution.ProjectsByGuid["{CCCCCCCC-9925-4D57-9DAF-E0A9D936ABDB}"]; 332ProjectInSolution project1 = solution.ProjectsByGuid["{CCCCCCCC-9925-4D57-9DAF-E0A9D936ABDB}"]; 333ProjectInSolution project2 = solution.ProjectsByGuid["{DEA89696-F42B-4B58-B7EE-017FF40817D1}"]; 716ProjectInSolution proj = new ProjectInSolution(p); 779ProjectInSolution proj = new ProjectInSolution(p); 1893ProjectInSolution classLibraryProject = solution.ProjectsByGuid["{6185CC21-BE89-448A-B3C0-D1C27112E595}"]; 1894ProjectInSolution mainAppProject = solution.ProjectsByGuid["{A6F99D27-47B9-4EA4-BFC9-25157CBDC281}"]; 1895ProjectInSolution lowLevelProject = solution.ProjectsByGuid["{E8E75132-67E4-4D6F-9CAE-8DA4C883F419}"]; 1896ProjectInSolution highLevelProject = solution.ProjectsByGuid["{D2633E4D-46FF-4C4E-8340-4BC7CDF78615}"]; 1959ProjectInSolution csProject = solution.ProjectsByGuid["{6185CC21-BE89-448A-B3C0-D1C27112E595}"]; 1960ProjectInSolution vcProject = solution.ProjectsByGuid["{A6F99D27-47B9-4EA4-BFC9-25157CBDC281}"]; 2044ProjectInSolution webProject = solution.ProjectsByGuid["{E8E75132-67E4-4D6F-9CAE-8DA4C883F418}"]; 2045ProjectInSolution exeProject = solution.ProjectsByGuid["{25FD9E7C-F37E-48E0-9A7C-607FE4AACCC0}"]; 2046ProjectInSolution missingWebProject = solution.ProjectsByGuid["{E8E75132-67E4-4D6F-9CAE-8DA4C883F419}"]; 2099ProjectInSolution project1 = solution.ProjectsByGuid["{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}"]; 2100ProjectInSolution project2 = solution.ProjectsByGuid["{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}"]; 2168ProjectInSolution project1 = solution.ProjectsByGuid["{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}"]; 2169ProjectInSolution project2 = solution.ProjectsByGuid["{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}"]; 2245ProjectInSolution project1 = solution.ProjectsByGuid["{6185CC21-BE89-448A-B3C0-D1C27112E595}"]; 2246ProjectInSolution project2 = solution.ProjectsByGuid["{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}"]; 2247ProjectInSolution project3 = solution.ProjectsByGuid["{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}"];
Construction\SolutionProjectGenerator_Tests.cs (3)
2385foreach (string projectName in ProjectInSolution.projectNamesToDisambiguate) 2410foreach (string targetName in ProjectInSolution.projectNamesToDisambiguate) 2755ProjectInSolution projectInSolution = solution.ProjectsInOrder.ShouldHaveSingleItem();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.cs (1)
198foreach (var project in solutionFile.ProjectsInOrder)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
BuildHost.cs (1)
150foreach (var project in SolutionFile.Parse(solutionFilePath).ProjectsInOrder)