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