4 writes to ParentProjectGuid
Microsoft.Build (4)
Construction\Solution\ProjectInSolution.cs (1)
126
ParentProjectGuid
= null;
Construction\Solution\SolutionFile.cs (3)
389
proj.
ParentProjectGuid
= ToProjectGuidFormat(projectModel.Parent.Id);
491
proj.
ParentProjectGuid
= ToProjectGuidFormat(solutionFolderModel.Parent.Id);
1618
proj.
ParentProjectGuid
= parentProjectGuid;
34 references to ParentProjectGuid
Microsoft.Build (8)
Construction\Solution\ProjectInSolution.cs (8)
407
if (
ParentProjectGuid
!= null)
413
if (!ParentSolution.ProjectsByGuid.TryGetValue(
ParentProjectGuid
, out proj) &&
414
!ParentSolution.SolutionFoldersByGuid.TryGetValue(
ParentProjectGuid
, out solutionFolder))
417
new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid,
ParentProjectGuid
);
453
if (
ParentProjectGuid
!= null)
455
if (!ParentSolution.ProjectsByGuid.TryGetValue(
ParentProjectGuid
, out proj) &&
456
!ParentSolution.SolutionFoldersByGuid.TryGetValue(
ParentProjectGuid
, out solutionFolder))
459
new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid,
ParentProjectGuid
);
Microsoft.Build.Engine.OM.UnitTests (11)
Construction\SolutionFile_Tests.cs (11)
195
Assert.Null(consoleApplication1.
ParentProjectGuid
);
200
Assert.Null(vbClassLibrary.
ParentProjectGuid
);
205
Assert.Null(classLibrary1.
ParentProjectGuid
);
277
Assert.Null(classLibrary1.
ParentProjectGuid
);
292
Assert.Equal("{E0F97730-25D2-418A-A7BD-02CAFDC6E470}", myPhysicalFolderClassLibrary1.
ParentProjectGuid
);
293
Assert.Equal("{2AE8D6C4-FB43-430C-8AEB-15E5EEDAAE4B}", classLibrary2.
ParentProjectGuid
);
298
Assert.NotNull(myPhysicalFolderClassLibrary1.
ParentProjectGuid
);
299
Assert.NotNull(classLibrary2.
ParentProjectGuid
);
365
Assert.Null(solution.ProjectsInOrder[0].
ParentProjectGuid
);
372
Assert.Null(solution.ProjectsInOrder[1].
ParentProjectGuid
);
376
Assert.Null(solution.ProjectsInOrder[2].
ParentProjectGuid
);
Microsoft.Build.Engine.UnitTests (15)
Construction\SolutionFile_NewParser_Tests.cs (1)
91
solution.ProjectsInOrder[0].
ParentProjectGuid
.ShouldBeNull();
Construction\SolutionFile_OldParser_Tests.cs (14)
988
solution.ProjectsInOrder[0].
ParentProjectGuid
.ShouldBeNull();
996
solution.ProjectsInOrder[1].
ParentProjectGuid
.ShouldBeNull();
1004
solution.ProjectsInOrder[2].
ParentProjectGuid
.ShouldBeNull();
1012
solution.ProjectsInOrder[3].
ParentProjectGuid
.ShouldBeNull();
1074
solution.ProjectsInOrder[0].
ParentProjectGuid
.ShouldBeNull();
1080
solution.ProjectsInOrder[1].
ParentProjectGuid
.ShouldBeNull();
1086
solution.ProjectsInOrder[2].
ParentProjectGuid
.ShouldBe("{E0F97730-25D2-418A-A7BD-02CAFDC6E470}");
1092
solution.ProjectsInOrder[3].
ParentProjectGuid
.ShouldBe("{E0F97730-25D2-418A-A7BD-02CAFDC6E470}");
1098
solution.ProjectsInOrder[4].
ParentProjectGuid
.ShouldBe("{2AE8D6C4-FB43-430C-8AEB-15E5EEDAAE4B}");
1472
solution.ProjectsInOrder[0].
ParentProjectGuid
.ShouldBeNull();
1480
solution.ProjectsInOrder[1].
ParentProjectGuid
.ShouldBeNull();
1486
solution.ProjectsInOrder[2].
ParentProjectGuid
.ShouldBeNull();
1548
solution.ProjectsInOrder[0].
ParentProjectGuid
.ShouldBeNull();
1634
solution.ProjectsInOrder[2].
ParentProjectGuid
.ShouldBe("{092FE6E5-71F8-43F7-9C92-30E3124B8A22}");