31 references to PathHelper
dotnet-svcutil-lib (20)
CommandProcessorOptions.cs (10)
148
if (
PathHelper
.IsFile(cmdOptions.Inputs[0], Directory.GetCurrentDirectory(), out var fileUri) &&
398
PathHelper
.CreateUniqueDirectoryName(BaseServiceReferenceName, new DirectoryInfo(workingDirectory));
435
if (
PathHelper
.IsUnderDirectory(outputFile, this.OutputDir, out var filePath, out var relPath))
452
!
PathHelper
.IsUnderDirectory(outputFile, new DirectoryInfo(this.Project.DirectoryPath), out filePath, out relPath))
515
var svcRefNames = paramsFiles.Select(pf => {
PathHelper
.GetRelativePath(Path.GetDirectoryName(pf), new DirectoryInfo(projectDir), out var relPath); return relPath; })
520
PathHelper
.GetRelativePath(paramsFilePath, new DirectoryInfo(projectDir), out fileRelPath);
526
if (!
PathHelper
.IsUnderDirectory(svcutilParmasFile, projectDirInfo, out paramsFilePath, out fileRelPath) || !File.Exists(paramsFilePath))
529
if (!
PathHelper
.IsUnderDirectory(wcfcsParamsFile, projectDirInfo, out paramsFilePath, out fileRelPath) || !File.Exists(paramsFilePath))
651
if (this.Project != null &&
PathHelper
.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.Project.DirectoryPath), out var relPath))
733
if (
PathHelper
.IsFile(this.Inputs[idx], Directory.GetCurrentDirectory(), out Uri metadataUri))
Shared\MSBuildProj.cs (2)
1000
var 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)
89
if (this.OutputFile != null &&
PathHelper
.GetRelativePath(this.OutputFile.OriginalPath(), optionsFileDirectory, out var relPath))
98
if (input.IsAbsoluteUri && input.IsFile &&
PathHelper
.GetRelativePath(input.LocalPath, optionsFileDirectory, out relPath))
117
if (!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)
41
bool contains =
PathHelper
.GetRelativePath(path, workingDirectory)
Shared\Utilities\RuntimeEnvironmentHelper.cs (2)
50
await
PathHelper
.TryCopyFileIfFoundAsync("global.json", workingDirectory, destinationDirectory, logger, cancellationToken).ConfigureAwait(false);
56
await
PathHelper
.TryCopyFileIfFoundAsync("nuget.config", workingDirectory, destinationDirectory, logger, cancellationToken).ConfigureAwait(false);
Tool.cs (1)
268
PathHelper
.IsUnderDirectory(options.OutputFile.FullName, new DirectoryInfo(options.Project.DirectoryPath), out var filePath, out var relPath);
dotnet-svcutil-lib.Tests (11)
E2ETests.cs (1)
252
var uri =
PathHelper
.GetRelativePath(Path.Combine(this_TestGroupOutputDir, "TypeReuseSvc.wsdl"), new DirectoryInfo(this_TestCaseOutputDir));
ProjectUtils.cs (1)
185
var 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))
394
var bRel =
PathHelper
.GetRelativePath(b, new DirectoryInfo(baselineDir));
395
var gRel =
PathHelper
.GetRelativePath(g, new DirectoryInfo(outputDir));
404
var bRel =
PathHelper
.GetRelativePath(b, new DirectoryInfo(baselineDir));
405
var gRel =
PathHelper
.GetRelativePath(g, new DirectoryInfo(outputDir));
423
PathHelper
.GetRelativePath(generated, new DirectoryInfo(outputDir), out var relativePath);
426
PathHelper
.GetRelativePath(generated, new DirectoryInfo(bootstrapDir), out relativePath);
589
var rootSolutionFolder =
PathHelper
.TryFindFileAsync("dotnet-svcutil.sln", parentDir, null, CancellationToken.None).Result;