87 references to GetAbsolutePath
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
319AbsolutePath projectPath = TaskEnvironment.GetAbsolutePath(FileUtilities.AttemptToShortenPath(project.ItemSpec));
Microsoft.Build.Engine.UnitTests (3)
BackEnd\TaskEnvironment_Tests.cs (3)
231var absolutePath = taskEnvironment.GetAbsolutePath(relativePath); 253var resultPath = taskEnvironment.GetAbsolutePath(absoluteInputPath); 480var 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 (76)
AddToWin32Manifest.cs (2)
103AbsolutePath absolutePath = TaskEnvironment.GetAbsolutePath(ApplicationManifest.ItemSpec); 184AbsolutePath outputPath = TaskEnvironment.GetAbsolutePath(originalPath);
Al.cs (3)
313if (String.IsNullOrEmpty(pathToTool) || !FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(pathToTool))) 323? SdkToolsPathUtility.FileInfoExists(TaskEnvironment.GetAbsolutePath(f)) 332return string.IsNullOrEmpty(pathToTool) ? pathToTool : TaskEnvironment.GetAbsolutePath(pathToTool).Value;
AspNetCompiler.cs (1)
311return string.IsNullOrEmpty(pathToTool) ? pathToTool : TaskEnvironment.GetAbsolutePath(pathToTool).Value;
AssignTargetPath.cs (4)
70TaskEnvironment.GetAbsolutePath(FileUtilities.EnsureTrailingSlash(RootFolder)).GetCanonicalForm(); 86Path.GetFullPath(TaskEnvironment.GetAbsolutePath(FileUtilities.EnsureTrailingSlash(RootFolder))); 131TaskEnvironment.GetAbsolutePath(Files[i].ItemSpec).GetCanonicalForm(); 149Path.GetFullPath(TaskEnvironment.GetAbsolutePath(Files[i].ItemSpec));
Copy.cs (6)
521sourceAbsolutePath = TaskEnvironment.GetAbsolutePath(sourceSpec); 522destAbsolutePath = TaskEnvironment.GetAbsolutePath(destSpec); 687sourceAbsolutePath = TaskEnvironment.GetAbsolutePath(sourceSpec); 688destAbsolutePath = TaskEnvironment.GetAbsolutePath(destSpec); 856AbsolutePath src = FileUtilities.NormalizePath(TaskEnvironment.GetAbsolutePath(sourceFolder.ItemSpec)); 1065if (DestinationFolder != null && FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(DestinationFolder.ItemSpec)))
CreateManifestResourceName.cs (2)
196AbsolutePath dependentPath = TaskEnvironment.GetAbsolutePath(Path.Combine(Path.GetDirectoryName(fileName), conventionDependentUpon)); 221AbsolutePath pathToDependent = TaskEnvironment.GetAbsolutePath(Path.Combine(Path.GetDirectoryName(fileName), dependentUpon));
Delete.cs (1)
128filePath = TaskEnvironment.GetAbsolutePath(file.ItemSpec);
DownloadFile.cs (1)
182AbsolutePath destinationFolderPath = TaskEnvironment.GetAbsolutePath(DestinationFolder.ItemSpec);
FileIO\GetFileHash.cs (1)
91AbsolutePath filePath = TaskEnvironment.GetAbsolutePath(file.ItemSpec);
FileIO\ReadLinesFromFile.cs (1)
45AbsolutePath filePath = TaskEnvironment.GetAbsolutePath(File.ItemSpec);
FileIO\VerifyFileHash.cs (1)
46AbsolutePath filePath = TaskEnvironment.GetAbsolutePath(File);
FileIO\WriteLinesToFile.cs (1)
94AbsolutePath filePath = FileUtilities.NormalizePath(TaskEnvironment.GetAbsolutePath(File.ItemSpec));
GenerateApplicationManifest.cs (3)
242if (!file.ImportComComponent(TaskEnvironment.GetAbsolutePath(item.ItemSpec), manifest.OutputMessages, name)) 289AbsolutePath trustInfoPath = TaskEnvironment.GetAbsolutePath(TrustInfoFile.ItemSpec); 458AbsolutePath inputManifestPath = TaskEnvironment.GetAbsolutePath(InputManifest.ItemSpec);
GenerateManifestBase.cs (2)
458AbsolutePath inputManifestPath = TaskEnvironment.GetAbsolutePath(InputManifest.ItemSpec); 620AbsolutePath outputManifestPath = TaskEnvironment.GetAbsolutePath(OutputManifest.ItemSpec);
GetAssemblyIdentity.cs (1)
73? TaskEnvironment.GetAbsolutePath(item.ItemSpec)
GetReferenceAssemblyPaths.cs (2)
169? TaskEnvironment.GetAbsolutePath(RootPath) 302result[i] = TaskEnvironment.GetAbsolutePath(parts[i]);
ListOperators\FindUnderPath.cs (4)
70TaskEnvironment.GetAbsolutePath(FileUtilities.FixFilePath(Path.ItemSpec)).GetCanonicalForm()); 77System.IO.Path.GetFullPath(TaskEnvironment.GetAbsolutePath(FileUtilities.FixFilePath(Path.ItemSpec)))); 103TaskEnvironment.GetAbsolutePath(FileUtilities.FixFilePath(item.ItemSpec)).GetCanonicalForm()); 110System.IO.Path.GetFullPath(TaskEnvironment.GetAbsolutePath(FileUtilities.FixFilePath(item.ItemSpec))));
MakeDir.cs (1)
66absolutePath = TaskEnvironment.GetAbsolutePath(FileUtilities.FixFilePath(directory.ItemSpec));
ManifestUtil\Util.cs (1)
428key = ((string)taskEnvironment.GetAbsolutePath(item.ItemSpec).GetCanonicalForm()).ToUpperInvariant();
Move.cs (2)
166sourceFile = TaskEnvironment.GetAbsolutePath(sourceSpec); 167destinationFile = TaskEnvironment.GetAbsolutePath(destinationSpec);
RemoveDir.cs (1)
68AbsolutePath directoryPath = TaskEnvironment.GetAbsolutePath(directory.ItemSpec);
ResolveManifestFiles.cs (6)
419: AssemblyIdentity.FromManagedAssembly(TaskEnvironment.GetAbsolutePath(item.ItemSpec)); 526var outputAssembliesMap = outputAssemblies.ToDictionary(p => (string)TaskEnvironment.GetAbsolutePath(p.ItemSpec).GetCanonicalForm(), StringComparer.OrdinalIgnoreCase); 538string key = (string)TaskEnvironment.GetAbsolutePath(item.ItemSpec).GetCanonicalForm(); 778: AssemblyIdentity.FromManagedAssembly(TaskEnvironment.GetAbsolutePath(item.ItemSpec)); 939: AssemblyIdentity.FromManagedAssembly(_taskEnvironment.GetAbsolutePath(item.ItemSpec)); 952: AssemblyIdentity.FromManagedAssembly(_taskEnvironment.GetAbsolutePath(item.ItemSpec));
SGen.cs (5)
175thisPath = TaskEnvironment.GetAbsolutePath(_buildAssemblyPath).GetCanonicalForm().Value; 310if (String.IsNullOrEmpty(pathToTool) || !FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(pathToTool))) 314? SdkToolsPathUtility.FileInfoExists(TaskEnvironment.GetAbsolutePath(f)) 319return string.IsNullOrEmpty(pathToTool) ? pathToTool : TaskEnvironment.GetAbsolutePath(pathToTool).Value; 332if (string.IsNullOrEmpty(reference) || !FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(reference)))
TaskEnvironmentExtensions.cs (2)
14/// Absolutizes each non-empty path in the array using <see cref="TaskEnvironment.GetAbsolutePath"/>. 30: taskEnvironment.GetAbsolutePath(paths[i]);
Touch.cs (1)
101path = TaskEnvironment.GetAbsolutePath(FileUtilities.FixFilePath(file.ItemSpec));
Unzip.cs (4)
94AbsolutePath destinationPath = TaskEnvironment.GetAbsolutePath(DestinationFolder.ItemSpec); 117sourceFilePath = TaskEnvironment.GetAbsolutePath(sourceFile.ItemSpec); 179AbsolutePath fullDestinationDirectoryPath = TaskEnvironment.GetAbsolutePath(FileUtilities.EnsureTrailingSlash(destinationDirectory.FullName)).GetCanonicalForm(); 189AbsolutePath fullDestinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destinationDirectory.FullName, zipArchiveEntry.FullName)).GetCanonicalForm();
UpdateManifest.cs (3)
42AbsolutePath inputManifestPath = TaskEnvironment.GetAbsolutePath(InputManifest.ItemSpec); 43AbsolutePath outputManifestPath = TaskEnvironment.GetAbsolutePath(OutputManifest.ItemSpec); 44AbsolutePath applicationManifestPath = TaskEnvironment.GetAbsolutePath(ApplicationManifest.ItemSpec);
WinMDExp.cs (4)
246? SdkToolsPathUtility.FileInfoExists(TaskEnvironment.GetAbsolutePath(f)) 258pathToTool = TaskEnvironment.GetAbsolutePath(pathToTool); 285AbsolutePath outputWindowsMetadataFile = TaskEnvironment.GetAbsolutePath(OutputWindowsMetadataFile); 286AbsolutePath winMDModule = TaskEnvironment.GetAbsolutePath(WinMDModule);
WriteCodeFragment.cs (2)
120outputFilePath = TaskEnvironment.GetAbsolutePath(OutputFile.ItemSpec); 124AbsolutePath outputDirectoryPath = TaskEnvironment.GetAbsolutePath(OutputDirectory.ItemSpec);
XmlPeek.cs (1)
74AbsolutePath? absoluteInputPath = XmlInputPath != null ? TaskEnvironment.GetAbsolutePath(XmlInputPath.ItemSpec) : null;
XmlPoke.cs (1)
71inputPath = TaskEnvironment.GetAbsolutePath(XmlInputPath.ItemSpec);
XslTransformation.cs (4)
113? Array.ConvertAll(XmlInputPaths, item => item.ItemSpec != null ? TaskEnvironment.GetAbsolutePath(item.ItemSpec) : (AbsolutePath?)null) 117AbsolutePath? absoluteXslInputPath = XslInputPath?.ItemSpec != null ? TaskEnvironment.GetAbsolutePath(XslInputPath.ItemSpec) : null; 181using (XmlWriter xmlWriter = XmlWriter.Create(TaskEnvironment.GetAbsolutePath(_outputPaths[i].ItemSpec), xslct.OutputSettings)) 511string assemblyPath = _taskEnvironment.GetAbsolutePath(pair[0]);
ZipDirectory.cs (2)
66AbsolutePath sourceDirectoryAbsolutePath = TaskEnvironment.GetAbsolutePath(SourceDirectory.ItemSpec); 75AbsolutePath destinationFileAbsolutePath = TaskEnvironment.GetAbsolutePath(DestinationFile.ItemSpec);
Microsoft.Build.Utilities.Core (6)
ToolTask.cs (6)
534if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(pathToTool)))) 555bool isExistingFile = FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(pathToTool)); 685startInfo.WorkingDirectory = TaskEnvironment.GetAbsolutePath(workingDirectory); 893AbsolutePath filePath = !string.IsNullOrEmpty(fileName) ? TaskEnvironment.GetAbsolutePath(fileName) : new AbsolutePath(fileName, ignoreRootedCheck: true); 1431return FileSystems.Default.DirectoryExists(TaskEnvironment.GetAbsolutePath(path)); 1439.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(fullPath)));