191 instantiations of DirectoryPath
dotnet (45)
BuildServer\BuildServerProvider.cs (2)
73
return new
DirectoryPath
(directory);
76
return new
DirectoryPath
(
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (1)
22
private readonly ToolManifestFinder _toolManifest = toolManifest ?? new ToolManifestFinder(new
DirectoryPath
(currentWorkingDirectory ?? Directory.GetCurrentDirectory()));
Commands\Package\Add\PackageAddCommandParser.cs (2)
117
var downloader = new NuGetPackageDownloader.NuGetPackageDownloader(packageInstallDir: new
DirectoryPath
());
131
var downloader = new NuGetPackageDownloader.NuGetPackageDownloader(packageInstallDir: new
DirectoryPath
());
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
40
private readonly ToolManifestFinder _toolManifestFinder = toolManifestFinder ?? new ToolManifestFinder(new
DirectoryPath
(currentWorkingDirectory ?? Directory.GetCurrentDirectory()));
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
87
var tempDir = new
DirectoryPath
(PathUtilities.CreateTempSubdirectory());
155
toolPath = new
DirectoryPath
(_toolPath);
Commands\Tool\Install\ToolInstallLocalCommand.cs (1)
58
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)
56
?? new ToolManifestFinder(new
DirectoryPath
(Directory.GetCurrentDirectory()));
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
48
toolDirectoryPath = new
DirectoryPath
(toolPath);
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
38
new ToolManifestFinder(new
DirectoryPath
(Directory.GetCurrentDirectory()));
Commands\Tool\Update\ToolUpdateCommand.cs (1)
51
DirectoryPath? location = string.IsNullOrWhiteSpace(_toolPath) ? null : new
DirectoryPath
(_toolPath);
Commands\Tool\Update\ToolUpdateLocalCommand.cs (1)
50
new ToolManifestFinder(new
DirectoryPath
(Directory.GetCurrentDirectory()));
Commands\Workload\Install\FileBasedInstaller.cs (3)
59
_tempPackagesDir = new
DirectoryPath
(tempDirPath ?? PathUtilities.CreateTempSubdirectory());
213
var packFiles = _nugetPackageDownloader.ExtractPackageAsync(packagePath, new
DirectoryPath
(tempExtractionDir)).GetAwaiter().GetResult();
672
await _nugetPackageDownloader.ExtractPackageAsync(nupkgPath, new
DirectoryPath
(extractionPath));
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (3)
755
await _nugetPackageDownloader.ExtractPackageAsync(nupkgPath, new
DirectoryPath
(extractionPath));
958
_ = _nugetPackageDownloader.ExtractPackageAsync(packagePath, new
DirectoryPath
(extractionDirectory)).Result;
1128
DirectoryPath tempPackagesDir =
new
(string.IsNullOrWhiteSpace(tempDirPath) ? PathUtilities.CreateTempSubdirectory() : tempDirPath);
Commands\Workload\Install\WorkloadInstallCommand.cs (2)
146
DownloadToOfflineCacheAsync(workloadsToDownload, new
DirectoryPath
(_downloadToCacheOption), _skipManifestUpdate, _includePreviews).Wait();
221
DirectoryPath? offlineCache = string.IsNullOrWhiteSpace(_fromCacheOption) ? null : new
DirectoryPath
(_fromCacheOption);
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
67
var tempPackagesDir = new
DirectoryPath
(PathUtilities.CreateTempSubdirectory());
Commands\Workload\InstallingWorkloadCommand.cs (3)
372
tempPath = new
DirectoryPath
(Path.Combine(TempDirectoryPath, "dotnet-manifest-extraction"));
377
folderForManifestDownloads = new
DirectoryPath
(downloadFolder);
416
DirectoryPath downloadFolderDirectoryPath =
new
(downloadFolder);
Commands\Workload\Update\WorkloadUpdateCommand.cs (3)
77
DownloadToOfflineCacheAsync(new
DirectoryPath
(_downloadToCacheOption), _includePreviews).Wait();
106
new
DirectoryPath
(_fromCacheOption))
149
DirectoryPath? offlineCache = string.IsNullOrWhiteSpace(_fromCacheOption) ? null : new
DirectoryPath
(_fromCacheOption);
Commands\Workload\WorkloadCommandBase.cs (1)
111
TempPackagesDirectory = new
DirectoryPath
(Path.Combine(TempDirectoryPath, "dotnet-sdk-advertising-temp"));
Commands\Workload\WorkloadIntegrityChecker.cs (1)
21
var tempPackagesDirectory = new
DirectoryPath
(PathUtilities.CreateTempSubdirectory());
ShellShim\ShellShimRepositoryFactory.cs (1)
20
return new
DirectoryPath
(CliFolderPathCalculator.ToolsShimPath);
ToolPackage\LocalToolsResolverCache.cs (1)
27
cacheDirectory ?? new
DirectoryPath
(Path.Combine(CliFolderPathCalculator.ToolsResolverCachePath));
ToolPackage\ToolPackageDownloader.cs (3)
45
new
DirectoryPath
(),
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)
53
_localToolDownloadDir = new
DirectoryPath
(SettingsUtility.GetGlobalPackagesFolder(settings));
56
_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);
dotnet.Tests (121)
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (6)
27
_nugetGlobalPackagesFolder = new
DirectoryPath
(NuGetGlobalPackagesFolder.GetLocation());
32
new
DirectoryPath
(Path.Combine(temporaryDirectory, "cache")));
90
new(new
DirectoryPath
(_testDirectoryRoot), _fileSystem, new FakeDangerousFileDetector());
123
new(new
DirectoryPath
(_testDirectoryRoot), _fileSystem, new FakeDangerousFileDetector());
164
new(new
DirectoryPath
(_testDirectoryRoot), _fileSystem);
186
new(new
DirectoryPath
(_testDirectoryRoot), _fileSystem);
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (7)
60
var toolPackageStoreMock = new ToolPackageStoreAndQuery(new
DirectoryPath
(_pathToPlacePackages), _fileSystem);
65
new
DirectoryPath
(_pathToPlaceShim),
73
new
DirectoryPath
(_toolsDirectory),
122
rootConfigDirectory: new
DirectoryPath
(testAsset.Path),
124
var nuGetPackageDownloader = new NuGetPackageDownloader(new
DirectoryPath
(testAsset.Path));
643
nugetPackageDownloader: new NuGetPackageDownloader(new
DirectoryPath
(PathUtilities.CreateTempSubdirectory()), verifySignatures: false, currentWorkingDirectory: testDir),
654
new
DirectoryPath
(_pathToPlaceShim),
CommandTests\Tool\Install\ToolInstallLocalCommandTests.cs (4)
51
new(new
DirectoryPath
(_pathToPlacePackages), _fileSystem);
78
new
DirectoryPath
(Path.Combine(_temporaryDirectory, "cache")),
83
_toolManifestFinder = new ToolManifestFinder(new
DirectoryPath
(_temporaryDirectory), _fileSystem, new FakeDangerousFileDetector());
91
new
DirectoryPath
(Path.Combine(_temporaryDirectory, "cache")),
CommandTests\Tool\List\ToolListLocalCommandTests.cs (2)
40
new
DirectoryPath
(_temporaryDirectory),
46
new
DirectoryPath
(_temporaryDirectory),
CommandTests\Tool\Restore\ToolRestoreCommandTests.cs (15)
59
_nugetGlobalPackagesFolder = new
DirectoryPath
(NuGetGlobalPackagesFolder.GetLocation());
63
new(new
DirectoryPath
(_pathToPlacePackages), _fileSystem);
107
new
DirectoryPath
(Path.Combine(_temporaryDirectory, "cache")),
119
new
DirectoryPath
(_temporaryDirectory),
123
new
DirectoryPath
(_temporaryDirectory),
158
new
DirectoryPath
(_temporaryDirectory),
162
new
DirectoryPath
(_temporaryDirectory),
195
new
DirectoryPath
(_temporaryDirectory),
199
new
DirectoryPath
(_temporaryDirectory),
252
new
DirectoryPath
(_temporaryDirectory),
256
new
DirectoryPath
(_temporaryDirectory),
297
new
DirectoryPath
(_temporaryDirectory),
441
new ToolManifestFinder(new
DirectoryPath
(Path.GetTempPath()), _fileSystem, new FakeDangerousFileDetector());
466
new
DirectoryPath
(_temporaryDirectory),
494
new
DirectoryPath
(_temporaryDirectory),
CommandTests\Tool\Restore\ToolRestoreCommandWithMultipleNugetConfigTests.cs (4)
50
new(new
DirectoryPath
(pathToPlacePackages), _fileSystem);
59
new
DirectoryPath
(Path.Combine(temporaryDirectory, "cache")),
120
new
DirectoryPath
(Path.GetDirectoryName(_nugetConfigUnderTestRoot)),
124
new
DirectoryPath
(Path.GetDirectoryName(_nugetConfigUnderSubDir)),
CommandTests\Tool\Run\ToolRunCommandTests.cs (3)
23
_nugetGlobalPackagesFolder = new
DirectoryPath
(NuGetGlobalPackagesFolder.GetLocation());
76
new ToolManifestFinder(new
DirectoryPath
(testDirectoryRoot.Path), fileSystem, new FakeDangerousFileDetector());
86
new
DirectoryPath
(Path.Combine(temporaryDirectory, "cache")));
CommandTests\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommandTests.cs (9)
72
var packageDirectory = new
DirectoryPath
(Path.GetFullPath(_toolsDirectory))
114
var packageDirectory = new
DirectoryPath
(Path.GetFullPath(_toolsDirectory))
133
new
DirectoryPath
(_toolsDirectory),
143
new
DirectoryPath
(_shimsDirectory),
184
var packageDirectory = new
DirectoryPath
(Path.GetFullPath(_toolsDirectory))
232
var store = new ToolPackageStoreMock(new
DirectoryPath
(_toolsDirectory), _fileSystem);
248
new
DirectoryPath
(_shimsDirectory),
264
new
DirectoryPath
(_toolsDirectory),
274
new
DirectoryPath
(_shimsDirectory),
CommandTests\Tool\Uninstall\ToolUninstallLocalCommandTests.cs (1)
41
_toolManifestFinder = new ToolManifestFinder(new
DirectoryPath
(_temporaryDirectory), _fileSystem, new FakeDangerousFileDetector());
CommandTests\Tool\Update\ToolUpdateGlobalOrToolPathCommandTests.cs (2)
47
_store = new ToolPackageStoreMock(new
DirectoryPath
(_toolsDirectory), _fileSystem);
477
new
DirectoryPath
(_shimsDirectory),
CommandTests\Tool\Update\ToolUpdateLocalCommandTests.cs (3)
64
new(new
DirectoryPath
(_pathToPlacePackages), _fileSystem);
98
new
DirectoryPath
(Path.Combine(_temporaryDirectory, "cache")),
103
_toolManifestFinder = new ToolManifestFinder(new
DirectoryPath
(_temporaryDirectory), _fileSystem,
CommandTests\Workload\Install\GivenDotnetWorkloadInstall.cs (1)
261
installer.InstalledManifests[0].offlineCache.Should().Be(new
DirectoryPath
(cachePath));
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (2)
390
CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-sdk-workload") }, new SdkFeatureBand(version), context, new
DirectoryPath
(cachePath)));
415
CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-sdk-workload") }, new SdkFeatureBand(version), context, new
DirectoryPath
(cachePath))));
CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs (4)
253
await manifestUpdater.UpdateAdvertisingManifestsAsync(includePreviews: true, offlineCache: new
DirectoryPath
(offlineCacheDir));
329
await manifestUpdater.UpdateAdvertisingManifestsAsync(includePreviews: true, offlineCache: new
DirectoryPath
(offlineCacheDir));
395
await manifestUpdater.UpdateAdvertisingManifestsAsync(includePreviews: true, offlineCache: new
DirectoryPath
(offlineCacheDir));
568
await manifestUpdater.UpdateAdvertisingManifestsAsync(false, false, new
DirectoryPath
(offlineCache));
ShellShimTests\ShellShimRepositoryTests.cs (4)
70
return new ShellShimRepository(new
DirectoryPath
(pathToShim), stage2AppHostTemplateDirectory);
102
var shellShimRepository = new ShellShimRepository(new
DirectoryPath
(Path.Combine(testFolder, extraNonExistDirectory)), GetAppHostTemplateFromStage2());
426
var templateFinder = new ShellShimTemplateFinder(new MockNuGetPackageDownloader(), new
DirectoryPath
(tempDir), null);
523
new
DirectoryPath
(pathToShim),
ToolManifestTests\ToolManifestEditorTests.cs (1)
178
toolManifestFileEditor.Read(new FilePath(manifestFile), new
DirectoryPath
(_testDirectoryRoot));
ToolManifestTests\ToolManifestFinderTests.cs (53)
34
new
DirectoryPath
(_testDirectoryRoot),
40
new
DirectoryPath
(_testDirectoryRoot),
51
new
DirectoryPath
(_testDirectoryRoot),
67
new
DirectoryPath
(subdirectoryOfTestRoot),
84
new
DirectoryPath
(_testDirectoryRoot),
96
var rootDirectory = new
DirectoryPath
(_testDirectoryRoot);
106
new
DirectoryPath
(_testDirectoryRoot),
118
new
DirectoryPath
(rootDirectory.Value),
124
new
DirectoryPath
(rootDirectory.Value),
134
var rootDirectory = new
DirectoryPath
(_testDirectoryRoot);
144
new
DirectoryPath
(_testDirectoryRoot),
157
var rootDirectory = new
DirectoryPath
(_testDirectoryRoot);
167
new
DirectoryPath
(_testDirectoryRoot),
187
new
DirectoryPath
(rootDirectory.Value),
193
new
DirectoryPath
(rootDirectory.Value),
207
new
DirectoryPath
(_testDirectoryRoot),
225
new
DirectoryPath
(_testDirectoryRoot),
251
new
DirectoryPath
(_testDirectoryRoot),
267
new
DirectoryPath
(_testDirectoryRoot),
282
new
DirectoryPath
(_testDirectoryRoot),
302
new
DirectoryPath
(_testDirectoryRoot),
319
new
DirectoryPath
(_testDirectoryRoot),
336
new
DirectoryPath
(_testDirectoryRoot),
356
new
DirectoryPath
(subdirectoryOfTestRoot),
367
new
DirectoryPath
(subdirectoryOfTestRoot),
376
new
DirectoryPath
(_testDirectoryRoot),
384
new
DirectoryPath
(subdirectoryOfTestRoot),
402
new
DirectoryPath
(subdirectoryOfTestRoot),
433
new
DirectoryPath
(subdirectoryOfTestRoot),
454
new
DirectoryPath
(subdirectoryOfTestRoot),
469
new
DirectoryPath
(_testDirectoryRoot),
486
new
DirectoryPath
(_testDirectoryRoot),
501
new
DirectoryPath
(_testDirectoryRoot),
511
new
DirectoryPath
(_testDirectoryRoot),
521
new
DirectoryPath
(_testDirectoryRoot),
531
new
DirectoryPath
(_testDirectoryRoot),
542
new
DirectoryPath
(subdirectoryOfTestRoot),
552
new
DirectoryPath
(_testDirectoryRoot),
561
new
DirectoryPath
(_testDirectoryRoot),
574
new
DirectoryPath
(_testDirectoryRoot),
588
new
DirectoryPath
(_testDirectoryRoot),
602
new
DirectoryPath
(_testDirectoryRoot),
621
new
DirectoryPath
(subdirectoryOfTestRoot),
631
new
DirectoryPath
(subdirectoryOfTestRoot),
646
new
DirectoryPath
(subdirectoryOfTestRoot),
663
= new ToolManifestFinder(new
DirectoryPath
(_testDirectoryRoot), _fileSystem, fakeMarkOfTheWebDetector);
680
new
DirectoryPath
(_testDirectoryRoot),
696
new
DirectoryPath
(_testDirectoryRoot),
712
new
DirectoryPath
(_testDirectoryRoot),
726
new
DirectoryPath
(_testDirectoryRoot),
745
var toolManifest = new ToolManifestFinder(new
DirectoryPath
(subdirectoryOfTestRoot), _fileSystem);
762
var toolManifest = new ToolManifestFinder(new
DirectoryPath
(testRoot), _fileSystem);
772
new
DirectoryPath
(_testDirectoryRoot),
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)!);
Microsoft.DotNet.PackageInstall.Tests (16)
LocalToolsResolverCacheTests.cs (3)
25
new
(fileSystem.Directory.CreateTemporaryDirectory().DirectoryPath);
228
new
(fileSystem.Directory.CreateTemporaryDirectory().DirectoryPath);
285
new
(fileSystem.Directory.CreateTemporaryDirectory().DirectoryPath);
NuGetPackageInstallerExtractTests.cs (4)
26
new(new
DirectoryPath
(Directory.GetCurrentDirectory()), null,
32
IEnumerable<string> result = await installer.ExtractPackageAsync(packagePath, new
DirectoryPath
(targetPath));
46
new
DirectoryPath
(Directory.GetCurrentDirectory()),
69
new(new
DirectoryPath
(Directory.GetCurrentDirectory()), null,
NuGetPackageInstallerTests.cs (3)
66
new
DirectoryPath
(Path.GetTempPath()).WithSubDirectories(Path.GetRandomFileName());
113
new
DirectoryPath
(Path.GetTempPath()).WithSubDirectories(Path.GetRandomFileName());
350
new
DirectoryPath
(Path.GetTempPath()).WithSubDirectories(Path.GetRandomFileName());
ToolPackageDownloaderTests.cs (3)
454
var localToolDownloadDir = Path.Combine(new
DirectoryPath
(SettingsUtility.GetGlobalPackagesFolder(settings)).ToString().Trim('"'), TestPackageId.ToString());
727
var store = new ToolPackageStoreAndQuery(new
DirectoryPath
(root.Path));
877
var root = new
DirectoryPath
(_testAssetsManager.CreateTestDirectory(callingMethod, identifier: useMock.ToString() + identiifer).Path);
ToolPackageInstallerNugetCacheTests.cs (2)
40
new
DirectoryPath
(testDirectory).WithSubDirectories(Path.GetRandomFileName());
122
var root = new
DirectoryPath
(Path.Combine(Directory.GetCurrentDirectory(), Path.GetRandomFileName()));
ToolPackageUninstallerTests.cs (1)
75
var root = new
DirectoryPath
(_testAssetsManager.CreateTestDirectory(testName, identifier).Path);
Microsoft.DotNet.Tools.Tests.ComponentMocks (5)
ToolPackageDownloaderMock.cs (3)
63
_localToolDownloadDir = new
DirectoryPath
(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "nuget", "package"));
64
_localToolAssetDir = new
DirectoryPath
(PathUtilities.CreateTempSubdirectory());
171
packageDirectory = new
DirectoryPath
(NuGetGlobalPackagesFolder.GetLocation()).WithSubDirectories(packageId.ToString());
ToolPackageStoreMock.cs (2)
24
Root = new
DirectoryPath
(Path.GetFullPath(root.Value));
105
new
DirectoryPath
(subdirectory),
246 references to DirectoryPath
dotnet (151)
BuildServer\BuildServerProvider.cs (2)
47
var
directory = GetPidFileDirectory();
68
public
DirectoryPath
GetPidFileDirectory()
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (4)
21
internal delegate IShellShimRepository CreateShellShimRepository(string appHostSourceDirectory,
DirectoryPath
? nonGlobalLocation = null);
24
DirectoryPath
? nonGlobalLocation = null,
87
var
tempDir = new DirectoryPath(PathUtilities.CreateTempSubdirectory());
152
DirectoryPath
? toolPath = null;
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
73
var
rootConfigDirectory = manifestFile.GetDirectoryPath();
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (3)
14
internal delegate IToolPackageStoreQuery CreateToolPackageStore(
DirectoryPath
? nonGlobalLocation = null);
37
DirectoryPath
? toolPath = null;
71
public IEnumerable<IToolPackage> GetPackages(
DirectoryPath
? toolPath, PackageId? packageId)
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (3)
18
internal delegate IShellShimRepository CreateShellShimRepository(string appHostSourceDirectory,
DirectoryPath
? nonGlobalLocation = null);
19
internal delegate (IToolPackageStore, IToolPackageStoreQuery, IToolPackageUninstaller) CreateToolPackageStoresAndUninstaller(
DirectoryPath
? nonGlobalLocation = null);
37
DirectoryPath
? toolDirectoryPath = null;
Commands\Tool\Update\ToolUpdateCommand.cs (1)
51
DirectoryPath
? location = string.IsNullOrWhiteSpace(_toolPath) ? null : new DirectoryPath(_toolPath);
Commands\Tool\Update\ToolUpdateGlobalOrToolPathCommand.cs (1)
17
DirectoryPath
? nonGlobalLocation = null,
Commands\Workload\Install\FileBasedInstaller.cs (12)
35
protected readonly
DirectoryPath
_tempPackagesDir;
98
public WorkloadSet InstallWorkloadSet(ITransactionContext context, string workloadSetVersion,
DirectoryPath
? offlineCache = null)
138
public void InstallWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand, ITransactionContext transactionContext,
DirectoryPath
? offlineCache = null)
143
public void InstallWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand, ITransactionContext transactionContext, bool overwriteExistingPacks,
DirectoryPath
? offlineCache = null)
220
FileAccessRetrier.RetryOnMoveAccessFailure(() =>
DirectoryPath
.MoveDirectory(tempExtractionDir, packInfo.Path));
263
public void RepairWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand,
DirectoryPath
? offlineCache = null)
273
public void InstallWorkloadManifest(ManifestVersionUpdate manifestUpdate, ITransactionContext transactionContext,
DirectoryPath
? offlineCache = null)
301
void InstallPackage(PackageId packageId, string packageVersion, string targetFolder, ITransactionContext transactionContext,
DirectoryPath
? offlineCache)
332
FileAccessRetrier.RetryOnMoveAccessFailure(() =>
DirectoryPath
.MoveDirectory(targetFolder, tempBackupDir));
344
FileAccessRetrier.RetryOnMoveAccessFailure(() =>
DirectoryPath
.MoveDirectory(tempBackupDir, targetFolder));
392
public void GarbageCollect(Func<string, IWorkloadResolver> getResolverForWorkloadSet,
DirectoryPath
? offlineCache = null, bool cleanAllPacks = false)
678
FileAccessRetrier.RetryOnMoveAccessFailure(() =>
DirectoryPath
.MoveDirectory(Path.Combine(extractionPath, "data"), targetPath));
Commands\Workload\Install\IInstaller.cs (5)
19
void InstallWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand, ITransactionContext transactionContext,
DirectoryPath
? offlineCache = null);
21
void RepairWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand,
DirectoryPath
? offlineCache = null);
23
void GarbageCollect(Func<string, IWorkloadResolver> getResolverForWorkloadSet,
DirectoryPath
? offlineCache = null, bool cleanAllPacks = false);
25
WorkloadSet InstallWorkloadSet(ITransactionContext context, string workloadSetVersion,
DirectoryPath
? offlineCache = null);
27
void InstallWorkloadManifest(ManifestVersionUpdate manifestUpdate, ITransactionContext transactionContext,
DirectoryPath
? offlineCache = null);
Commands\Workload\Install\IWorkloadManifestUpdater.cs (1)
13
Task UpdateAdvertisingManifestsAsync(bool includePreviews, bool useWorkloadSets = false,
DirectoryPath
? offlineCache = null);
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (16)
120
public void GarbageCollect(Func<string, IWorkloadResolver> getResolverForWorkloadSet,
DirectoryPath
? offlineCache = null, bool cleanAllPacks = false)
307
public WorkloadSet InstallWorkloadSet(ITransactionContext context, string workloadSetVersion,
DirectoryPath
? offlineCache)
348
(MsiPayload msi, string msiPackageId, string installationFolder) GetWorkloadSetPayload(string workloadSetVersion,
DirectoryPath
? offlineCache)
425
private void RemoveWorkloadSets(List<WorkloadSetRecord> workloadSetsToRemove,
DirectoryPath
? offlineCache)
451
private void RemoveWorkloadManifests(List<WorkloadManifestRecord> manifestToRemove,
DirectoryPath
? offlineCache)
477
private void RemoveWorkloadPacks(List<WorkloadPackRecord> packsToRemove,
DirectoryPath
? offlineCache)
539
public void InstallWorkloadManifest(ManifestVersionUpdate manifestUpdate, ITransactionContext transactionContext,
DirectoryPath
? offlineCache = null)
560
void InstallWorkloadManifestImplementation(ManifestVersionUpdate manifestUpdate,
DirectoryPath
? offlineCache = null, InstallAction action = InstallAction.Install)
587
public void RepairWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand,
DirectoryPath
? offlineCache = null)
613
public void InstallWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand, ITransactionContext transactionContext,
DirectoryPath
? offlineCache = null)
666
void RollBackMsiInstall(WorkloadDownload msiToRollback,
DirectoryPath
? offlineCache = null)
766
FileAccessRetrier.RetryOnMoveAccessFailure(() =>
DirectoryPath
.MoveDirectory(extractedManifestPath, targetPath));
809
FileAccessRetrier.RetryOnMoveAccessFailure(() =>
DirectoryPath
.MoveDirectory(manifestFolder, targetPath));
931
private string ExtractPackage(string packageId, string packageVersion,
DirectoryPath
? offlineCache)
994
private MsiPayload GetCachedMsiPayload(string packageId, string packageVersion,
DirectoryPath
? offlineCache)
1128
DirectoryPath
tempPackagesDir = new(string.IsNullOrWhiteSpace(tempDirPath) ? PathUtilities.CreateTempSubdirectory() : tempDirPath);
Commands\Workload\Install\WorkloadInstallCommand.cs (3)
221
DirectoryPath
? offlineCache = string.IsNullOrWhiteSpace(_fromCacheOption) ? null : new DirectoryPath(_fromCacheOption);
295
internal static void TryRunGarbageCollection(IInstaller workloadInstaller, IReporter reporter, VerbosityOptions verbosity, Func<string, IWorkloadResolver> getResolverForWorkloadSet,
DirectoryPath
? offlineCache = null)
325
private Task DownloadToOfflineCacheAsync(IEnumerable<WorkloadId> workloadIds,
DirectoryPath
offlineCache, bool skipManifestUpdate, bool includePreviews)
Commands\Workload\Install\WorkloadManifestUpdater.cs (4)
67
var
tempPackagesDir = new DirectoryPath(PathUtilities.CreateTempSubdirectory());
81
public async Task UpdateAdvertisingManifestsAsync(bool includePreviews, bool useWorkloadSets = false,
DirectoryPath
? offlineCache = null)
312
private async Task<bool> UpdateManifestWithVersionAsync(string id, bool includePreviews, SdkFeatureBand band, NuGetVersion packageVersion = null,
DirectoryPath
? offlineCache = null)
395
private async Task UpdateAdvertisingManifestAsync(WorkloadManifestInfo manifest, bool includePreviews,
DirectoryPath
? offlineCache = null)
Commands\Workload\InstallingWorkloadCommand.cs (4)
185
protected void UpdateWorkloadManifests(WorkloadHistoryRecorder recorder, ITransactionContext context,
DirectoryPath
? offlineCache)
366
DirectoryPath
? tempPath = null;
371
DirectoryPath
folderForManifestDownloads;
416
DirectoryPath
downloadFolderDirectoryPath = new(downloadFolder);
Commands\Workload\Update\WorkloadUpdateCommand.cs (3)
149
DirectoryPath
? offlineCache = string.IsNullOrWhiteSpace(_fromCacheOption) ? null : new DirectoryPath(_fromCacheOption);
181
private void UpdateInstalledWorkloadsFromHistory(ITransactionContext context,
DirectoryPath
? offlineCache)
202
private async Task DownloadToOfflineCacheAsync(
DirectoryPath
offlineCache, bool includePreviews)
Commands\Workload\WorkloadCommandBase.cs (1)
46
protected
DirectoryPath
TempPackagesDirectory
Commands\Workload\WorkloadIntegrityChecker.cs (1)
21
var
tempPackagesDirectory = new DirectoryPath(PathUtilities.CreateTempSubdirectory());
NugetPackageDownloader\INuGetPackageDownloader.cs (2)
20
DirectoryPath
? downloadFolder = null,
28
Task<IEnumerable<string>> ExtractPackageAsync(string packagePath,
DirectoryPath
targetFolder);
NugetPackageDownloader\NuGetPackageDownloader.cs (4)
31
private readonly
DirectoryPath
_packageInstallDir;
53
DirectoryPath
packageInstallDir,
97
DirectoryPath
? downloadFolder = null,
228
public async Task<IEnumerable<string>> ExtractPackageAsync(string packagePath,
DirectoryPath
targetFolder)
NugetPackageDownloader\PackageSourceLocation.cs (2)
14
DirectoryPath
? rootConfigDirectory = null,
30
public
DirectoryPath
? RootConfigDirectory { get; }
ShellShim\ShellShimRepository.cs (2)
13
DirectoryPath
shimsDirectory,
19
private readonly
DirectoryPath
_shimsDirectory = shimsDirectory;
ShellShim\ShellShimRepositoryFactory.cs (2)
13
public static IShellShimRepository CreateShellShimRepository(string appHostSourceDirectory,
DirectoryPath
? nonGlobalLocation = null)
18
private static
DirectoryPath
GetShimLocation()
ShellShim\ShellShimTemplateFinder.cs (2)
17
DirectoryPath
tempDir,
20
private readonly
DirectoryPath
_tempDir = tempDir;
ToolManifest\ToolManifestEditor.cs (2)
113
Read(FilePath manifest,
DirectoryPath
correspondingDirectory)
226
DirectoryPath
correspondingDirectory)
ToolManifest\ToolManifestFinder.cs (19)
14
private readonly
DirectoryPath
_probeStart;
22
DirectoryPath
probeStart,
36
IEnumerable<(FilePath manifestfile,
DirectoryPath
_)> allPossibleManifests =
53
IEnumerable<(FilePath manifestfile,
DirectoryPath
_)> allPossibleManifests =
65
IEnumerable<(FilePath manifestfile,
DirectoryPath
_)> allPossibleManifests,
70
foreach ((FilePath possibleManifest,
DirectoryPath
correspondingDirectory) in allPossibleManifests)
103
foreach ((FilePath possibleManifest,
DirectoryPath
correspondingDirectory) in
135
foreach ((FilePath possibleManifest,
DirectoryPath
correspondingDirectory) in
160
private IEnumerable<(FilePath manifestfile,
DirectoryPath
manifestFileFirstEffectDirectory)>
163
DirectoryPath
? currentSearchDirectory = _probeStart;
166
var
currentSearchDotConfigDirectory =
195
foreach ((FilePath possibleManifest,
DirectoryPath
_) in EnumerateDefaultAllPossibleManifests())
204
DirectoryPath
manifestInsertFolder = GetDirectoryToCreateToolManifest();
219
private
DirectoryPath
GetDirectoryToCreateToolManifest()
221
DirectoryPath
? currentSearchDirectory = _probeStart;
224
var
currentSearchGitDirectory = currentSearchDirectory.Value.WithSubDirectories(Constants.GitDirectoryName);
244
private string WriteManifestFile(
DirectoryPath
folderPath)
266
DirectoryPath
? rootPath = null;
268
DirectoryPath
correspondingDirectory)
ToolManifest\ToolManifestPackage.cs (2)
16
DirectoryPath
firstEffectDirectory,
28
public
DirectoryPath
FirstEffectDirectory { get; } = firstEffectDirectory;
ToolPackage\IToolPackage.cs (1)
22
DirectoryPath
PackageDirectory { get; }
ToolPackage\IToolPackageStore.cs (5)
13
DirectoryPath
Root { get; }
15
DirectoryPath
GetRandomStagingDirectory();
17
NuGetVersion GetStagedPackageVersion(
DirectoryPath
stagingDirectory, PackageId packageId);
19
DirectoryPath
GetRootPackageDirectory(PackageId packageId);
21
DirectoryPath
GetPackageDirectory(PackageId packageId, NuGetVersion version);
ToolPackage\IToolPackageUninstaller.cs (1)
12
void Uninstall(
DirectoryPath
packageDirectory);
ToolPackage\LocalToolsResolverCache.cs (3)
17
private readonly
DirectoryPath
_cacheVersionedDirectory;
22
DirectoryPath
? cacheDirectory = null,
26
DirectoryPath
appliedCacheDirectory =
ToolPackage\PackageLocation.cs (2)
12
DirectoryPath
? rootConfigDirectory = null,
17
public
DirectoryPath
? RootConfigDirectory { get; } = rootConfigDirectory;
ToolPackage\ToolPackageDownloader.cs (3)
120
protected override ToolConfiguration GetToolConfiguration(PackageId id,
DirectoryPath
packageDirectory,
DirectoryPath
assetsJsonParentDirectory)
128
DirectoryPath
packagesRootPath,
ToolPackage\ToolPackageDownloaderBase.cs (12)
27
protected readonly
DirectoryPath
_globalToolStageDir;
31
protected readonly
DirectoryPath
_localToolDownloadDir;
35
protected readonly
DirectoryPath
_localToolAssetDir;
83
DirectoryPath
packagesRootPath,
90
DirectoryPath
packageDirectory,
91
DirectoryPath
assetsJsonParentDirectory);
185
var
toolStoreTargetDirectory = _toolPackageStore.GetPackageDirectory(packageId, packageVersion);
222
DirectoryPath
packageRootDirectory = _toolPackageStore.GetRootPackageDirectory(packageId);
265
DirectoryPath
packageDownloadDir,
271
DirectoryPath
assetFileDirectory,
332
DirectoryPath
packageDownloadDir,
333
DirectoryPath
assetFileDirectory,
ToolPackage\ToolPackageFactory.cs (6)
14
DirectoryPath
? nonGlobalLocation = null, string runtimeJsonPathForTests = null)
23
DirectoryPath
? nonGlobalLocation = null)
37
DirectoryPath
? nonGlobalLocation = null, IEnumerable<string> additionalRestoreArguments = null, string currentWorkingDirectory = null)
49
DirectoryPath
? nonGlobalLocation = null)
54
private static
DirectoryPath
GetPackageLocation()
60
DirectoryPath
? nonGlobalLocation = null)
ToolPackage\ToolPackageInstance.cs (6)
30
public
DirectoryPath
PackageDirectory { get; private set; }
46
DirectoryPath
packageDirectory,
47
DirectoryPath
assetsJsonParentDirectory,
163
DirectoryPath
packageDirectory,
164
DirectoryPath
assetsJsonParentDirectory, IFileSystem fileSystem)
172
private static ToolConfiguration DeserializeToolConfiguration(LockFileTargetLibrary library,
DirectoryPath
packageDirectory, IFileSystem fileSystem)
ToolPackage\ToolPackageStoreAndQuery.cs (8)
11
internal class ToolPackageStoreAndQuery(
DirectoryPath
root, IFileSystem fileSystem = null) : IToolPackageStoreQuery, IToolPackageStore
15
public
DirectoryPath
Root { get; private set; } = new DirectoryPath(Path.GetFullPath(root.Value));
19
public
DirectoryPath
GetRandomStagingDirectory()
24
public NuGetVersion GetStagedPackageVersion(
DirectoryPath
stagingDirectory, PackageId packageId)
41
public
DirectoryPath
GetRootPackageDirectory(PackageId packageId)
46
public
DirectoryPath
GetPackageDirectory(PackageId packageId, NuGetVersion version)
84
var
packageRootDirectory = Root.WithSubDirectories(packageId.ToString());
106
var
directory = GetPackageDirectory(packageId, version);
ToolPackage\ToolPackageUninstaller.cs (2)
15
public void Uninstall(
DirectoryPath
packageDirectory)
17
var
rootDirectory = packageDirectory.GetParentPath();
dotnet.Tests (32)
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (1)
20
private
DirectoryPath
_nugetGlobalPackagesFolder;
CommandTests\Tool\List\ToolListGlobalOrToolPathCommandTests.cs (1)
333
private void AssertExpectedToolPath(
DirectoryPath
? toolPath, string expectedToolPath)
CommandTests\Tool\Restore\ToolRestoreCommandTests.cs (1)
47
private readonly
DirectoryPath
_nugetGlobalPackagesFolder;
CommandTests\Tool\Run\ToolRunCommandTests.cs (1)
19
private
DirectoryPath
_nugetGlobalPackagesFolder;
CommandTests\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommandTests.cs (5)
72
var
packageDirectory = new DirectoryPath(Path.GetFullPath(_toolsDirectory))
114
var
packageDirectory = new DirectoryPath(Path.GetFullPath(_toolsDirectory))
130
DirectoryPath
? directoryPath)
184
var
packageDirectory = new DirectoryPath(Path.GetFullPath(_toolsDirectory))
261
DirectoryPath
? directoryPath)
CommandTests\Workload\Install\FailingNuGetPackageInstaller.cs (2)
27
DirectoryPath
? downloadFolder = null,
35
public Task<IEnumerable<string>> ExtractPackageAsync(string packagePath,
DirectoryPath
targetFolder)
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (5)
154
mockNugetInstaller.DownloadCallParams[0].Should().BeEquivalentTo((new PackageId(packId), new NuGetVersion(packVersion), null as
DirectoryPath
?, null as PackageSourceLocation));
176
(nugetInstaller as MockNuGetPackageDownloader).DownloadCallParams[0].Should().BeEquivalentTo((new PackageId(packId), new NuGetVersion(packVersion), null as
DirectoryPath
?, null as PackageSourceLocation));
201
mockNugetInstaller.DownloadCallParams[0].Should().BeEquivalentTo((new PackageId(packId), new NuGetVersion(packVersion), null as
DirectoryPath
?, null as PackageSourceLocation));
222
mockNugetInstaller.DownloadCallParams[0].Should().BeEquivalentTo((new PackageId(packId), new NuGetVersion(packVersion), null as
DirectoryPath
?, packageSource));
335
new NuGetVersion(manifestVersion.ToString()), null as
DirectoryPath
?, null as PackageSourceLocation));
CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs (2)
681
private List<(PackageId, NuGetVersion,
DirectoryPath
?, PackageSourceLocation)> GetExpectedDownloadedPackages(string sdkFeatureBand = "6.0.100")
684
.Select(id => ((PackageId, NuGetVersion,
DirectoryPath
?, PackageSourceLocation))(new PackageId($"{id}.manifest-{sdkFeatureBand}"), null, null, null)).ToList();
CommandTests\Workload\Install\MockPackWorkloadInstaller.cs (7)
22
public IList<(ManifestVersionUpdate manifestUpdate,
DirectoryPath
? offlineCache)> InstalledManifests =
23
new List<(ManifestVersionUpdate manifestUpdate,
DirectoryPath
?)>();
83
public void InstallWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand, ITransactionContext transactionContext,
DirectoryPath
? offlineCache = null)
124
public WorkloadSet InstallWorkloadSet(ITransactionContext context, string workloadSetVersion,
DirectoryPath
? offlineCache = null)
142
public void RepairWorkloads(IEnumerable<WorkloadId> workloadIds, SdkFeatureBand sdkFeatureBand,
DirectoryPath
? offlineCache = null) => throw new NotImplementedException();
144
public void GarbageCollect(Func<string, IWorkloadResolver> getResolverForWorkloadSet,
DirectoryPath
? offlineCache = null, bool cleanAllPacks = false)
160
public void InstallWorkloadManifest(ManifestVersionUpdate manifestUpdate, ITransactionContext transactionContext,
DirectoryPath
? offlineCache = null)
CommandTests\Workload\Install\MockWorkloadManifestUpdater.cs (1)
31
public Task UpdateAdvertisingManifestsAsync(bool includePreview, bool useWorkloadSets = false,
DirectoryPath
? cachePath = null)
ToolManifestTests\ToolManifestFinderTests.cs (6)
96
var
rootDirectory = new DirectoryPath(_testDirectoryRoot);
99
rootDirectory = (
DirectoryPath
)rootDirectory.GetParentPathNullable();
134
var
rootDirectory = new DirectoryPath(_testDirectoryRoot);
137
rootDirectory = (
DirectoryPath
)rootDirectory.GetParentPathNullable();
157
var
rootDirectory = new DirectoryPath(_testDirectoryRoot);
160
rootDirectory = (
DirectoryPath
)rootDirectory.GetParentPathNullable();
Microsoft.DotNet.InternalAbstractions (4)
DirectoryPath.cs (3)
24
public
DirectoryPath
WithSubDirectories(params string[] paths)
43
public
DirectoryPath
GetParentPath()
58
public
DirectoryPath
? GetParentPathNullable()
FilePath.cs (1)
29
public
DirectoryPath
GetDirectoryPath()
Microsoft.DotNet.PackageInstall.Tests (27)
LocalToolsResolverCacheTests.cs (14)
20
(
DirectoryPath
nuGetGlobalPackagesFolder,
24
DirectoryPath
tempDirectory =
26
DirectoryPath
cacheDirectory = tempDirectory.WithSubDirectories("cacheDirectory");
27
DirectoryPath
nuGetGlobalPackagesFolder = tempDirectory.WithSubDirectories("nugetGlobalPackageLocation");
39
(
DirectoryPath
nuGetGlobalPackagesFolder, LocalToolsResolverCache localToolsResolverCache) = Setup();
79
(
DirectoryPath
nuGetGlobalPackagesFolder, LocalToolsResolverCache localToolsResolverCache) = Setup();
113
(
DirectoryPath
nuGetGlobalPackagesFolder, LocalToolsResolverCache localToolsResolverCache) = Setup();
153
(
DirectoryPath
nuGetGlobalPackagesFolder, LocalToolsResolverCache localToolsResolverCache) = Setup();
227
DirectoryPath
tempDirectory =
229
DirectoryPath
cacheDirectory = tempDirectory.WithSubDirectories("cacheDirectory");
230
DirectoryPath
nuGetGlobalPackagesFolder = tempDirectory.WithSubDirectories("nugetGlobalPackageLocation");
284
DirectoryPath
tempDirectory =
286
DirectoryPath
cacheDirectory = tempDirectory.WithSubDirectories("cacheDirectory");
287
DirectoryPath
nuGetGlobalPackagesFolder = tempDirectory.WithSubDirectories("nugetGlobalPackageLocation");
NuGetPackageInstallerTests.cs (6)
29
private readonly
DirectoryPath
_tempDirectory;
65
DirectoryPath
nonExistFeed =
112
DirectoryPath
nonExistFeed =
132
DirectoryPath
directoryBelowNugetConfig = nugetConfigPath.GetDirectoryPath().WithSubDirectories("subDir");
347
private static
DirectoryPath
GetUniqueTempProjectPathEachTest()
349
DirectoryPath
tempProjectDirectory =
ToolPackageDownloaderTests.cs (4)
141
var
subDirectory = testDir.WithSubDirectories("sub");
870
private (IToolPackageStore, IToolPackageStoreQuery, IToolPackageDownloader, IToolPackageUninstaller, BufferedReporter, IFileSystem,
DirectoryPath
testDir
877
var
root = new DirectoryPath(_testAssetsManager.CreateTestDirectory(callingMethod, identifier: useMock.ToString() + identiifer).Path);
888
var
toolsRoot = root.WithSubDirectories("tools");
ToolPackageInstallerNugetCacheTests.cs (2)
39
var
nugetCacheLocation =
122
var
root = new DirectoryPath(Path.Combine(Directory.GetCurrentDirectory(), Path.GetRandomFileName()));
ToolPackageUninstallerTests.cs (1)
75
var
root = new DirectoryPath(_testAssetsManager.CreateTestDirectory(testName, identifier).Path);
Microsoft.DotNet.Tools.Tests.ComponentMocks (32)
MockNuGetPackageDownloader.cs (4)
22
public List<(PackageId id, NuGetVersion version,
DirectoryPath
? downloadFolder, PackageSourceLocation packageSourceLocation)> DownloadCallParams = new();
26
public List<(string,
DirectoryPath
)> ExtractCallParams = new();
62
DirectoryPath
? downloadFolder = null,
89
public Task<IEnumerable<string>> ExtractPackageAsync(string packagePath,
DirectoryPath
targetFolder)
ToolPackageDownloaderMock.cs (13)
27
protected
DirectoryPath
_toolDownloadDir;
29
protected readonly
DirectoryPath
_globalToolStageDir;
30
protected readonly
DirectoryPath
_localToolDownloadDir;
31
protected readonly
DirectoryPath
_localToolAssetDir;
108
var
packageRootDirectory = _toolPackageStore.GetRootPackageDirectory(packageId);
116
var
assetFileDirectory = isGlobalTool ? _globalToolStageDir : _localToolAssetDir;
159
var
packageDirectory = _toolPackageStore.GetPackageDirectory(packageId, version);
189
var
packageRootDirectory = _toolPackageStore.GetRootPackageDirectory(packageId);
229
DirectoryPath
? rootConfigDirectory = null,
273
DirectoryPath
? rootConfigDirectory,
295
private static IEnumerable<FilePath> EnumerateDefaultAllPossibleNuGetConfig(
DirectoryPath
probStart)
297
DirectoryPath
? currentSearchDirectory = probStart;
343
public
DirectoryPath
PackageDirectory { get; set; }
ToolPackageDownloaderMock2.cs (3)
59
protected override void CreateAssetFile(PackageId packageId, NuGetVersion version,
DirectoryPath
packagesRootPath, string assetFilePath, string runtimeJsonGraph, Cli.Utils.VerbosityOptions verbosity, string? targetFramework = null)
175
protected override ToolConfiguration GetToolConfiguration(PackageId id,
DirectoryPath
packageDirectory,
DirectoryPath
assetsJsonParentDirectory)
ToolPackageMock.cs (2)
27
DirectoryPath
packageDirectory,
45
public
DirectoryPath
PackageDirectory { get; private set; }
ToolPackageStoreMock.cs (8)
20
DirectoryPath
root,
29
public
DirectoryPath
Root { get; private set; }
31
public
DirectoryPath
GetRandomStagingDirectory()
36
public NuGetVersion GetStagedPackageVersion(
DirectoryPath
stagingDirectory, PackageId packageId)
53
public
DirectoryPath
GetRootPackageDirectory(PackageId packageId)
58
public
DirectoryPath
GetPackageDirectory(PackageId packageId, NuGetVersion version)
90
var
packageRootDirectory = Root.WithSubDirectories(packageId.ToString());
112
var
directory = GetPackageDirectory(packageId, version);
ToolPackageUninstallerMock.cs (2)
27
public void Uninstall(
DirectoryPath
packageDirectory)
29
var
rootDirectory = packageDirectory.GetParentPath();