20 references to PathHelper
dotnet-svcutil-lib (20)
CommandProcessorOptions.cs (10)
148if (PathHelper.IsFile(cmdOptions.Inputs[0], Directory.GetCurrentDirectory(), out var fileUri) && 398PathHelper.CreateUniqueDirectoryName(BaseServiceReferenceName, new DirectoryInfo(workingDirectory)); 435if (PathHelper.IsUnderDirectory(outputFile, this.OutputDir, out var filePath, out var relPath)) 452!PathHelper.IsUnderDirectory(outputFile, new DirectoryInfo(this.Project.DirectoryPath), out filePath, out relPath)) 515var svcRefNames = paramsFiles.Select(pf => { PathHelper.GetRelativePath(Path.GetDirectoryName(pf), new DirectoryInfo(projectDir), out var relPath); return relPath; }) 520PathHelper.GetRelativePath(paramsFilePath, new DirectoryInfo(projectDir), out fileRelPath); 526if (!PathHelper.IsUnderDirectory(svcutilParmasFile, projectDirInfo, out paramsFilePath, out fileRelPath) || !File.Exists(paramsFilePath)) 529if (!PathHelper.IsUnderDirectory(wcfcsParamsFile, projectDirInfo, out paramsFilePath, out fileRelPath) || !File.Exists(paramsFilePath)) 651if (this.Project != null && PathHelper.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.Project.DirectoryPath), out var relPath)) 733if (PathHelper.IsFile(this.Inputs[idx], Directory.GetCurrentDirectory(), out Uri metadataUri))
Shared\MSBuildProj.cs (2)
1000var binFolder = await PathHelper.TryFindFolderAsync("bin", outputPath, logger, cancellationToken).ConfigureAwait(false); 1006.Where(f => PathHelper.GetFolderName(Path.GetDirectoryName(f)) == this.TargetFramework || Directory.GetParent(Directory.GetParent(f).FullName).Name == this.TargetFramework)
Shared\Options\UpdateOptions.cs (3)
89if (this.OutputFile != null && PathHelper.GetRelativePath(this.OutputFile.OriginalPath(), optionsFileDirectory, out var relPath)) 98if (input.IsAbsoluteUri && input.IsFile && PathHelper.GetRelativePath(input.LocalPath, optionsFileDirectory, out relPath)) 117if (!input.IsAbsoluteUri && PathHelper.IsFile(input, optionsFileDirectory.FullName, out var fileUri))
Shared\ProjectPropertyResolver.cs (1)
206.Where(f => PathHelper.PathHasFolder(f, new string[] { targetFramework }, projectDir))
Shared\Utilities\PathHelper.cs (1)
41bool contains = PathHelper.GetRelativePath(path, workingDirectory)
Shared\Utilities\RuntimeEnvironmentHelper.cs (2)
50await PathHelper.TryCopyFileIfFoundAsync("global.json", workingDirectory, destinationDirectory, logger, cancellationToken).ConfigureAwait(false); 56await PathHelper.TryCopyFileIfFoundAsync("nuget.config", workingDirectory, destinationDirectory, logger, cancellationToken).ConfigureAwait(false);
Tool.cs (1)
268PathHelper.IsUnderDirectory(options.OutputFile.FullName, new DirectoryInfo(options.Project.DirectoryPath), out var filePath, out var relPath);