20 references to PathHelper
dotnet-svcutil-lib (20)
CommandProcessorOptions.cs (10)
147
if (
PathHelper
.IsFile(cmdOptions.Inputs[0], Directory.GetCurrentDirectory(), out var fileUri) &&
397
PathHelper
.CreateUniqueDirectoryName(BaseServiceReferenceName, new DirectoryInfo(workingDirectory));
434
if (
PathHelper
.IsUnderDirectory(outputFile, this.OutputDir, out var filePath, out var relPath))
451
!
PathHelper
.IsUnderDirectory(outputFile, new DirectoryInfo(this.Project.DirectoryPath), out filePath, out relPath))
514
var svcRefNames = paramsFiles.Select(pf => {
PathHelper
.GetRelativePath(Path.GetDirectoryName(pf), new DirectoryInfo(projectDir), out var relPath); return relPath; })
519
PathHelper
.GetRelativePath(paramsFilePath, new DirectoryInfo(projectDir), out fileRelPath);
525
if (!
PathHelper
.IsUnderDirectory(svcutilParmasFile, projectDirInfo, out paramsFilePath, out fileRelPath) || !File.Exists(paramsFilePath))
528
if (!
PathHelper
.IsUnderDirectory(wcfcsParamsFile, projectDirInfo, out paramsFilePath, out fileRelPath) || !File.Exists(paramsFilePath))
650
if (this.Project != null &&
PathHelper
.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.Project.DirectoryPath), out var relPath))
732
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)
86
if (this.OutputFile != null &&
PathHelper
.GetRelativePath(this.OutputFile.OriginalPath(), optionsFileDirectory, out var relPath))
95
if (input.IsAbsoluteUri && input.IsFile &&
PathHelper
.GetRelativePath(input.LocalPath, optionsFileDirectory, out relPath))
114
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);