1 write to _sdkFeatureBand
dotnet (1)
Commands\Workload\InstallingWorkloadCommand.cs (1)
126_sdkFeatureBand = new SdkFeatureBand(creationResult.SdkVersion);
37 references to _sdkFeatureBand
dotnet (37)
Commands\Workload\Install\WorkloadInstallCommand.cs (7)
79WorkloadInstallerFactory.GetWorkloadInstaller(resolvedReporter, _sdkFeatureBand, 240var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _workloadRootDir), "default.json"); 271var installedWorkloads = _workloadInstaller.GetWorkloadInstallationRecordRepository().GetInstalledWorkloads(_sdkFeatureBand); 280_workloadInstaller.InstallWorkloads(workloadIds, _sdkFeatureBand, context, offlineCache); 284var newWorkloadInstallRecords = workloadIds.Except(recordRepo.GetInstalledWorkloads(_sdkFeatureBand)); 290recordRepo.WriteWorkloadInstallationRecord(workloadId, _sdkFeatureBand); 297recordRepo.DeleteWorkloadInstallationRecord(workloadId, _sdkFeatureBand);
Commands\Workload\InstallingWorkloadCommand.cs (23)
62var workloadHistoryRecords = _workloadInstaller.GetWorkloadHistoryRecords(_sdkFeatureBand.ToString()).OrderBy(r => r.TimeStarted).ToList(); 127_workloadRootDir = WorkloadFileBasedInstall.IsUserLocal(_dotnetPath, _sdkFeatureBand.ToString()) ? _userProfileDir : _dotnetPath; 189string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _workloadRootDir), "default.json"); 195var shouldUseWorkloadSetsPerInstallState = WorkloadManifestUpdater.ShouldUseWorkloadSetMode(_sdkFeatureBand, _workloadRootDir); 207_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, false); 224if (!WorkloadManifestUpdater.ShouldUseWorkloadSetMode(_sdkFeatureBand, _workloadRootDir)) 226_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, true); 232_sdkFeatureBand, 238_sdkFeatureBand.IsPrerelease, 311_workloadInstaller.SaveInstallStateManifestVersions(_sdkFeatureBand, GetInstallStateContents(manifestsToUpdate)); 312_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, null); 316_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, resolvedWorkloadSetVersion); 322_workloadInstaller.RemoveManifestsFromInstallState(_sdkFeatureBand); 323_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, null); 332_workloadInstaller.RecordWorkloadSetInGlobalJson(_sdkFeatureBand, _globalJsonPath, _workloadSetVersionFromGlobalJson); 341_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, oldInstallState.UseWorkloadSets); 350_workloadInstaller.SaveInstallStateManifestVersions(_sdkFeatureBand, oldInstallState.Manifests); 355_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, oldInstallState.WorkloadVersion); 396var manifestDownloads = await _workloadManifestUpdater.GetManifestPackageDownloadsAsync(includePreview, new SdkFeatureBand(_targetSdkVersion), _sdkFeatureBand); 417var overlayProvider = new TempDirectoryWorkloadManifestProvider(extractedManifestsPath, _sdkFeatureBand.ToString()); 423var packDownloads = _workloadInstaller.GetDownloads(workloadIds, _sdkFeatureBand, false); 454.Where(featureBand => featureBand.CompareTo(_sdkFeatureBand) < 0); 464var workloads = _workloadInstaller.GetWorkloadInstallationRecordRepository().GetInstalledWorkloads(_sdkFeatureBand);
Commands\Workload\Update\WorkloadUpdateCommand.cs (7)
58_sdkFeatureBand, _workloadResolver, Verbosity, _userProfileDir, VerifySignatures, PackageDownloader, 66_workloadInstaller.GetWorkloadInstallationRecordRepository(), _workloadInstaller, _packageSourceLocation, sdkFeatureBand: _sdkFeatureBand); 106shouldUseWorkloadSetsPerGlobalJson ?? WorkloadManifestUpdater.ShouldUseWorkloadSetMode(_sdkFeatureBand, _workloadRootDir), 170_workloadInstaller.InstallWorkloads(workloadIds, _sdkFeatureBand, context, offlineCache); 189var installedWorkloads = _workloadInstaller.GetWorkloadInstallationRecordRepository().GetInstalledWorkloads(_sdkFeatureBand); 195_workloadInstaller.InstallWorkloads(workloadsToInstall, _sdkFeatureBand, context, offlineCache); 200.DeleteWorkloadInstallationRecord(id, _sdkFeatureBand);