3 writes to RelativePath
Microsoft.Build (3)
Construction\Solution\SolutionFile.cs (3)
371RelativePath = projectModel.FilePath, 1176RelativePath = Path.Combine(etpProjectRelativeDir, fileElementValue) 1511proj.RelativePath = match.Groups["RELATIVEPATH"].Value.Trim();
65 references to RelativePath
Microsoft.Build (23)
Construction\Solution\SolutionFile.cs (18)
399if (IsEtpProjectFile(proj.RelativePath)) 817if (Uri.TryCreate(proj.RelativePath, UriKind.Absolute, out Uri uri)) 889projectPaths.Add(FileUtilities.FixFilePath(project.RelativePath)); 1107if (IsEtpProjectFile(proj.RelativePath)) 1122string fullPathToEtpProj = Path.Combine(SolutionFileDirectory, etpProj.RelativePath); 1123string etpProjectRelativeDir = Path.GetDirectoryName(etpProj.RelativePath); 1182proj.ProjectName = proj.RelativePath; 1210etpProj.RelativePath, e.Message); 1219etpProj.RelativePath, e.Message); 1228etpProj.RelativePath, e.Message); 1237etpProj.RelativePath, e.Message); 1246etpProj.RelativePath, e.Message); 1281ErrorUtilities.VerifyThrow(proj.RelativePath != null, "Project relative path cannot be null."); 1284ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(proj.RelativePath.IndexOfAny(Path.GetInvalidPathChars()) == -1, 1288proj.ProjectName, proj.RelativePath); 1291ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(proj.RelativePath.Length > 0, 1559ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath); 1893return proj.RelativePath;
Construction\Solution\SolutionProjectGenerator.cs (5)
654if (!solutionFile.ProjectShouldBuild(project.RelativePath)) 1878project.RelativePath); 1889project.RelativePath, 2184new BuildEventFileInfo(project.RelativePath), 2186project.RelativePath,
Microsoft.Build.Engine.OM.UnitTests (10)
Construction\SolutionFile_Tests.cs (10)
100Assert.Equal(ConvertToUnixPathIfNeeded("Relative path\\to\\Project name.myvctype"), solution.ProjectsInOrder[0].RelativePath); 193Assert.Equal(ConvertToUnixPathIfNeeded("ConsoleApplication1\\ConsoleApplication1.vbproj"), consoleApplication1.RelativePath); 198Assert.Equal(ConvertToUnixPathIfNeeded("vbClassLibrary\\vbClassLibrary.vbproj"), vbClassLibrary.RelativePath); 203Assert.Equal(ConvertToUnixPathIfNeeded("ClassLibrary1\\ClassLibrary1.csproj"), classLibrary1.RelativePath); 274.FirstOrDefault(p => p.RelativePath == ConvertToUnixPathIfNeeded("ClassLibrary1\\ClassLibrary1.csproj")); 280.FirstOrDefault(p => p.RelativePath == ConvertToUnixPathIfNeeded("MyPhysicalFolder\\ClassLibrary1\\ClassLibrary1.csproj")); 285.FirstOrDefault(p => p.RelativePath == ConvertToUnixPathIfNeeded("ClassLibrary2\\ClassLibrary2.csproj")); 362Assert.Equal(ConvertToUnixPathIfNeeded("ClassLibrary1\\ClassLibrary1.csproj"), classLibrary1.RelativePath); 367Assert.Equal(ConvertToUnixPathIfNeeded("ClassLibrary2\\ClassLibrary2.csproj"), classLibrary2.RelativePath); 374Assert.Equal(ConvertToUnixPathIfNeeded("ClassLibrary3\\ClassLibrary3.csproj"), solution.ProjectsInOrder[2].RelativePath);
Microsoft.Build.Engine.UnitTests (31)
Construction\SolutionFile_NewParser_Tests.cs (1)
89solution.ProjectsInOrder[0].RelativePath.ShouldBe(ConvertToUnixPathIfNeeded(@"C:\WebSites\WebApplication3\"));
Construction\SolutionFile_OldParser_Tests.cs (29)
44proj.RelativePath.ShouldBe("Relative path to project file"); 85proj.RelativePath.ShouldBe("Relative path\\to\\Project name.myvctype"); 104proj.RelativePath.ShouldBe("Relative path to project file"); 140Assert.Equal("Relative path to project file", solution.ProjectsInOrder[0].RelativePath); 160proj.RelativePath.ShouldBe("src\\.proj"); 205solution.ProjectsInOrder[0].RelativePath.ShouldBe(@"someproj.etp"); 206solution.ProjectsInOrder[1].RelativePath.ShouldBe(@"ClassLibrary2.csproj"); 395solution.ProjectsInOrder[0].RelativePath.ShouldBe(@"someproj.etp"); 396solution.ProjectsInOrder[1].RelativePath.ShouldBe(@"someproj2.etp"); 397solution.ProjectsInOrder[2].RelativePath.ShouldBe(@"ClassLibrary1.csproj"); 610solution.ProjectsInOrder[0].RelativePath.ShouldBe(@"someproj.etp"); 611solution.ProjectsInOrder[1].RelativePath.ShouldBe(@"someproj2.etp"); 612solution.ProjectsInOrder[2].RelativePath.ShouldBe(@"ETPProjUpgradeTest\someproj3.etp"); 613solution.ProjectsInOrder[3].RelativePath.ShouldBe(Path.Combine("ETPProjUpgradeTest", "..", "SomeFolder", "ClassLibrary1.csproj")); 723proj.RelativePath.ShouldBe("Relative path to project file"); 760Assert.Equal("Relative path to project file", solution.ProjectsInOrder[0].RelativePath); 786proj.RelativePath.ShouldBe(Path.Combine("RelativePath", "project file")); 985solution.ProjectsInOrder[0].RelativePath.ShouldBe(@"ConsoleApplication1\ConsoleApplication1.vbproj"); 993solution.ProjectsInOrder[1].RelativePath.ShouldBe(@"vbClassLibrary\vbClassLibrary.vbproj"); 1001solution.ProjectsInOrder[2].RelativePath.ShouldBe(@"ClassLibrary1\ClassLibrary1.csproj"); 1009solution.ProjectsInOrder[3].RelativePath.ShouldBe(@"cpsFsProject\ProjectFileName.fsproj"); 1071solution.ProjectsInOrder[0].RelativePath.ShouldBe(@"ClassLibrary1\ClassLibrary1.csproj"); 1083solution.ProjectsInOrder[2].RelativePath.ShouldBe(@"MyPhysicalFolder\ClassLibrary1\ClassLibrary1.csproj"); 1095solution.ProjectsInOrder[4].RelativePath.ShouldBe(@"ClassLibrary2\ClassLibrary2.csproj"); 1468solution.ProjectsInOrder[0].RelativePath.ShouldBe(@"ClassLibrary1\ClassLibrary1.csproj"); 1475solution.ProjectsInOrder[1].RelativePath.ShouldBe(@"ClassLibrary2\ClassLibrary2.csproj"); 1483solution.ProjectsInOrder[2].RelativePath.ShouldBe(@"ClassLibrary3\ClassLibrary3.csproj"); 1545solution.ProjectsInOrder[0].RelativePath.ShouldBe(@"C:\WebSites\WebApplication3\"); 2428solution.ProjectsInOrder[0].RelativePath.ShouldBe(expectedRelativePath);
Construction\SolutionProjectGenerator_Tests.cs (1)
2757projectInSolution.AbsolutePath.ShouldBe(Path.Combine(solution.SolutionFileDirectory, projectInSolution.RelativePath));
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.cs (1)
211projectPaths.Add(project.RelativePath);