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