376 references to GetAbsolutePath
Microsoft.Build (4)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
304AbsolutePath projectPath = TaskEnvironment.GetAbsolutePath(FileUtilities.AttemptToShortenPath(project.ItemSpec));
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
981return TaskEnvironment.GetAbsolutePath(value); 986return new FileInfo(TaskEnvironment.GetAbsolutePath(value).Value); 991return new DirectoryInfo(TaskEnvironment.GetAbsolutePath(value).Value);
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.CodeAnalysis (10)
src\roslyn\src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (2)
39AbsolutePath fullSourcePath = string.IsNullOrEmpty(SourcePath) ? default : TaskEnvironment.GetAbsolutePath(SourcePath); 40AbsolutePath fullDestinationPath = string.IsNullOrEmpty(DestinationPath) ? default : TaskEnvironment.GetAbsolutePath(DestinationPath);
src\roslyn\src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
123var targetFileName = TaskEnvironment.GetAbsolutePath(FileName.ItemSpec);
src\roslyn\src\Compilers\Core\MSBuildTask\TaskBuildEnvironment.cs (1)
28public string GetFullyQualifiedPath(string path) => TaskEnvironment.GetAbsolutePath(path).Value;
src\roslyn\src\Compilers\Core\MSBuildTask\TaskEnvironmentExtensions.cs (6)
35var absolutePath = taskEnvironment.GetAbsolutePath(path); 46public void DeleteNoThrow(FileInfo fileInfo) => taskEnvironment.DeleteNoThrow(taskEnvironment.GetAbsolutePath(fileInfo.FullName)); 62public bool FileExists(string path) => taskEnvironment.FileExists(taskEnvironment.GetAbsolutePath(path)); 108taskEnvironment.GetAbsolutePath(sourceFileName), 109taskEnvironment.GetAbsolutePath(destFileName)); 118public FileInfo CreateFileInfo(string path) => taskEnvironment.CreateFileInfo(taskEnvironment.GetAbsolutePath(path));
Microsoft.Build.Tasks.Core (91)
AddToWin32Manifest.cs (2)
103AbsolutePath absolutePath = TaskEnvironment.GetAbsolutePath(ApplicationManifest.ItemSpec); 184AbsolutePath outputPath = TaskEnvironment.GetAbsolutePath(originalPath);
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigCache.cs (1)
52.Select(assemblyFolder => taskEnvironment.GetAbsolutePath(assemblyFolder.DirectoryPath).Value)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
195: taskEnvironment.GetAbsolutePath(assemblyFolder.DirectoryPath).Value;
AssemblyDependency\GenerateBindingRedirects.cs (2)
112AbsolutePath outputAppConfigFile = TaskEnvironment.GetAbsolutePath(OutputAppConfigFile.ItemSpec); 344document = LoadAppConfig(TaskEnvironment.GetAbsolutePath(appConfigItem.ItemSpec));
AssemblyDependency\HintPathResolver.cs (1)
48string fullHintPath = taskEnvironment.GetAbsolutePath(hintPath).Value;
AssemblyDependency\RawFilenameResolver.cs (1)
53: taskEnvironment.GetAbsolutePath(rawFileNameCandidate).Value;
AssemblyDependency\ReferenceTable.cs (3)
481reference.FullPath = _taskEnvironment.GetAbsolutePath(assemblyFileName).GetCanonicalForm(); 1370resolvedPath = FileUtilities.FixFilePath(_taskEnvironment.GetAbsolutePath(resolvedPath).GetCanonicalForm()).Value; 1374resolvedPath = FileUtilities.NormalizePath(_taskEnvironment.GetAbsolutePath(resolvedPath));
AssemblyDependency\ResolveAssemblyReference.cs (2)
1162? TaskEnvironment.GetAbsolutePath(path) 1198? TaskEnvironment.GetAbsolutePath(path).GetCanonicalFormNoThrow(Log)
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)
522sourceAbsolutePath = TaskEnvironment.GetAbsolutePath(sourceSpec); 523destAbsolutePath = TaskEnvironment.GetAbsolutePath(destSpec); 688sourceAbsolutePath = TaskEnvironment.GetAbsolutePath(sourceSpec); 689destAbsolutePath = TaskEnvironment.GetAbsolutePath(destSpec); 857AbsolutePath src = FileUtilities.NormalizePath(TaskEnvironment.GetAbsolutePath(sourceFolder.ItemSpec)); 1070if (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)
127filePath = TaskEnvironment.GetAbsolutePath(file.ItemSpec);
DownloadFile.cs (1)
182AbsolutePath destinationFolderPath = TaskEnvironment.GetAbsolutePath(DestinationFolder.ItemSpec);
Exec.cs (1)
462? TaskEnvironment.GetAbsolutePath(WorkingDirectory)
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)
93AbsolutePath 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);
GenerateLauncher.cs (1)
70AbsolutePath outputPath = string.IsNullOrEmpty(OutputPath) ? default : TaskEnvironment.GetAbsolutePath(OutputPath);
GenerateManifestBase.cs (2)
476AbsolutePath inputManifestPath = TaskEnvironment.GetAbsolutePath(InputManifest.ItemSpec); 640AbsolutePath outputManifestPath = TaskEnvironment.GetAbsolutePath(OutputManifest.ItemSpec);
GetAssemblyIdentity.cs (1)
72? TaskEnvironment.GetAbsolutePath(item.ItemSpec)
GetReferenceAssemblyPaths.cs (2)
169? TaskEnvironment.GetAbsolutePath(RootPath) 302result[i] = TaskEnvironment.GetAbsolutePath(parts[i]);
InstalledSDKResolver.cs (1)
56string sdkDirectory = taskEnvironment.GetAbsolutePath(resolvedSDK.ItemSpec).Value;
LC.cs (1)
139? SdkToolsPathUtility.FileInfoExists(TaskEnvironment.GetAbsolutePath(f))
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)
65absolutePath = TaskEnvironment.GetAbsolutePath(FileUtilities.FixFilePath(directory.ItemSpec));
ManifestUtil\LauncherBuilder.cs (2)
44AbsolutePath path = string.IsNullOrEmpty(outputPath) ? default : TaskEnvironment.GetAbsolutePath(outputPath); 66AbsolutePath launcherPath = string.IsNullOrEmpty(LauncherPath) ? default : TaskEnvironment.GetAbsolutePath(LauncherPath);
ManifestUtil\Util.cs (1)
428key = ((string)taskEnvironment.GetAbsolutePath(item.ItemSpec).GetCanonicalForm()).ToUpperInvariant();
Move.cs (2)
161sourceFile = TaskEnvironment.GetAbsolutePath(sourceSpec); 162destinationFile = TaskEnvironment.GetAbsolutePath(destinationSpec);
RedistList.cs (1)
991AbsolutePath canonicalPath = taskEnvironment.GetAbsolutePath(FileUtilities.NormalizeForPathComparison(path)).GetCanonicalFormNoThrow(log);
RemoveDir.cs (1)
67AbsolutePath directoryPath = TaskEnvironment.GetAbsolutePath(directory.ItemSpec);
ResolveCodeAnalysisRuleSet.cs (4)
91AbsolutePath absolute = TaskEnvironment.GetAbsolutePath(fullName); 104AbsolutePath absolute = TaskEnvironment.GetAbsolutePath(fullName); 118AbsolutePath absolute = TaskEnvironment.GetAbsolutePath(fullName); 128AbsolutePath absolute = TaskEnvironment.GetAbsolutePath(CodeAnalysisRuleSet);
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));
SystemState.cs (2)
595AbsolutePath stateFileAbsolutePath = taskEnvironment.GetAbsolutePath(stateFile.ItemSpec); 622AbsolutePath fullPath = taskEnvironment.GetAbsolutePath(Path.Combine(stateFileDirectory, relativePath)).GetCanonicalForm();
TarDirectory.cs (2)
139_sourceDirectory = new DirectoryInfo(TaskEnvironment.GetAbsolutePath(SourceDirectory.ItemSpec).Value); 140_destinationFile = new FileInfo(TaskEnvironment.GetAbsolutePath(DestinationFile.ItemSpec).Value);
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)
101path = TaskEnvironment.GetAbsolutePath(FileUtilities.FixFilePath(file.ItemSpec));
Untar.cs (4)
134FileInfo sourceFile = new FileInfo(TaskEnvironment.GetAbsolutePath(sourceItem.ItemSpec).Value); 216string destinationFolderPath = TaskEnvironment.GetAbsolutePath(DestinationFolder.ItemSpec).Value; 271AbsolutePath fullDestinationDirectoryPath = TaskEnvironment.GetAbsolutePath(FileUtilities.EnsureTrailingSlash(destinationDirectory.FullName)).GetCanonicalForm(); 283AbsolutePath fullDestinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destinationDirectory.FullName, entryName)).GetCanonicalForm();
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();
WriteCodeFragment.cs (2)
122outputFilePath = TaskEnvironment.GetAbsolutePath(OutputFile.ItemSpec); 126AbsolutePath outputDirectoryPath = TaskEnvironment.GetAbsolutePath(OutputDirectory.ItemSpec);
XmlPeek.cs (1)
74AbsolutePath? absoluteInputPath = XmlInputPath != null ? TaskEnvironment.GetAbsolutePath(XmlInputPath.ItemSpec) : null;
XmlPoke.cs (1)
77inputPath = TaskEnvironment.GetAbsolutePath(XmlInputPath.ItemSpec);
XslTransformation.cs (4)
132? Array.ConvertAll(XmlInputPaths, item => item.ItemSpec != null ? TaskEnvironment.GetAbsolutePath(item.ItemSpec) : (AbsolutePath?)null) 136AbsolutePath? absoluteXslInputPath = XslInputPath?.ItemSpec != null ? TaskEnvironment.GetAbsolutePath(XslInputPath.ItemSpec) : null; 209using (XmlWriter xmlWriter = XmlWriter.Create(TaskEnvironment.GetAbsolutePath(_outputPaths[i].ItemSpec), xslct.OutputSettings)) 233currentInputContainsDtd = XmlTaskUtility.ContainsDtd(TaskEnvironment.GetAbsolutePath(currentInputPath));
ZipDirectory.cs (2)
66AbsolutePath sourceDirectoryAbsolutePath = TaskEnvironment.GetAbsolutePath(SourceDirectory.ItemSpec); 75AbsolutePath destinationFileAbsolutePath = TaskEnvironment.GetAbsolutePath(DestinationFile.ItemSpec);
Microsoft.Build.Utilities.Core (6)
ToolTask.cs (6)
530if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(pathToTool)))) 551bool isExistingFile = FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(pathToTool)); 681startInfo.WorkingDirectory = TaskEnvironment.GetAbsolutePath(workingDirectory); 889AbsolutePath filePath = !string.IsNullOrEmpty(fileName) ? TaskEnvironment.GetAbsolutePath(fileName) : new AbsolutePath(fileName, ignoreRootedCheck: true); 1428return FileSystems.Default.DirectoryExists(TaskEnvironment.GetAbsolutePath(path)); 1436.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(fullPath)));
Microsoft.DotNet.Arcade.Sdk (26)
src\CheckRequiredDotNetVersion.cs (1)
36var globalJsonPath = TaskEnvironment.GetAbsolutePath(Path.Combine(RepositoryRoot, "global.json"));
src\DownloadFile.cs (2)
66AbsolutePath destinationPath = TaskEnvironment.GetAbsolutePath(DestinationPath); 130AbsolutePath sourcePath = TaskEnvironment.GetAbsolutePath(filePath);
src\ExtractNgenMethodList.cs (3)
57var document = XDocument.Load(TaskEnvironment.GetAbsolutePath(IbcXmlFilePath)); 76AbsolutePath outputDirectory = TaskEnvironment.GetAbsolutePath(OutputDirectory); 102using (var stream = File.Open(TaskEnvironment.GetAbsolutePath(AssemblyFilePath), FileMode.Open, FileAccess.Read, FileShare.Read))
src\GenerateChecksums.cs (2)
46AbsolutePath itemPath = TaskEnvironment.GetAbsolutePath(item.ItemSpec); 61File.WriteAllText(TaskEnvironment.GetAbsolutePath(destinationPath), checksum);
src\GenerateResxSource.cs (2)
110foreach (var node in XDocument.Load(TaskEnvironment.GetAbsolutePath(ResourceFile)).Descendants("data")) 368File.WriteAllText(TaskEnvironment.GetAbsolutePath(OutputPath), result);
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
35AbsolutePath outputPath = TaskEnvironment.GetAbsolutePath(OutputPath);
src\GetAssemblyFullName.cs (1)
34item.SetMetadata(FullNameMetadata, AssemblyName.GetAssemblyName(TaskEnvironment.GetAbsolutePath(assemblyPath)).FullName);
src\GetLicenseFilePath.cs (1)
47AbsolutePath directory = TaskEnvironment.GetAbsolutePath(Directory);
src\InstallDotNetCore.cs (4)
52AbsolutePath globalJsonPath = TaskEnvironment.GetAbsolutePath(GlobalJsonPath); 59AbsolutePath dotNetInstallScript = TaskEnvironment.GetAbsolutePath(DotNetInstallScript); 100AbsolutePath versionsPropsPath = TaskEnvironment.GetAbsolutePath(VersionsPropsPath); 308AbsolutePath runtimeDirectory = TaskEnvironment.GetAbsolutePath(runtimePath);
src\LocateDotNet.cs (4)
35var globalJsonPath = TaskEnvironment.GetAbsolutePath(Path.Combine(RepositoryRoot, "global.json")); 76var dotNetDir = paths.Split(new[] { Path.PathSeparator }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(p => File.Exists(TaskEnvironment.GetAbsolutePath(Path.Combine(p, fileName)))); 78if (dotNetDir == null || !Directory.Exists(TaskEnvironment.GetAbsolutePath(Path.Combine(dotNetDir, "sdk", sdkVersion)))) 87DotNetPath = TaskEnvironment.GetAbsolutePath(Path.Combine(dotNetDir, fileName)).GetCanonicalForm();
src\SaveItems.cs (1)
49AbsolutePath outputPath = TaskEnvironment.GetAbsolutePath(File);
src\SetCorFlags.cs (1)
71using (var stream = File.Open(TaskEnvironment.GetAbsolutePath(FilePath), FileMode.Open, FileAccess.ReadWrite, FileShare.Read))
src\Unsign.cs (1)
38using (var stream = File.Open(TaskEnvironment.GetAbsolutePath(FilePath), FileMode.Open, FileAccess.ReadWrite, FileShare.Read))
src\ValidateLicense.cs (2)
36var actualLines = File.ReadAllLines(TaskEnvironment.GetAbsolutePath(LicensePath), Encoding.UTF8); 37var expectedLines = File.ReadAllLines(TaskEnvironment.GetAbsolutePath(ExpectedLicensePath), Encoding.UTF8);
Microsoft.DotNet.Build.Tasks.FileCatalog (2)
GenerateFileCatalog.cs (2)
38AbsolutePath outputPath = TaskEnvironment.GetAbsolutePath(OutputPath); 65AbsolutePath filePath = TaskEnvironment.GetAbsolutePath(path);
Microsoft.DotNet.Build.Tasks.Installers (54)
src\CreateChangelogFile.cs (1)
45using GZipStream stream = new(File.Create(TaskEnvironment.GetAbsolutePath(ChangelogOutputPath)), CompressionLevel.Optimal);
src\CreateControlFile.cs (1)
50using Stream stream = File.Create(TaskEnvironment.GetAbsolutePath(ControlFileOutputPath));
src\CreateDebPackage.cs (3)
39using ArWriter arWriter = new(File.Open(TaskEnvironment.GetAbsolutePath(OutputDebPackagePath), FileMode.Create), false); 41using Stream controlFile = File.OpenRead(TaskEnvironment.GetAbsolutePath(ControlFile.ItemSpec)); 43using Stream dataFile = File.OpenRead(TaskEnvironment.GetAbsolutePath(DataFile.ItemSpec));
src\CreateLightCommandPackageDrop.cs (2)
56AbsolutePath destinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(packageDropDir, Path.GetFileName(WixProjectFile))); 57File.Copy(TaskEnvironment.GetAbsolutePath(WixProjectFile), destinationPath, true);
src\CreateMD5SumsFile.cs (2)
37using FileStream outputFile = File.Create(TaskEnvironment.GetAbsolutePath(OutputFile)); 43using FileStream fileStream = File.OpenRead(TaskEnvironment.GetAbsolutePath(file.ItemSpec));
src\CreateRpmPackage.cs (4)
135builder.AddScript(script.GetMetadata("Kind"), File.ReadAllText(TaskEnvironment.GetAbsolutePath(script.ItemSpec))); 156AbsolutePath triggerPath = TaskEnvironment.GetAbsolutePath(trigger.ItemSpec); 181using (CpioReader reader = new(File.OpenRead(TaskEnvironment.GetAbsolutePath(Payload)), leaveOpen: false)) 228using FileStream rpmPackageStream = new(TaskEnvironment.GetAbsolutePath(OutputRpmPackagePath), FileMode.Create, FileAccess.Write);
src\CreateWixBuildWixpack.cs (24)
111AbsolutePath wixpackWorkingDir = TaskEnvironment.GetAbsolutePath(WixpackWorkingDir); 123AbsolutePath projectPathAbsolute = TaskEnvironment.GetAbsolutePath(projectPath); 124AbsolutePath destPathAbsolute = TaskEnvironment.GetAbsolutePath(Path.Combine(wixpackWorkingDir, Path.GetFileName(projectPath))); 158AbsolutePath outputFile = TaskEnvironment.GetAbsolutePath(OutputFile); 164AbsolutePath outputFolder = TaskEnvironment.GetAbsolutePath(OutputFolder); 184AbsolutePath fullSourceDirPath = TaskEnvironment.GetAbsolutePath(fullSourceDir); 195AbsolutePath destinationDir = TaskEnvironment.GetAbsolutePath(Path.Combine(wixpackWorkingDir, randomDirName)); 205AbsolutePath includeFilePath = TaskEnvironment.GetAbsolutePath(includeFile); 221AbsolutePath tempFileAbsolutePath = TaskEnvironment.GetAbsolutePath(tempFilePath); 452AbsolutePath responseFilePath = TaskEnvironment.GetAbsolutePath(Path.Combine(wixpackWorkingDir, "create.rsp")); 467AbsolutePath commandFilePath = TaskEnvironment.GetAbsolutePath(Path.Combine(wixpackWorkingDir, "create.cmd")); 533AbsolutePath xmlFilePath = TaskEnvironment.GetAbsolutePath(xmlPath); 542AbsolutePath copiedXmlFilePath = TaskEnvironment.GetAbsolutePath(copiedXmlPath); 618AbsolutePath sourceDir = TaskEnvironment.GetAbsolutePath(parts[0]); 673AbsolutePath includeFileAbsolutePath = TaskEnvironment.GetAbsolutePath(includeFilePath); 692AbsolutePath potentialFilePath = TaskEnvironment.GetAbsolutePath(potentialPath); 1042AbsolutePath destDir = TaskEnvironment.GetAbsolutePath(Path.Combine(WixpackWorkingDir, fileId)); 1046AbsolutePath sourcePath = TaskEnvironment.GetAbsolutePath(source); 1050AbsolutePath destPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destDir, Path.GetFileName(source))); 1084AbsolutePath bindPathAbsolute = TaskEnvironment.GetAbsolutePath(bindPath); 1136AbsolutePath filePath = TaskEnvironment.GetAbsolutePath(file); 1137AbsolutePath destinationFilePath = TaskEnvironment.GetAbsolutePath(Path.Combine(destDir, Path.GetFileName(file))); 1143AbsolutePath subdirectoryPath = TaskEnvironment.GetAbsolutePath(dir); 1144AbsolutePath destinationSubdirectoryPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destDir, Path.GetFileName(dir)));
src\CreateWixCommandPackageDropBase.cs (13)
60AbsolutePath packageDropDir = TaskEnvironment.GetAbsolutePath(packageDropOutputFolder); 75AbsolutePath outputFilePath = TaskEnvironment.GetAbsolutePath(OutputFile); 80AbsolutePath outputFolderPath = TaskEnvironment.GetAbsolutePath(OutputFolder); 90AbsolutePath commandFilename = TaskEnvironment.GetAbsolutePath(Path.Combine(packageDropDir, $"create.cmd")); 153AbsolutePath newWixSrcFilePath = TaskEnvironment.GetAbsolutePath(Path.Combine(packageDropDir, Path.GetFileName(wixSrcFile.ItemSpec))); 154File.Copy(TaskEnvironment.GetAbsolutePath(wixSrcFile.ItemSpec), newWixSrcFilePath, true); 185AbsolutePath destinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(packageDropDir, Path.GetFileName(locItem.ItemSpec))); 186File.Copy(TaskEnvironment.GetAbsolutePath(locItem.ItemSpec), destinationPath, true); 301AbsolutePath possiblePath = TaskEnvironment.GetAbsolutePath(Path.Combine(additionalBasePath.ItemSpec, oldPath)); 310else if (File.Exists(TaskEnvironment.GetAbsolutePath(oldPath))) 334AbsolutePath newFolder = TaskEnvironment.GetAbsolutePath(Path.Combine(outputPath, id)); 340File.Copy(TaskEnvironment.GetAbsolutePath(oldPath), TaskEnvironment.GetAbsolutePath(Path.Combine(outputPath, newRelativePath)), true);
src\GenerateMacOSDistributionFile.cs (2)
42XDocument document = XDocument.Load(TaskEnvironment.GetAbsolutePath(TemplatePath)); 123using XmlWriter writer = XmlWriter.Create(File.Create(TaskEnvironment.GetAbsolutePath(DestinationFile)));
src\StabilizeWixFileId.cs (2)
57XDocument content = XDocument.Load(TaskEnvironment.GetAbsolutePath(SourceFile)); 105content.Save(TaskEnvironment.GetAbsolutePath(OutputFile));
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (1)
66TargetFrameworkResolver targetFrameworkResolver = TargetFrameworkResolver.CreateOrGet(TaskEnvironment.GetAbsolutePath(RuntimeGraph!));
ChooseBestTargetFrameworksTask.cs (1)
36TargetFrameworkResolver targetframeworkResolver = TargetFrameworkResolver.CreateOrGet(TaskEnvironment.GetAbsolutePath(RuntimeGraph!));
Microsoft.DotNet.Build.Tasks.Templating (2)
GenerateFileFromTemplate.cs (2)
76AbsolutePath resolvedOutputPath = TaskEnvironment.GetAbsolutePath(OutputPath.Replace('\\', '/')).GetCanonicalForm(); 79AbsolutePath templateFile = TaskEnvironment.GetAbsolutePath(TemplateFile);
Microsoft.DotNet.Build.Tasks.VisualStudio (10)
OptProf\FindLatestDrop.cs (1)
45DropName = GetLatestDropName(File.ReadAllText(TaskEnvironment.GetAbsolutePath(DropListPath)));
OptProf\GenerateTrainingInputFiles.cs (5)
54config = OptProfTrainingConfiguration.Deserialize(File.ReadAllText(TaskEnvironment.GetAbsolutePath(ConfigurationFile), Encoding.UTF8)); 72AbsolutePath insertionDirectory = TaskEnvironment.GetAbsolutePath(InsertionDirectory); 86var jsonManifest = ReadVsixJsonManifest(TaskEnvironment.GetAbsolutePath(Path.Combine(insertionDirectory, product.Name))); 145AbsolutePath outDirPath = TaskEnvironment.GetAbsolutePath(outDir); 156fullAbsolutePath = TaskEnvironment.GetAbsolutePath(basePath + "." + index + ".IBC.json");
OptProf\GenerateTrainingPropsFile.cs (1)
56AbsolutePath outputDirectory = TaskEnvironment.GetAbsolutePath(OutputDirectory);
OptProf\GetRunSettingsSessionConfiguration.cs (2)
53var buildDropName = GetTestsDropName(File.ReadAllText(TaskEnvironment.GetAbsolutePath(BootstrapperInfoPath), Encoding.UTF8)); 54var (testContainersString, testCaseFilterString) = GetTestContainersAndFilters(File.ReadAllText(TaskEnvironment.GetAbsolutePath(ConfigurationFile), Encoding.UTF8), ConfigurationFile);
Vsix\FinalizeInsertionVsixFile.cs (1)
37using var package = Package.Open(TaskEnvironment.GetAbsolutePath(VsixFilePath));
Microsoft.DotNet.Build.Tasks.Workloads (1)
Wix\WixToolTaskBase.cs (1)
50AbsolutePath toolFullPath = TaskEnvironment.GetAbsolutePath(toolPath);
Microsoft.DotNet.CMake.Sdk (9)
src\CreateCMakeFileApiQuery.cs (2)
32Directory.CreateDirectory(TaskEnvironment.GetAbsolutePath(queryDir)); 37File.WriteAllText(TaskEnvironment.GetAbsolutePath(queryFile), string.Empty);
src\GetCMakeArtifactsFromFileApi.cs (7)
53AbsolutePath replyDirPath = TaskEnvironment.GetAbsolutePath(replyDir); 71string indexJson = File.ReadAllText(TaskEnvironment.GetAbsolutePath(indexFile)); 87AbsolutePath codeModelFilePath = TaskEnvironment.GetAbsolutePath(codeModelFile); 112string normalizedSourceDir = TaskEnvironment.GetAbsolutePath(SourceDirectory).GetCanonicalForm().Value.Replace('\\', '/').TrimEnd('/'); 141dirSource = TaskEnvironment.GetAbsolutePath(dirSource).GetCanonicalForm().Value.Replace('\\', '/').TrimEnd('/'); 174AbsolutePath targetFilePath = TaskEnvironment.GetAbsolutePath(targetFile); 197fullPath = TaskEnvironment.GetAbsolutePath(fullPath).GetCanonicalForm();
Microsoft.DotNet.NuGetRepack.Tasks (7)
src\ReplacePackageParts.cs (5)
118AbsolutePath tempPackageAbsolutePath = TaskEnvironment.GetAbsolutePath(tempPackagePath); 121File.Copy(TaskEnvironment.GetAbsolutePath(SourcePackage), tempPackageAbsolutePath); 189replacementStream = File.OpenRead(TaskEnvironment.GetAbsolutePath(replacementFilePath)); 234Directory.CreateDirectory(TaskEnvironment.GetAbsolutePath(DestinationFolder)); 235File.Copy(tempPackageAbsolutePath, TaskEnvironment.GetAbsolutePath(NewPackage), overwrite: true);
src\UpdatePackageVersionTask.cs (2)
71var outputDirectory = new DirectoryInfo(TaskEnvironment.GetAbsolutePath(OutputDirectory)); 73NuGetVersionUpdater.Run(Packages.Select(p => new FileInfo(TaskEnvironment.GetAbsolutePath(p))), outputDirectory, translation, ExactVersions, allowPreReleaseDependency: (packageId, dependencyId, dependencyVersion) =>
Microsoft.DotNet.PackageTesting (4)
GetCompatiblePackageTargetFrameworks.cs (1)
45Package package = NupkgParser.CreatePackageObject(TaskEnvironment.GetAbsolutePath(packagePath));
VerifyClosure.cs (2)
100var assemblyInfo = AssemblyInfo.GetAssemblyInfo(TaskEnvironment.GetAbsolutePath(file)); 394using (var file = File.Create(TaskEnvironment.GetAbsolutePath(dependencyGraphFilePath)))
VerifyTypes.cs (1)
102var assemblyInfo = AssemblyInfo.GetAssemblyInfo(TaskEnvironment.GetAbsolutePath(file));
Microsoft.DotNet.SharedFramework.Sdk (13)
parent\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
100var assemblyInfo = AssemblyInfo.GetAssemblyInfo(TaskEnvironment.GetAbsolutePath(file)); 394using (var file = File.Create(TaskEnvironment.GetAbsolutePath(dependencyGraphFilePath)))
parent\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
102var assemblyInfo = AssemblyInfo.GetAssemblyInfo(TaskEnvironment.GetAbsolutePath(file));
src\CreateFrameworkListFile.cs (3)
87FileInfo itemPath = new(TaskEnvironment.GetAbsolutePath(item.ItemSpec)); 269Directory.CreateDirectory(Path.GetDirectoryName(TaskEnvironment.GetAbsolutePath(TargetFile))); 270File.WriteAllText(TaskEnvironment.GetAbsolutePath(TargetFile), frameworkManifest.ToString());
src\GeneratePlatformManifestEntriesFromFileList.cs (1)
31FileInfo originalFilePath = new(TaskEnvironment.GetAbsolutePath(file.GetMetadata("OriginalFilePath")));
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
42FileInfo existingFilePath = new(TaskEnvironment.GetAbsolutePath(existingFile.ItemSpec));
src\GenerateSharedFrameworkDepsFile.cs (4)
66FileInfo absoluteFilePath = new(TaskEnvironment.GetAbsolutePath(filePath)); 108: TaskEnvironment.GetAbsolutePath(RuntimeIdentifierGraph); 127using var depsStream = File.Create(TaskEnvironment.GetAbsolutePath(depsFilePath)); 134AbsolutePath absoluteDepsFilePath = TaskEnvironment.GetAbsolutePath(depsFilePath);
src\ValidateFileVersions.cs (1)
98FileInfo filePath = new(TaskEnvironment.GetAbsolutePath(file.ItemSpec));
Microsoft.DotNet.SourceBuild.Tasks (19)
src\ReadNuGetPackageInfos.cs (1)
36PackageIdentity identity = ReadIdentity(TaskEnvironment.GetAbsolutePath(p));
src\UsageReport\WritePackageUsageData.cs (9)
98.Where(dir => !EnsureTrailingSeparator(TaskEnvironment.GetAbsolutePath(dir)).StartsWith(AbsoluteRootDir, StringComparison.Ordinal)) 158Directory.CreateDirectory(Path.GetDirectoryName(TaskEnvironment.GetAbsolutePath(ProjectAssetsJsonArchiveFile))); 162TaskEnvironment.GetAbsolutePath(ProjectAssetsJsonArchiveFile), 262Directory.CreateDirectory(Path.GetDirectoryName(TaskEnvironment.GetAbsolutePath(DataFile))); 263File.WriteAllText(TaskEnvironment.GetAbsolutePath(DataFile), data.ToXml().ToString()); 282_absoluteRootDir ??= TaskEnvironment.GetAbsolutePath(EnsureTrailingSeparator(RootDir)); 296string absolutePath = TaskEnvironment.GetAbsolutePath(path); 308var root = JObject.Parse(File.ReadAllText(TaskEnvironment.GetAbsolutePath(path))); 316ReadNuGetPackageInfos.ReadIdentity(TaskEnvironment.GetAbsolutePath(nupkgFile));
src\UsageReport\WriteUsageReports.cs (5)
67UsageData data = UsageData.Parse(XElement.Parse(File.ReadAllText(TaskEnvironment.GetAbsolutePath(DataFile)))); 85AbsolutePath prodConBuildManifestFile = TaskEnvironment.GetAbsolutePath(ProdConBuildManifestFile); 103AbsolutePath poisonedReportFile = TaskEnvironment.GetAbsolutePath(PoisonedReportFile); 171AbsolutePath outputDirectory = TaskEnvironment.GetAbsolutePath(OutputDirectory); 187var content = File.ReadAllText(TaskEnvironment.GetAbsolutePath(item.ItemSpec));
src\WriteBuildOutputProps.cs (4)
76.Select(dir => TaskEnvironment.GetAbsolutePath(dir)) 81Version = new DirectoryInfo(TaskEnvironment.GetAbsolutePath(Directory.EnumerateDirectories(dir).OrderBy(s => s).Last())).Name 84Directory.CreateDirectory(Path.GetDirectoryName(TaskEnvironment.GetAbsolutePath(OutputPath))); 86using (var outStream = File.Open(TaskEnvironment.GetAbsolutePath(OutputPath), FileMode.Create))
Microsoft.DotNet.XliffTasks (17)
Tasks\EnsureAllResourcesTranslated.cs (1)
43xlfDocument = XlfTask.LoadXlfDocument(TaskEnvironment.GetAbsolutePath(xlfPath));
Tasks\GatherTranslatedSource.cs (1)
115dependentUpon = TaskEnvironment.GetAbsolutePath(Path.Combine(sourceDirectory, dependentUpon)).GetCanonicalForm();
Tasks\SortXlf.cs (1)
33xlfAbsolutePath = TaskEnvironment.GetAbsolutePath(xlfPath);
Tasks\TransformTemplates.cs (9)
79Directory.CreateDirectory(TaskEnvironment.GetAbsolutePath(localizedTemplateDirectory)); 81File.Copy(TaskEnvironment.GetAbsolutePath(templatePath), TaskEnvironment.GetAbsolutePath(cultureSpecificTemplateFile), overwrite: true); 87File.Copy(TaskEnvironment.GetAbsolutePath(projectFileFullPath), TaskEnvironment.GetAbsolutePath(Path.Combine(localizedTemplateDirectory, Path.GetFileName(projectNode.Attribute("File").Value))), overwrite: true); 95AbsolutePath templateItemDestinationAbsolutePath = TaskEnvironment.GetAbsolutePath(templateItemDestinationPath); 100document.Load(new FileInfo(TaskEnvironment.GetAbsolutePath(templateItemFullPath))); 116File.Copy(TaskEnvironment.GetAbsolutePath(Path.Combine(TranslatedOutputDirectory, localizedFileName)), templateItemDestinationAbsolutePath, overwrite: true); 121File.Copy(TaskEnvironment.GetAbsolutePath(templateItemFullPath), templateItemDestinationAbsolutePath, overwrite: true);
Tasks\TranslateSource.cs (3)
24AbsolutePath sourceAbsolutePath = TaskEnvironment.GetAbsolutePath(sourcePath); 25AbsolutePath translatedAbsolutePath = TaskEnvironment.GetAbsolutePath(translatedFullPath); 27XlfDocument xlfDocument = XlfTask.LoadXlfDocument(TaskEnvironment.GetAbsolutePath(XlfFile.ItemSpec));
Tasks\UpdateXlf.cs (2)
35TranslatableDocument sourceDocument = XlfTask.LoadSourceDocument(TaskEnvironment.GetAbsolutePath(sourcePath), sourceFormat); 41AbsolutePath absoluteXlfPath = TaskEnvironment.GetAbsolutePath(xlfPath);
Microsoft.NET.Build.Extensions.Tasks (4)
GetDependsOnNETStandard.cs (1)
51var absoluteRefPath = TaskEnvironment.GetAbsolutePath(referenceSourcePath);
parent\Common\ConflictResolution\ConflictItem.cs (1)
239? _taskEnvironment.GetAbsolutePath(sourcePath)
parent\Common\ConflictResolution\ResolvePackageFileConflicts.cs (2)
76AbsolutePath frameworkListPath = TaskEnvironment.GetAbsolutePath(Path.Combine(tfd.ItemSpec, "RedistList", "FrameworkList.xml")); 144AbsolutePath manifestPath = TaskEnvironment.GetAbsolutePath(pm.ItemSpec);
Microsoft.NET.Build.Tasks (53)
CheckForTargetInAssetsFile.cs (1)
26AbsolutePath assetsFilePath = TaskEnvironment.GetAbsolutePath(AssetsFilePath);
CheckForUnsupportedWinMDReferences.cs (1)
55AssemblyHasWindowsRuntimeReference(TaskEnvironment.GetAbsolutePath(referencePath.ItemSpec)))
CreateAppHost.cs (3)
65AbsolutePath appHostSource = TaskEnvironment.GetAbsolutePath(AppHostSourcePath); 66AbsolutePath appHostDest = TaskEnvironment.GetAbsolutePath(AppHostDestinationPath); 67AbsolutePath resourcesAssembly = TaskEnvironment.GetAbsolutePath(IntermediateAssembly);
GenerateBundle.cs (2)
62: taskEnvironment.GetAbsolutePath(outputDir); 70: TaskEnvironment.GetAbsolutePath(sourcePath).Value;
GenerateClsidMap.cs (2)
26AbsolutePath assemblyPath = TaskEnvironment.GetAbsolutePath(IntermediateAssembly); 27AbsolutePath clsidMapPath = TaskEnvironment.GetAbsolutePath(ClsidMapDestinationPath);
GenerateDepsFile.cs (5)
146string.IsNullOrEmpty(AssetsFilePath) ? AssetsFilePath : TaskEnvironment.GetAbsolutePath(AssetsFilePath)); 229string.IsNullOrEmpty(RuntimeGraphPath) ? RuntimeGraphPath : TaskEnvironment.GetAbsolutePath(RuntimeGraphPath)); 271return (TaskEnvironment.GetAbsolutePath(i.ItemSpec), destinationSubPath); 321AbsolutePath absoluteProjectPath = TaskEnvironment.GetAbsolutePath(ProjectPath); 322AbsolutePath absoluteDepsFilePath = TaskEnvironment.GetAbsolutePath(DepsFilePath);
GenerateRuntimeConfigurationFiles.cs (4)
144AbsolutePath assetsPath = TaskEnvironment.GetAbsolutePath(AssetsFilePath); 194WriteToJsonFile(TaskEnvironment.GetAbsolutePath(RuntimeConfigPath), config); 289AbsolutePath userConfigPath = TaskEnvironment.GetAbsolutePath(UserRuntimeConfig); 368WriteToJsonFile(TaskEnvironment.GetAbsolutePath(RuntimeConfigDevPath), devConfig);
GenerateToolsSettingsFile.cs (1)
36AbsolutePath settingsPath = TaskEnvironment.GetAbsolutePath(ToolsSettingsFilePath);
GetAssemblyAttributes.cs (1)
25AbsolutePath templatePath = TaskEnvironment.GetAbsolutePath(PathToTemplateFile);
GetPackageDirectory.cs (2)
42AbsolutePath assetsFilePath = TaskEnvironment.GetAbsolutePath(AssetsFileWithAdditionalPackageFolders); 49.Select(p => string.IsNullOrEmpty(p) ? p : (string)TaskEnvironment.GetAbsolutePath(p))
GetPackagesToPrune.cs (2)
148AbsolutePath prunePackageDataRoot = TaskEnvironment.GetAbsolutePath(PrunePackageDataRoot); 152.Select(r => TaskEnvironment.GetAbsolutePath(r))
parent\Common\ConflictResolution\ConflictItem.cs (1)
239? _taskEnvironment.GetAbsolutePath(sourcePath)
parent\Common\ConflictResolution\ResolvePackageFileConflicts.cs (2)
76AbsolutePath frameworkListPath = TaskEnvironment.GetAbsolutePath(Path.Combine(tfd.ItemSpec, "RedistList", "FrameworkList.xml")); 144AbsolutePath manifestPath = TaskEnvironment.GetAbsolutePath(pm.ItemSpec);
PickBestRid.cs (1)
48AbsolutePath runtimeGraphPath = TaskEnvironment.GetAbsolutePath(RuntimeGraphPath);
ProcessFrameworkReferences.cs (4)
1152AbsolutePath netCoreRoot = TaskEnvironment.GetAbsolutePath(NetCoreRoot); 1169AbsolutePath absolutePackPath = TaskEnvironment.GetAbsolutePath(packPath); 1210string? absoluteUserProfileDir = string.IsNullOrEmpty(userProfileDir) ? null : (string)TaskEnvironment.GetAbsolutePath(userProfileDir); 1213string netCoreRoot = string.IsNullOrWhiteSpace(NetCoreRoot) ? NetCoreRoot : TaskEnvironment.GetAbsolutePath(NetCoreRoot);
ResolveAppHosts.cs (1)
299appHostPackPathAbsolute = TaskEnvironment.GetAbsolutePath(appHostPackPath).Value;
ResolvePackageAssets.cs (7)
573reader = OpenCacheFile(task.TaskEnvironment.GetAbsolutePath(task.ProjectAssetsCacheFile), settingsHash); 587reader = OpenCacheFile(task.TaskEnvironment.GetAbsolutePath(task.ProjectAssetsCacheFile), settingsHash); 599bool 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)); 777Directory.CreateDirectory(Path.GetDirectoryName(_task.TaskEnvironment.GetAbsolutePath(_task.ProjectAssetsCacheFile))); 778var stream = File.Open(_task.TaskEnvironment.GetAbsolutePath(_task.ProjectAssetsCacheFile), FileMode.Create, FileAccess.ReadWrite, FileShare.None);
ResolvePackageDependencies.cs (2)
137private LockFile LockFile => _lockFile ??= new LockFileCache(this).GetLockFile(TaskEnvironment.GetAbsolutePath(ProjectAssetsFile)); 473: TaskEnvironment.GetAbsolutePath(projectDirectory);
ResolveRuntimePackAssets.cs (1)
121: TaskEnvironment.GetAbsolutePath(runtimePackRoot);
ResolveTargetingPackAssets.cs (7)
121: TaskEnvironment.GetAbsolutePath(targetingPackPath); 211AbsolutePath targetingPackDllFolder = TaskEnvironment.GetAbsolutePath( 219targetingPackDllFolder = TaskEnvironment.GetAbsolutePath( 225AbsolutePath platformManifestPath = TaskEnvironment.GetAbsolutePath( 228AbsolutePath packageOverridesPath = TaskEnvironment.GetAbsolutePath( 231AbsolutePath frameworkListPath = TaskEnvironment.GetAbsolutePath( 308AbsolutePath targetingPackAssetPath = TaskEnvironment.GetAbsolutePath(
SelectRuntimeIdentifierSpecificItems.cs (1)
58AbsolutePath runtimeIdentifierGraphPath = TaskEnvironment.GetAbsolutePath(RuntimeIdentifierGraphPath);
WriteAppConfigWithSupportedRuntime.cs (2)
41AbsolutePath outputPath = TaskEnvironment.GetAbsolutePath(OutputAppConfigFile.ItemSpec); 164AbsolutePath appConfigPath = TaskEnvironment.GetAbsolutePath(appConfigItem.ItemSpec);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (8)
GZipCompress.cs (2)
34var outputDirectory = TaskEnvironment.GetAbsolutePath(OutputDirectory); 40inputFullPaths[i] = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(FilesToCompress[i].ItemSpec));
parent\parent\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (6)
1136RelatedAsset = !string.IsNullOrEmpty(RelatedAsset) ? Path.GetFullPath(env.GetAbsolutePath(RelatedAsset)) : RelatedAsset; 1146=> Path.GetFullPath(string.IsNullOrEmpty(path) ? path : env.GetAbsolutePath(path)) + 1239destPath = Path.GetFullPath(env.GetAbsolutePath(destPath)); 1246var sourceFile = env.GetAbsolutePath(asset.Identity); 1692var fileInfo = new FileInfo(string.IsNullOrEmpty(identity) ? identity: env.GetAbsolutePath(identity)); 1697fileInfo = new FileInfo(string.IsNullOrEmpty(originalItemSpec) ? originalItemSpec : env.GetAbsolutePath(originalItemSpec));
Microsoft.NET.Sdk.Razor.Tasks (1)
FindAssembliesWithReferencesTo.cs (1)
47: TaskEnvironment.GetAbsolutePath(item.ItemSpec).Value,
Microsoft.NET.Sdk.StaticWebAssets.Tasks (30)
Compression\ResolveCompressedAssets.cs (1)
123var outputPath = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(OutputPath));
ComputeReferenceStaticWebAssetItems.cs (2)
80groupedAsset.OriginalItemSpec = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(groupedAsset.OriginalItemSpec)); 104selected.OriginalItemSpec = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(selected.OriginalItemSpec));
Data\StaticWebAsset.cs (6)
1136RelatedAsset = !string.IsNullOrEmpty(RelatedAsset) ? Path.GetFullPath(env.GetAbsolutePath(RelatedAsset)) : RelatedAsset; 1146=> Path.GetFullPath(string.IsNullOrEmpty(path) ? path : env.GetAbsolutePath(path)) + 1239destPath = Path.GetFullPath(env.GetAbsolutePath(destPath)); 1246var sourceFile = env.GetAbsolutePath(asset.Identity); 1692var fileInfo = new FileInfo(string.IsNullOrEmpty(identity) ? identity: env.GetAbsolutePath(identity)); 1697fileInfo = new FileInfo(string.IsNullOrEmpty(originalItemSpec) ? originalItemSpec : env.GetAbsolutePath(originalItemSpec));
DefineStaticWebAssets.Cache.cs (2)
22: TaskEnvironment.GetAbsolutePath(CacheManifestPath).Value; 90var candidateFullPath = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(candidate.ItemSpec));
DefineStaticWebAssets.cs (4)
135var normalizedAssetPath = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(candidate.ItemSpec)); 236var identity = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(candidate.ItemSpec)); 386var candidateFullPath = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(candidate.ItemSpec)); 504var normalizedAssetPath = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(candidate.ItemSpec));
GenerateStaticWebAssetEndpointsManifest.cs (3)
39var manifestAbsolutePath = !string.IsNullOrEmpty(ManifestPath) ? TaskEnvironment.GetAbsolutePath(ManifestPath).Value : ManifestPath; 40var cacheAbsolutePath = !string.IsNullOrEmpty(CacheFilePath) ? TaskEnvironment.GetAbsolutePath(CacheFilePath).Value : CacheFilePath; 41var exclusionCacheAbsolutePath = !string.IsNullOrEmpty(ExclusionPatternsCacheFilePath) ? TaskEnvironment.GetAbsolutePath(ExclusionPatternsCacheFilePath).Value : ExclusionPatternsCacheFilePath;
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
94var targetPropsFilePath = string.IsNullOrEmpty(TargetPropsFilePath) ? TargetPropsFilePath : TaskEnvironment.GetAbsolutePath(TargetPropsFilePath).Value;
GenerateStaticWebAssetsDevelopmentManifest.cs (2)
41AbsolutePath manifestPath = TaskEnvironment.GetAbsolutePath(ManifestPath); 42if (File.Exists(manifestPath) && File.GetLastWriteTimeUtc(manifestPath) > File.GetLastWriteTimeUtc(TaskEnvironment.GetAbsolutePath(CacheFilePath)))
GenerateStaticWebAssetsManifest.cs (2)
132string absolutizedManifestPath = !string.IsNullOrEmpty(ManifestPath) ? TaskEnvironment.GetAbsolutePath(ManifestPath) : ManifestPath; 134string absolutizedManifestCacheFilePath = isManifestCacheFileConfigured ? TaskEnvironment.GetAbsolutePath(ManifestCacheFilePath) : ManifestCacheFilePath;
GenerateStaticWebAssetsPropsFile.cs (1)
163var targetPropsAbsoluteFilePath = string.IsNullOrEmpty(TargetPropsFilePath) ? TargetPropsFilePath : TaskEnvironment.GetAbsolutePath(TargetPropsFilePath).Value;
MergeConfigurationProperties.cs (1)
116var projectReferenceFullPath = Path.GetFullPath((string)TaskEnvironment.GetAbsolutePath(referenceMetadata));
ReadStaticWebAssetsManifestFile.cs (1)
32string manifestPath = string.IsNullOrEmpty(ManifestPath) ? ManifestPath : TaskEnvironment.GetAbsolutePath(ManifestPath);
ScopedCss\ConcatenateCssFiles.cs (2)
90foreach (var line in File.ReadLines(TaskEnvironment.GetAbsolutePath(current.ItemSpec))) 98string outputFile = string.IsNullOrWhiteSpace(OutputFile) ? OutputFile : TaskEnvironment.GetAbsolutePath(OutputFile);
StaticWebAssetsGeneratePackagePropsFile.cs (1)
27var buildTargetPath = string.IsNullOrEmpty(BuildTargetPath) ? BuildTargetPath : TaskEnvironment.GetAbsolutePath(BuildTargetPath).Value;
StaticWebAssetsGeneratePackManifest.cs (1)
75string manifestPath = string.IsNullOrEmpty(ManifestPath) ? ManifestPath : TaskEnvironment.GetAbsolutePath(ManifestPath);
NuGet.Build.Tasks (2)
GetRestoreProjectReferencesTask.cs (1)
76var referencePath = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(combinedPath));
GetRestoreSolutionProjectsTask.cs (1)
64var projectPath = Path.GetFullPath(TaskEnvironment.GetAbsolutePath(combinedPath));