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