1 write to _sdkFeatureBand
dotnet (1)
Commands\Workload\InstallingWorkloadCommand.cs (1)
128_sdkFeatureBand = new SdkFeatureBand(creationResult.SdkVersion);
37 references to _sdkFeatureBand
dotnet (37)
Commands\Workload\Install\WorkloadInstallCommand.cs (7)
62WorkloadInstallerFactory.GetWorkloadInstaller(resolvedReporter, _sdkFeatureBand, 225var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _workloadRootDir), "default.json"); 256var installedWorkloads = _workloadInstaller.GetWorkloadInstallationRecordRepository().GetInstalledWorkloads(_sdkFeatureBand); 265_workloadInstaller.InstallWorkloads(workloadIds, _sdkFeatureBand, context, offlineCache); 269var newWorkloadInstallRecords = workloadIds.Except(recordRepo.GetInstalledWorkloads(_sdkFeatureBand)); 275recordRepo.WriteWorkloadInstallationRecord(workloadId, _sdkFeatureBand); 282recordRepo.DeleteWorkloadInstallationRecord(workloadId, _sdkFeatureBand);
Commands\Workload\InstallingWorkloadCommand.cs (23)
63var workloadHistoryRecords = _workloadInstaller.GetWorkloadHistoryRecords(_sdkFeatureBand.ToString()).OrderBy(r => r.TimeStarted).ToList(); 129_workloadRootDir = WorkloadFileBasedInstall.IsUserLocal(_dotnetPath, _sdkFeatureBand.ToString()) ? _userProfileDir : _dotnetPath; 176string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _workloadRootDir), "default.json"); 187var shouldUseWorkloadSetsPerInstallState = ShouldUseWorkloadSetMode(_sdkFeatureBand, _workloadRootDir); 199_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, false); 216if (!ShouldUseWorkloadSetMode(_sdkFeatureBand, _workloadRootDir)) 218_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, true); 224_sdkFeatureBand, 226_sdkFeatureBand.IsPrerelease, 299_workloadInstaller.SaveInstallStateManifestVersions(_sdkFeatureBand, GetInstallStateContents(manifestsToUpdate)); 300_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, null); 304_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, resolvedWorkloadSetVersion); 310_workloadInstaller.RemoveManifestsFromInstallState(_sdkFeatureBand); 311_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, null); 320_workloadInstaller.RecordWorkloadSetInGlobalJson(_sdkFeatureBand, _globalJsonPath, _workloadSetVersionFromGlobalJson); 329_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, oldInstallState.UseWorkloadSets); 338_workloadInstaller.SaveInstallStateManifestVersions(_sdkFeatureBand, oldInstallState.Manifests); 343_workloadInstaller.AdjustWorkloadSetInInstallState(_sdkFeatureBand, oldInstallState.WorkloadVersion); 384var manifestDownloads = await _workloadManifestUpdater.GetManifestPackageDownloadsAsync(includePreview, new SdkFeatureBand(_targetSdkVersion), _sdkFeatureBand); 405var overlayProvider = new TempDirectoryWorkloadManifestProvider(extractedManifestsPath, _sdkFeatureBand.ToString()); 411var packDownloads = _workloadInstaller.GetDownloads(workloadIds, _sdkFeatureBand, false); 442.Where(featureBand => featureBand.CompareTo(_sdkFeatureBand) < 0); 452var workloads = _workloadInstaller.GetWorkloadInstallationRecordRepository().GetInstalledWorkloads(_sdkFeatureBand);
Commands\Workload\Update\WorkloadUpdateCommand.cs (7)
49_sdkFeatureBand, _workloadResolver, Verbosity, _userProfileDir, VerifySignatures, PackageDownloader, 57_workloadInstaller.GetWorkloadInstallationRecordRepository(), _workloadInstaller, _packageSourceLocation, sdkFeatureBand: _sdkFeatureBand); 103shouldUseWorkloadSetsPerGlobalJson ?? ShouldUseWorkloadSetMode(_sdkFeatureBand, _workloadRootDir), 167_workloadInstaller.InstallWorkloads(workloadIds, _sdkFeatureBand, context, offlineCache); 186var installedWorkloads = _workloadInstaller.GetWorkloadInstallationRecordRepository().GetInstalledWorkloads(_sdkFeatureBand); 192_workloadInstaller.InstallWorkloads(workloadsToInstall, _sdkFeatureBand, context, offlineCache); 197.DeleteWorkloadInstallationRecord(id, _sdkFeatureBand);