51 references to GetAbsolutePath
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
319
AbsolutePath projectPath = TaskEnvironment.
GetAbsolutePath
(FileUtilities.AttemptToShortenPath(project.ItemSpec));
Microsoft.Build.Engine.UnitTests (3)
BackEnd\TaskEnvironment_Tests.cs (3)
231
var absolutePath = taskEnvironment.
GetAbsolutePath
(relativePath);
253
var resultPath = taskEnvironment.
GetAbsolutePath
(absoluteInputPath);
480
var absolutePath = taskEnvironment.
GetAbsolutePath
(invalidPath);
Microsoft.Build.Framework (1)
IMultiThreadableTask.cs (1)
17
/// <item>Use <see cref="TaskEnvironment.
GetAbsolutePath
(string)"/> instead of <see cref="System.IO.Path.GetFullPath(string)"/> for path resolution</item>
Microsoft.Build.Tasks.Core (40)
AssignTargetPath.cs (4)
70
TaskEnvironment.
GetAbsolutePath
(FileUtilities.EnsureTrailingSlash(RootFolder)).GetCanonicalForm();
86
Path.GetFullPath(TaskEnvironment.
GetAbsolutePath
(FileUtilities.EnsureTrailingSlash(RootFolder)));
131
TaskEnvironment.
GetAbsolutePath
(Files[i].ItemSpec).GetCanonicalForm();
149
Path.GetFullPath(TaskEnvironment.
GetAbsolutePath
(Files[i].ItemSpec));
Copy.cs (6)
521
sourceAbsolutePath = TaskEnvironment.
GetAbsolutePath
(sourceSpec);
522
destAbsolutePath = TaskEnvironment.
GetAbsolutePath
(destSpec);
687
sourceAbsolutePath = TaskEnvironment.
GetAbsolutePath
(sourceSpec);
688
destAbsolutePath = TaskEnvironment.
GetAbsolutePath
(destSpec);
856
AbsolutePath src = FileUtilities.NormalizePath(TaskEnvironment.
GetAbsolutePath
(sourceFolder.ItemSpec));
1062
if (DestinationFolder != null && FileSystems.Default.FileExists(TaskEnvironment.
GetAbsolutePath
(DestinationFolder.ItemSpec)))
Delete.cs (1)
128
filePath = TaskEnvironment.
GetAbsolutePath
(file.ItemSpec);
DownloadFile.cs (1)
182
AbsolutePath destinationFolderPath = TaskEnvironment.
GetAbsolutePath
(DestinationFolder.ItemSpec);
FileIO\GetFileHash.cs (1)
91
AbsolutePath filePath = TaskEnvironment.
GetAbsolutePath
(file.ItemSpec);
FileIO\ReadLinesFromFile.cs (1)
45
AbsolutePath filePath = TaskEnvironment.
GetAbsolutePath
(File.ItemSpec);
FileIO\VerifyFileHash.cs (1)
46
AbsolutePath filePath = TaskEnvironment.
GetAbsolutePath
(File);
FileIO\WriteLinesToFile.cs (1)
75
AbsolutePath filePath = FileUtilities.NormalizePath(TaskEnvironment.
GetAbsolutePath
(File.ItemSpec));
GetReferenceAssemblyPaths.cs (2)
169
? TaskEnvironment.
GetAbsolutePath
(RootPath)
302
result[i] = TaskEnvironment.
GetAbsolutePath
(parts[i]);
ListOperators\FindUnderPath.cs (4)
70
TaskEnvironment.
GetAbsolutePath
(FileUtilities.FixFilePath(Path.ItemSpec)).GetCanonicalForm());
77
System.IO.Path.GetFullPath(TaskEnvironment.
GetAbsolutePath
(FileUtilities.FixFilePath(Path.ItemSpec))));
103
TaskEnvironment.
GetAbsolutePath
(FileUtilities.FixFilePath(item.ItemSpec)).GetCanonicalForm());
110
System.IO.Path.GetFullPath(TaskEnvironment.
GetAbsolutePath
(FileUtilities.FixFilePath(item.ItemSpec))));
MakeDir.cs (1)
66
absolutePath = TaskEnvironment.
GetAbsolutePath
(FileUtilities.FixFilePath(directory.ItemSpec));
Move.cs (2)
166
sourceFile = TaskEnvironment.
GetAbsolutePath
(sourceSpec);
167
destinationFile = TaskEnvironment.
GetAbsolutePath
(destinationSpec);
RemoveDir.cs (1)
68
AbsolutePath directoryPath = TaskEnvironment.
GetAbsolutePath
(directory.ItemSpec);
Touch.cs (1)
101
path = TaskEnvironment.
GetAbsolutePath
(FileUtilities.FixFilePath(file.ItemSpec));
Unzip.cs (4)
94
AbsolutePath destinationPath = TaskEnvironment.
GetAbsolutePath
(DestinationFolder.ItemSpec);
117
sourceFilePath = TaskEnvironment.
GetAbsolutePath
(sourceFile.ItemSpec);
179
AbsolutePath fullDestinationDirectoryPath = TaskEnvironment.
GetAbsolutePath
(FileUtilities.EnsureTrailingSlash(destinationDirectory.FullName)).GetCanonicalForm();
189
AbsolutePath fullDestinationPath = TaskEnvironment.
GetAbsolutePath
(Path.Combine(destinationDirectory.FullName, zipArchiveEntry.FullName)).GetCanonicalForm();
WriteCodeFragment.cs (2)
120
outputFilePath = TaskEnvironment.
GetAbsolutePath
(OutputFile.ItemSpec);
124
AbsolutePath outputDirectoryPath = TaskEnvironment.
GetAbsolutePath
(OutputDirectory.ItemSpec);
XmlPeek.cs (1)
74
AbsolutePath? absoluteInputPath = XmlInputPath != null ? TaskEnvironment.
GetAbsolutePath
(XmlInputPath.ItemSpec) : null;
XmlPoke.cs (1)
71
inputPath = TaskEnvironment.
GetAbsolutePath
(XmlInputPath.ItemSpec);
XslTransformation.cs (3)
113
? Array.ConvertAll(XmlInputPaths, item => item.ItemSpec != null ? TaskEnvironment.
GetAbsolutePath
(item.ItemSpec) : (AbsolutePath?)null)
117
AbsolutePath? absoluteXslInputPath = XslInputPath?.ItemSpec != null ? TaskEnvironment.
GetAbsolutePath
(XslInputPath.ItemSpec) : null;
181
using (XmlWriter xmlWriter = XmlWriter.Create(TaskEnvironment.
GetAbsolutePath
(_outputPaths[i].ItemSpec), xslct.OutputSettings))
ZipDirectory.cs (2)
66
AbsolutePath sourceDirectoryAbsolutePath = TaskEnvironment.
GetAbsolutePath
(SourceDirectory.ItemSpec);
75
AbsolutePath destinationFileAbsolutePath = TaskEnvironment.
GetAbsolutePath
(DestinationFile.ItemSpec);
Microsoft.Build.Utilities.Core (6)
ToolTask.cs (6)
534
if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.Default.FileExists(TaskEnvironment.
GetAbsolutePath
(pathToTool))))
555
bool isExistingFile = FileSystems.Default.FileExists(TaskEnvironment.
GetAbsolutePath
(pathToTool));
685
startInfo.WorkingDirectory = TaskEnvironment.
GetAbsolutePath
(workingDirectory);
893
AbsolutePath filePath = !string.IsNullOrEmpty(fileName) ? TaskEnvironment.
GetAbsolutePath
(fileName) : new AbsolutePath(fileName, ignoreRootedCheck: true);
1431
return FileSystems.Default.DirectoryExists(TaskEnvironment.
GetAbsolutePath
(path));
1439
.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.FileExists(TaskEnvironment.
GetAbsolutePath
(fullPath)));