31 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);
dotnet-svcutil-lib.Tests (11)
E2ETests.cs (1)
252var uri = PathHelper.GetRelativePath(Path.Combine(this_TestGroupOutputDir, "TypeReuseSvc.wsdl"), new DirectoryInfo(this_TestCaseOutputDir));
ProjectUtils.cs (1)
185var referenceNamespace = PathHelper.GetRelativePath(referenceFolderName, project.DirectoryPath).Replace("\\", ".").Replace("/", ".").Replace(" ", "_");
TestInit.cs (9)
363.Where(f => !PathHelper.PathHasFolder(f, excludeDirs, this_TestCaseBaselinesDir)).Where(f => !f.ToLower().EndsWith("nuget.config")).ToList(); 372.Where(f => !PathHelper.PathHasFolder(f, excludeDirs, this_TestCaseOutputDir)) 394var bRel = PathHelper.GetRelativePath(b, new DirectoryInfo(baselineDir)); 395var gRel = PathHelper.GetRelativePath(g, new DirectoryInfo(outputDir)); 404var bRel = PathHelper.GetRelativePath(b, new DirectoryInfo(baselineDir)); 405var gRel = PathHelper.GetRelativePath(g, new DirectoryInfo(outputDir)); 423PathHelper.GetRelativePath(generated, new DirectoryInfo(outputDir), out var relativePath); 426PathHelper.GetRelativePath(generated, new DirectoryInfo(bootstrapDir), out relativePath); 589var rootSolutionFolder = PathHelper.TryFindFileAsync("dotnet-svcutil.sln", parentDir, null, CancellationToken.None).Result;