43 references to DirectoryPath
dotnet (39)
BuildServer\BuildServerProvider.cs (2)
73
return new
DirectoryPath
(directory);
76
return new
DirectoryPath
(
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (1)
19
private readonly ToolManifestFinder _toolManifest = toolManifest ?? new ToolManifestFinder(new
DirectoryPath
(currentWorkingDirectory ?? Directory.GetCurrentDirectory()));
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
48
_toolManifestFinder = toolManifestFinder ?? new ToolManifestFinder(new
DirectoryPath
(currentWorkingDirectory ?? Directory.GetCurrentDirectory()));
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
98
var tempDir = new
DirectoryPath
(TemporaryDirectory.CreateSubdirectory());
184
toolPath = new
DirectoryPath
(_toolPath);
Commands\Tool\Install\ToolInstallLocalCommand.cs (1)
62
_toolManifestFinder = toolManifestFinder ?? new ToolManifestFinder(new
DirectoryPath
(Directory.GetCurrentDirectory()));
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
48
toolPath = new
DirectoryPath
(toolPathOption);
Commands\Tool\List\ToolListLocalCommand.cs (1)
29
new ToolManifestFinder(new
DirectoryPath
(Directory.GetCurrentDirectory()));
Commands\Tool\Restore\ToolRestoreCommand.cs (1)
57
?? new ToolManifestFinder(new
DirectoryPath
(Directory.GetCurrentDirectory()));
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
46
toolDirectoryPath = new
DirectoryPath
(toolPath);
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
37
new ToolManifestFinder(new
DirectoryPath
(Directory.GetCurrentDirectory()));
Commands\Tool\Update\ToolUpdateCommand.cs (1)
48
DirectoryPath? location = string.IsNullOrWhiteSpace(_toolPath) ? null : new
DirectoryPath
(_toolPath);
Commands\Tool\Update\ToolUpdateLocalCommand.cs (1)
37
_toolManifestFinder = toolManifestFinder ?? new ToolManifestFinder(new
DirectoryPath
(Directory.GetCurrentDirectory()));
Commands\Workload\Install\FileBasedInstaller.cs (3)
61
_tempPackagesDir = new
DirectoryPath
(tempDirPath ?? TemporaryDirectory.CreateSubdirectory());
216
var packFiles = _nugetPackageDownloader.ExtractPackageAsync(packagePath, new
DirectoryPath
(tempExtractionDir)).GetAwaiter().GetResult();
675
await _nugetPackageDownloader.ExtractPackageAsync(nupkgPath, new
DirectoryPath
(extractionPath));
Commands\Workload\Install\WorkloadInstallCommand.cs (2)
159
DownloadToOfflineCacheAsync(workloadsToDownload, new
DirectoryPath
(_downloadToCacheOption), _skipManifestUpdate, _includePreviews).Wait();
236
DirectoryPath? offlineCache = string.IsNullOrWhiteSpace(_fromCacheOption) ? null : new
DirectoryPath
(_fromCacheOption);
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
68
var tempPackagesDir = new
DirectoryPath
(TemporaryDirectory.CreateSubdirectory());
Commands\Workload\InstallingWorkloadCommand.cs (3)
369
tempPath = new
DirectoryPath
(Path.Combine(TempDirectoryPath, "dotnet-manifest-extraction"));
374
folderForManifestDownloads = new
DirectoryPath
(downloadFolder);
413
DirectoryPath downloadFolderDirectoryPath =
new
(downloadFolder);
Commands\Workload\Update\WorkloadUpdateCommand.cs (3)
84
DownloadToOfflineCacheAsync(new
DirectoryPath
(_downloadToCacheOption), _includePreviews).Wait();
109
new
DirectoryPath
(_fromCacheOption))
152
DirectoryPath? offlineCache = string.IsNullOrWhiteSpace(_fromCacheOption) ? null : new
DirectoryPath
(_fromCacheOption);
Commands\Workload\WorkloadCommandBase.cs (1)
118
TempPackagesDirectory = new
DirectoryPath
(Path.Combine(TempDirectoryPath, "dotnet-sdk-advertising-temp"));
Commands\Workload\WorkloadIntegrityChecker.cs (1)
21
var tempPackagesDirectory = new
DirectoryPath
(TemporaryDirectory.CreateSubdirectory());
ShellShim\ShellShimRepositoryFactory.cs (1)
20
return new
DirectoryPath
(CliFolderPathCalculator.ToolsShimPath);
ToolPackage\LocalToolsResolverCache.cs (1)
28
cacheDirectory ?? new
DirectoryPath
(Path.Combine(CliFolderPathCalculator.ToolsResolverCachePath));
ToolPackage\ToolPackageDownloader.cs (2)
72
includeUnlisted: includeUnlisted, downloadFolder: new
DirectoryPath
(packagesRootPath)).ConfigureAwait(false).GetAwaiter().GetResult();
98
nugetPackageDownloader.ExtractPackageAsync(packagePath, new
DirectoryPath
(nupkgDir)).ConfigureAwait(false).GetAwaiter().GetResult();
ToolPackage\ToolPackageDownloaderBase.cs (2)
56
_localToolDownloadDir = new
DirectoryPath
(SettingsUtility.GetGlobalPackagesFolder(settings));
59
_localToolAssetDir = new
DirectoryPath
(_fileSystem.Directory.CreateTemporarySubdirectory());
ToolPackage\ToolPackageFactory.cs (2)
56
return new
DirectoryPath
(CliFolderPathCalculator.ToolsPackagePath);
64
? new
DirectoryPath
(
ToolPackage\ToolPackageStoreAndQuery.cs (3)
15
public DirectoryPath Root { get; private set; } = new
DirectoryPath
(Path.GetFullPath(root.Value));
94
packageDirectory: new
DirectoryPath
(subdirectory),
95
assetsJsonParentDirectory: new
DirectoryPath
(subdirectory), _fileSystem);
Microsoft.DotNet.InternalAbstractions (4)
DirectoryPath.cs (3)
30
return new
DirectoryPath
(Path.Combine(insertValueInFront));
55
return new
DirectoryPath
(parentDirectory.FullName);
68
return new
DirectoryPath
(parentDirectory.FullName);
FilePath.cs (1)
31
return new
DirectoryPath
(Path.GetDirectoryName(Value)!);