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