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; 174string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _workloadRootDir), "default.json"); 180var shouldUseWorkloadSetsPerInstallState = WorkloadManifestUpdater.ShouldUseWorkloadSetMode(_sdkFeatureBand, _workloadRootDir); 192_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, false); 209if (!WorkloadManifestUpdater.ShouldUseWorkloadSetMode(_sdkFeatureBand, _workloadRootDir)) 211_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, true); 217_sdkFeatureBand, 223_sdkFeatureBand.IsPrerelease, 296_workloadInstaller.SaveInstallStateManifestVersions(_sdkFeatureBand, GetInstallStateContents(manifestsToUpdate)); 297_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, null); 301_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, resolvedWorkloadSetVersion); 307_workloadInstaller.RemoveManifestsFromInstallState(_sdkFeatureBand); 308_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, null); 317_workloadInstaller.RecordWorkloadSetInGlobalJson(_sdkFeatureBand, _globalJsonPath, _workloadSetVersionFromGlobalJson); 326_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, oldInstallState.UseWorkloadSets); 335_workloadInstaller.SaveInstallStateManifestVersions(_sdkFeatureBand, oldInstallState.Manifests); 340_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, oldInstallState.WorkloadVersion); 381var manifestDownloads = await _workloadManifestUpdater.GetManifestPackageDownloadsAsync(includePreview, new SdkFeatureBand(_targetSdkVersion), _sdkFeatureBand); 402var overlayProvider = new TempDirectoryWorkloadManifestProvider(extractedManifestsPath, _sdkFeatureBand.ToString()); 408var packDownloads = _workloadInstaller.GetDownloads(workloadIds, _sdkFeatureBand, false); 439.Where(featureBand => featureBand.CompareTo(_sdkFeatureBand) < 0); 449var 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);