6 writes to ProjectName
Microsoft.Build (6)
Construction\Solution\ProjectInSolution.cs (1)
122
ProjectName
= null;
Construction\Solution\SolutionFile.cs (5)
370
ProjectName
= GetProjectName(projectModel),
482
ProjectName
= GetSolutionFolderName(solutionFolderModel),
1182
proj.
ProjectName
= proj.RelativePath;
1510
proj.
ProjectName
= match.Groups["PROJECTNAME"].Value.Trim();
1518
proj.
ProjectName
= "EmptyProjectName." + Guid.NewGuid();
59 references to ProjectName
Microsoft.Build (27)
Construction\Solution\ProjectInSolution.cs (6)
397
_uniqueProjectName = CleanseProjectName(
ProjectName
);
417
new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid",
ProjectName
, ProjectGuid, ParentProjectGuid);
424
_uniqueProjectName = CleanseProjectName(uniqueName +
ProjectName
);
441
_originalProjectName =
ProjectName
;
459
new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid",
ProjectName
, ProjectGuid, ParentProjectGuid);
466
_originalProjectName = projectName +
ProjectName
;
Construction\Solution\SolutionFile.cs (12)
830
if (String.Equals(otherProj.
ProjectName
, proj.
ProjectName
, StringComparison.OrdinalIgnoreCase))
845
if (uniqueName != proj.
ProjectName
)
853
else if (uniqueName != project.
ProjectName
)
879
uniqueNameExists ? uniqueName : proj.
ProjectName
);
1057
new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseProjectDepGuidError", proj.
ProjectName
);
1075
new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseWebProjectPropertiesError", proj.
ProjectName
);
1089
_solutionFile, proj.
ProjectName
);
1101
new BuildEventFileInfo(FullPath), "SolutionParseProjectEofError", proj.
ProjectName
);
1288
proj.
ProjectName
, proj.RelativePath);
1295
proj.
ProjectName
);
1516
if (String.IsNullOrEmpty(proj.
ProjectName
))
Construction\Solution\SolutionProjectGenerator.cs (9)
1249
string safeItemNameFromProjectName = MakeIntoSafeItemName(project.
ProjectName
);
1295
baseName = project.
ProjectName
;
1546
project.
ProjectName
,
1563
project.
ProjectName
,
1572
project.
ProjectName
,
1901
project.
ProjectName
,
1913
project.
ProjectName
,
1942
project.
ProjectName
,
1954
project.
ProjectName
,
Microsoft.Build.Engine.OM.UnitTests (11)
Construction\SolutionFile_Tests.cs (11)
99
Assert.Equal(expectedProjectName, solution.ProjectsInOrder[0].
ProjectName
);
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");
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 (21)
Construction\SolutionFile_NewParser_Tests.cs (1)
88
solution.ProjectsInOrder[0].
ProjectName
.ShouldBe(@"C:\WebSites\WebApplication3\");
Construction\SolutionFile_OldParser_Tests.cs (20)
43
proj.
ProjectName
.ShouldBe("Project name");
84
proj.
ProjectName
.ShouldBe("Project name.myvctype");
103
proj.
ProjectName
.ShouldBe("Project name");
139
Assert.Equal("Project name", solution.ProjectsInOrder[0].
ProjectName
);
159
proj.
ProjectName
.ShouldStartWith("EmptyProjectName");
722
proj.
ProjectName
.ShouldBe("MyProject,(=IsGreat)");
759
Assert.Equal("MyProject,(=IsGreat)", solution.ProjectsInOrder[0].
ProjectName
);
785
proj.
ProjectName
.ShouldBe("ProjectInSubdirectory");
984
solution.ProjectsInOrder[0].
ProjectName
.ShouldBe("ConsoleApplication1");
992
solution.ProjectsInOrder[1].
ProjectName
.ShouldBe("vbClassLibrary");
1000
solution.ProjectsInOrder[2].
ProjectName
.ShouldBe("ClassLibrary1");
1008
solution.ProjectsInOrder[3].
ProjectName
.ShouldBe("cpsFsProject");
1389
solution.ProjectsInOrder[0].
ProjectName
.ShouldBe("HubApp2");
1393
solution.ProjectsInOrder[1].
ProjectName
.ShouldBe("HubApp2.Store");
1397
solution.ProjectsInOrder[2].
ProjectName
.ShouldBe("Shared");
1401
solution.ProjectsInOrder[3].
ProjectName
.ShouldBe("HubApp2.Phone");
1405
solution.ProjectsInOrder[4].
ProjectName
.ShouldBe("MySlnFolder");
1411
solution.ProjectsInOrder[5].
ProjectName
.ShouldBe("ClassLibrary1");
1544
solution.ProjectsInOrder[0].
ProjectName
.ShouldBe(@"C:\WebSites\WebApplication3\");
2427
solution.ProjectsInOrder[0].
ProjectName
.ShouldBe("ProjectA");