131 references to GetAbsolutePath
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
304
AbsolutePath projectPath = TaskEnvironment.
GetAbsolutePath
(FileUtilities.AttemptToShortenPath(project.ItemSpec));
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 (80)
AddToWin32Manifest.cs (2)
103
AbsolutePath absolutePath = TaskEnvironment.
GetAbsolutePath
(ApplicationManifest.ItemSpec);
184
AbsolutePath outputPath = TaskEnvironment.
GetAbsolutePath
(originalPath);
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigCache.cs (1)
52
.Select(assemblyFolder => taskEnvironment.
GetAbsolutePath
(assemblyFolder.DirectoryPath).Value)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
191
: taskEnvironment.
GetAbsolutePath
(assemblyFolder.DirectoryPath).Value;
AssemblyDependency\GenerateBindingRedirects.cs (2)
112
AbsolutePath outputAppConfigFile = TaskEnvironment.
GetAbsolutePath
(OutputAppConfigFile.ItemSpec);
344
document = LoadAppConfig(TaskEnvironment.
GetAbsolutePath
(appConfigItem.ItemSpec));
AssemblyDependency\HintPathResolver.cs (1)
48
string fullHintPath = taskEnvironment.
GetAbsolutePath
(hintPath).Value;
AssemblyDependency\RawFilenameResolver.cs (1)
53
: taskEnvironment.
GetAbsolutePath
(rawFileNameCandidate).Value;
AssemblyDependency\ReferenceTable.cs (3)
481
reference.FullPath = _taskEnvironment.
GetAbsolutePath
(assemblyFileName).GetCanonicalForm();
1370
resolvedPath = FileUtilities.FixFilePath(_taskEnvironment.
GetAbsolutePath
(resolvedPath).GetCanonicalForm()).Value;
1374
resolvedPath = FileUtilities.NormalizePath(_taskEnvironment.
GetAbsolutePath
(resolvedPath));
AssemblyDependency\ResolveAssemblyReference.cs (2)
1162
? TaskEnvironment.
GetAbsolutePath
(path)
1198
? TaskEnvironment.
GetAbsolutePath
(path).GetCanonicalFormNoThrow(Log)
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)
524
sourceAbsolutePath = TaskEnvironment.
GetAbsolutePath
(sourceSpec);
525
destAbsolutePath = TaskEnvironment.
GetAbsolutePath
(destSpec);
690
sourceAbsolutePath = TaskEnvironment.
GetAbsolutePath
(sourceSpec);
691
destAbsolutePath = TaskEnvironment.
GetAbsolutePath
(destSpec);
859
AbsolutePath src = FileUtilities.NormalizePath(TaskEnvironment.
GetAbsolutePath
(sourceFolder.ItemSpec));
1072
if (DestinationFolder != null && FileSystems.Default.FileExists(TaskEnvironment.
GetAbsolutePath
(DestinationFolder.ItemSpec)))
CreateManifestResourceName.cs (2)
196
AbsolutePath dependentPath = TaskEnvironment.
GetAbsolutePath
(Path.Combine(Path.GetDirectoryName(fileName), conventionDependentUpon));
221
AbsolutePath pathToDependent = TaskEnvironment.
GetAbsolutePath
(Path.Combine(Path.GetDirectoryName(fileName), dependentUpon));
Delete.cs (1)
127
filePath = TaskEnvironment.
GetAbsolutePath
(file.ItemSpec);
DownloadFile.cs (1)
182
AbsolutePath destinationFolderPath = TaskEnvironment.
GetAbsolutePath
(DestinationFolder.ItemSpec);
Exec.cs (1)
464
? TaskEnvironment.
GetAbsolutePath
(WorkingDirectory)
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)
93
AbsolutePath filePath = FileUtilities.NormalizePath(TaskEnvironment.
GetAbsolutePath
(File.ItemSpec));
GenerateApplicationManifest.cs (3)
242
if (!file.ImportComComponent(TaskEnvironment.
GetAbsolutePath
(item.ItemSpec), manifest.OutputMessages, name))
289
AbsolutePath trustInfoPath = TaskEnvironment.
GetAbsolutePath
(TrustInfoFile.ItemSpec);
458
AbsolutePath inputManifestPath = TaskEnvironment.
GetAbsolutePath
(InputManifest.ItemSpec);
GenerateLauncher.cs (1)
70
AbsolutePath outputPath = string.IsNullOrEmpty(OutputPath) ? default : TaskEnvironment.
GetAbsolutePath
(OutputPath);
GenerateManifestBase.cs (2)
458
AbsolutePath inputManifestPath = TaskEnvironment.
GetAbsolutePath
(InputManifest.ItemSpec);
620
AbsolutePath outputManifestPath = TaskEnvironment.
GetAbsolutePath
(OutputManifest.ItemSpec);
GetAssemblyIdentity.cs (1)
72
? TaskEnvironment.
GetAbsolutePath
(item.ItemSpec)
GetReferenceAssemblyPaths.cs (2)
169
? TaskEnvironment.
GetAbsolutePath
(RootPath)
302
result[i] = TaskEnvironment.
GetAbsolutePath
(parts[i]);
InstalledSDKResolver.cs (1)
56
string sdkDirectory = taskEnvironment.
GetAbsolutePath
(resolvedSDK.ItemSpec).Value;
LC.cs (1)
139
? SdkToolsPathUtility.FileInfoExists(TaskEnvironment.
GetAbsolutePath
(f))
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)
65
absolutePath = TaskEnvironment.
GetAbsolutePath
(FileUtilities.FixFilePath(directory.ItemSpec));
ManifestUtil\LauncherBuilder.cs (2)
44
AbsolutePath path = string.IsNullOrEmpty(outputPath) ? default : TaskEnvironment.
GetAbsolutePath
(outputPath);
66
AbsolutePath launcherPath = string.IsNullOrEmpty(LauncherPath) ? default : TaskEnvironment.
GetAbsolutePath
(LauncherPath);
ManifestUtil\Util.cs (1)
428
key = ((string)taskEnvironment.
GetAbsolutePath
(item.ItemSpec).GetCanonicalForm()).ToUpperInvariant();
Move.cs (2)
166
sourceFile = TaskEnvironment.
GetAbsolutePath
(sourceSpec);
167
destinationFile = TaskEnvironment.
GetAbsolutePath
(destinationSpec);
RedistList.cs (1)
991
AbsolutePath canonicalPath = taskEnvironment.
GetAbsolutePath
(FileUtilities.NormalizeForPathComparison(path)).GetCanonicalFormNoThrow(log);
RemoveDir.cs (1)
67
AbsolutePath directoryPath = TaskEnvironment.
GetAbsolutePath
(directory.ItemSpec);
ResolveManifestFiles.cs (6)
419
: AssemblyIdentity.FromManagedAssembly(TaskEnvironment.
GetAbsolutePath
(item.ItemSpec));
526
var outputAssembliesMap = outputAssemblies.ToDictionary(p => (string)TaskEnvironment.
GetAbsolutePath
(p.ItemSpec).GetCanonicalForm(), StringComparer.OrdinalIgnoreCase);
538
string 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));
SystemState.cs (2)
595
AbsolutePath stateFileAbsolutePath = taskEnvironment.
GetAbsolutePath
(stateFile.ItemSpec);
622
AbsolutePath fullPath = taskEnvironment.
GetAbsolutePath
(Path.Combine(stateFileDirectory, relativePath)).GetCanonicalForm();
TaskEnvironmentExtensions.cs (3)
38
/// Absolutizes each non-empty path in the array using <see cref="TaskEnvironment.
GetAbsolutePath
"/>.
54
: taskEnvironment.
GetAbsolutePath
(paths[i]);
66
=> string.IsNullOrEmpty(path) ? path : taskEnvironment.
GetAbsolutePath
(path).Value;
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);
1432
return FileSystems.Default.DirectoryExists(TaskEnvironment.
GetAbsolutePath
(path));
1440
.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.FileExists(TaskEnvironment.
GetAbsolutePath
(fullPath)));
Microsoft.NET.Build.Tasks (43)
CheckForTargetInAssetsFile.cs (1)
26
AbsolutePath assetsFilePath = TaskEnvironment.
GetAbsolutePath
(AssetsFilePath);
CreateAppHost.cs (3)
65
AbsolutePath appHostSource = TaskEnvironment.
GetAbsolutePath
(AppHostSourcePath);
66
AbsolutePath appHostDest = TaskEnvironment.
GetAbsolutePath
(AppHostDestinationPath);
67
AbsolutePath resourcesAssembly = TaskEnvironment.
GetAbsolutePath
(IntermediateAssembly);
GenerateBundle.cs (2)
62
: taskEnvironment.
GetAbsolutePath
(outputDir);
70
: TaskEnvironment.
GetAbsolutePath
(sourcePath).Value;
GenerateClsidMap.cs (2)
26
AbsolutePath assemblyPath = TaskEnvironment.
GetAbsolutePath
(IntermediateAssembly);
27
AbsolutePath clsidMapPath = TaskEnvironment.
GetAbsolutePath
(ClsidMapDestinationPath);
GenerateDepsFile.cs (5)
146
string.IsNullOrEmpty(AssetsFilePath) ? AssetsFilePath : TaskEnvironment.
GetAbsolutePath
(AssetsFilePath));
229
string.IsNullOrEmpty(RuntimeGraphPath) ? RuntimeGraphPath : TaskEnvironment.
GetAbsolutePath
(RuntimeGraphPath));
271
return (TaskEnvironment.
GetAbsolutePath
(i.ItemSpec), destinationSubPath);
321
AbsolutePath absoluteProjectPath = TaskEnvironment.
GetAbsolutePath
(ProjectPath);
322
AbsolutePath absoluteDepsFilePath = TaskEnvironment.
GetAbsolutePath
(DepsFilePath);
GenerateRuntimeConfigurationFiles.cs (4)
133
AbsolutePath assetsPath = TaskEnvironment.
GetAbsolutePath
(AssetsFilePath);
183
WriteToJsonFile(TaskEnvironment.
GetAbsolutePath
(RuntimeConfigPath), config);
278
AbsolutePath userConfigPath = TaskEnvironment.
GetAbsolutePath
(UserRuntimeConfig);
353
WriteToJsonFile(TaskEnvironment.
GetAbsolutePath
(RuntimeConfigDevPath), devConfig);
GenerateToolsSettingsFile.cs (1)
36
AbsolutePath settingsPath = TaskEnvironment.
GetAbsolutePath
(ToolsSettingsFilePath);
GetAssemblyAttributes.cs (1)
25
AbsolutePath templatePath = TaskEnvironment.
GetAbsolutePath
(PathToTemplateFile);
GetPackageDirectory.cs (2)
42
AbsolutePath assetsFilePath = TaskEnvironment.
GetAbsolutePath
(AssetsFileWithAdditionalPackageFolders);
49
.Select(p => string.IsNullOrEmpty(p) ? p : (string)TaskEnvironment.
GetAbsolutePath
(p))
ProcessFrameworkReferences.cs (4)
1128
AbsolutePath netCoreRoot = TaskEnvironment.
GetAbsolutePath
(NetCoreRoot);
1145
AbsolutePath absolutePackPath = TaskEnvironment.
GetAbsolutePath
(packPath);
1186
string? absoluteUserProfileDir = string.IsNullOrEmpty(userProfileDir) ? null : (string)TaskEnvironment.
GetAbsolutePath
(userProfileDir);
1189
string netCoreRoot = string.IsNullOrWhiteSpace(NetCoreRoot) ? NetCoreRoot : TaskEnvironment.
GetAbsolutePath
(NetCoreRoot);
ResolveAppHosts.cs (1)
299
appHostPackPathAbsolute = TaskEnvironment.
GetAbsolutePath
(appHostPackPath).Value;
ResolvePackageAssets.cs (7)
573
reader = OpenCacheFile(task.TaskEnvironment.
GetAbsolutePath
(task.ProjectAssetsCacheFile), settingsHash);
587
reader = OpenCacheFile(task.TaskEnvironment.
GetAbsolutePath
(task.ProjectAssetsCacheFile), settingsHash);
599
bool IsCacheFileUpToDate() => File.GetLastWriteTimeUtc(task.TaskEnvironment.
GetAbsolutePath
(task.ProjectAssetsCacheFile)) > File.GetLastWriteTimeUtc(task.TaskEnvironment.
GetAbsolutePath
(task.ProjectAssetsFile));
730
_lockFile = new LockFileCache(task).GetLockFile(task.TaskEnvironment.
GetAbsolutePath
(task.ProjectAssetsFile));
777
Directory.CreateDirectory(Path.GetDirectoryName(_task.TaskEnvironment.
GetAbsolutePath
(_task.ProjectAssetsCacheFile)));
778
var stream = File.Open(_task.TaskEnvironment.
GetAbsolutePath
(_task.ProjectAssetsCacheFile), FileMode.Create, FileAccess.ReadWrite, FileShare.None);
ResolvePackageDependencies.cs (2)
137
private LockFile LockFile => _lockFile ??= new LockFileCache(this).GetLockFile(TaskEnvironment.
GetAbsolutePath
(ProjectAssetsFile));
473
: TaskEnvironment.
GetAbsolutePath
(projectDirectory);
ResolveTargetingPackAssets.cs (7)
121
: TaskEnvironment.
GetAbsolutePath
(targetingPackPath);
211
AbsolutePath targetingPackDllFolder = TaskEnvironment.
GetAbsolutePath
(
219
targetingPackDllFolder = TaskEnvironment.
GetAbsolutePath
(
225
AbsolutePath platformManifestPath = TaskEnvironment.
GetAbsolutePath
(
228
AbsolutePath packageOverridesPath = TaskEnvironment.
GetAbsolutePath
(
231
AbsolutePath frameworkListPath = TaskEnvironment.
GetAbsolutePath
(
308
AbsolutePath targetingPackAssetPath = TaskEnvironment.
GetAbsolutePath
(
src\sdk\src\Tasks\Common\ConflictResolution\ConflictItem.cs (1)
239
? _taskEnvironment.
GetAbsolutePath
(sourcePath)