14 writes to FullPath
Microsoft.Build (1)
Construction\Solution\SolutionFile.cs (1)
291var solution = new SolutionFile { FullPath = solutionFile };
Microsoft.Build.Engine.UnitTests (13)
Construction\SolutionFile_NewParser_Tests.cs (1)
138SolutionFile solutionFile = new SolutionFile { FullPath = solutionPath };
Construction\SolutionFile_OldParser_Tests.cs (8)
36p.FullPath = NativeMethodsShared.IsWindows ? "c:\\foo.sln" : "/foo.sln"; 60p.FullPath = "c:\\foo.sln"; 77p.FullPath = NativeMethodsShared.IsWindows ? "c:\\foo.sln" : "/foo.sln"; 96p.FullPath = NativeMethodsShared.IsWindows ? "c:\\foo.sln" : "/foo.sln"; 152p.FullPath = NativeMethodsShared.IsWindows ? "c:\\foo.sln" : "/foo.sln"; 715p.FullPath = NativeMethodsShared.IsWindows ? "c:\\foo.sln" : "/foo.sln"; 777p.FullPath = Path.Combine(solutionFolder.Path, "RelativePath", "project file"); 805sp.FullPath = FileUtilities.GetTemporaryFileName(".sln");
Construction\SolutionProjectGenerator_Tests.cs (4)
674sp.FullPath = solutionFile; 695sp1.FullPath = solutionFileMultipleProjects; 759sp.FullPath = solutionFile; 1093var solution = new SolutionFile { FullPath = solutionFile };
50 references to FullPath
Microsoft.Build (47)
Construction\Solution\ProjectInSolution.cs (2)
427new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid, ParentProjectGuid); 469new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid, ParentProjectGuid);
Construction\Solution\SolutionFile.cs (25)
234throw new ArgumentNullException(nameof(FullPath)); 311ISolutionSerializer serializer = SolutionSerializers.GetSerializerByMoniker(FullPath); 316new BuildEventFileInfo(FullPath), 318$"No solution serializer was found for {FullPath}"); 324SolutionModel solutionModel = serializer.OpenAsync(FullPath, CancellationToken.None).GetAwaiter().GetResult(); 329var errorLocation = ElementLocation.Create(FullPath, solutionEx.Line ?? 0, solutionEx.Column ?? 0); 338new BuildEventFileInfo(FullPath), 899new BuildEventFileInfo(FullPath), 964new BuildEventFileInfo(FullPath), "SolutionParseNoHeaderError"); 1010new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseVersionMismatchError", 1020new BuildEventFileInfo(FullPath, _currentLineNumber, 0), 1079new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseProjectDepGuidError", proj.ProjectName); 1097new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseWebProjectPropertiesError", proj.ProjectName); 1123new BuildEventFileInfo(FullPath), "SolutionParseProjectEofError", proj.ProjectName); 1308new BuildEventFileInfo(FullPath, _currentLineNumber, 0), 1315new BuildEventFileInfo(FullPath, _currentLineNumber, 0), 1505new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseProjectError"); 1557ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath); 1605new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseNestedProjectError"); 1613new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseNestedProjectUndefinedError", projectGuid, parentProjectGuid); 1654new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseInvalidSolutionConfigurationEntry", str); 1666new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseInvalidSolutionConfigurationEntry", str); 1668var (configuration, platform) = ParseConfigurationName(fullConfigurationName, FullPath, _currentLineNumber, str); 1731new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseInvalidProjectSolutionConfigurationEntry", str); 1777new BuildEventFileInfo(FullPath), "SolutionParseInvalidProjectSolutionConfigurationEntry",
Construction\Solution\SolutionProjectGenerator.cs (14)
287ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(dependencyProject != null, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo(solutionFile.FullPath), "SolutionParseProjectDepNotFoundError", project.ProjectGuid, dependencyProjectGuid); 701new BuildEventFileInfo(_solutionFile.FullPath), 863traversalProject.FullPath = $"{_solutionFile.FullPath}.metaproj"; 985string metaprojectPath = $"{_solutionFile.FullPath}.metaproj.tmp"; 1022string escapedSolutionFileName = EscapingUtilities.Escape(Path.GetFileName(_solutionFile.FullPath)); 1470AddPropertyGroupForAspNetConfiguration(traversalProject, metaprojectInstance, project, configurationName, aspNetCompilerParameters, _solutionFile.FullPath); 1556new BuildEventFileInfo(_solutionFile.FullPath), 1583new BuildEventFileInfo(_solutionFile.FullPath), 1604new BuildEventFileInfo(_solutionFile.FullPath), 2225new BuildEventFileInfo(_solutionFile.FullPath), 2294globalProperties.AddProperty("SolutionExt", EscapingUtilities.Escape(Path.GetExtension(_solutionFile.FullPath))); 2295globalProperties.AddProperty("SolutionFileName", EscapingUtilities.Escape(Path.GetFileName(_solutionFile.FullPath))); 2296globalProperties.AddProperty("SolutionName", EscapingUtilities.Escape(Path.GetFileNameWithoutExtension(_solutionFile.FullPath))); 2298globalProperties.AddProperty(SolutionPathPropertyName, EscapingUtilities.Escape(Path.Combine(_solutionFile.SolutionFileDirectory, Path.GetFileName(_solutionFile.FullPath))));
Graph\GraphBuilder.cs (5)
302solutionGlobalPropertiesBuilder["SolutionExt"] = EscapingUtilities.Escape(Path.GetExtension(Solution.FullPath)); 303solutionGlobalPropertiesBuilder["SolutionFileName"] = EscapingUtilities.Escape(Path.GetFileName(Solution.FullPath)); 304solutionGlobalPropertiesBuilder["SolutionName"] = EscapingUtilities.Escape(Path.GetFileNameWithoutExtension(Solution.FullPath)); 305solutionGlobalPropertiesBuilder[SolutionProjectGenerator.SolutionPathPropertyName] = EscapingUtilities.Escape(Path.Combine(Solution.SolutionFileDirectory, Path.GetFileName(Solution.FullPath))); 350new BuildEventFileInfo(Solution.FullPath),
Graph\ProjectGraph.cs (1)
679ElementLocation.Create(Solution.FullPath),
Microsoft.Build.Engine.UnitTests (3)
Construction\SolutionFile_OldParser_Tests.cs (1)
2429solution.ProjectsInOrder[0].AbsolutePath.ShouldBe(Path.GetFullPath(Path.Combine(Path.GetDirectoryName(solution.FullPath)!, expectedRelativePath)));
Construction\SolutionProjectGenerator_Tests.cs (2)
2041Assert.True(File.Exists(solution.FullPath + ".metaproj")); // "Solution parser should have written in-memory project to disk" 2042File.Delete(solution.FullPath + ".metaproj");