105 references to SdkFeatureBand
dotnet (40)
Commands\Workload\Clean\WorkloadCleanCommand.cs (1)
105VisualStudioWorkloads.GetInstalledWorkloads(bandedResolver, vsWorkloads, _cleanAll ? null : new SdkFeatureBand(sdkVersion));
Commands\Workload\Install\FileBasedInstaller.cs (9)
281var newManifestPackageId = GetManifestPackageId(manifestUpdate.ManifestId, new SdkFeatureBand(manifestUpdate.NewFeatureBand)); 288WriteManifestInstallationRecord(manifestUpdate.ManifestId, manifestUpdate.NewVersion, new SdkFeatureBand(manifestUpdate.NewFeatureBand), _sdkFeatureBand); 292RemoveManifestInstallationRecord(manifestUpdate.ManifestId, manifestUpdate.NewVersion, new SdkFeatureBand(manifestUpdate.NewFeatureBand), _sdkFeatureBand); 406var installedSdkFeatureBands = NETCoreSdkResolverNativeWrapper.GetAvailableSdks(_dotnetDir).Select(sdkDir => new SdkFeatureBand(Path.GetFileName(sdkDir))).ToHashSet(); 758var workloadSetFeatureBand = new SdkFeatureBand(Path.GetFileName(workloadSetFeatureBandDir)); 761var referencingFeatureBand = new SdkFeatureBand(Path.GetFileName(featureBandInstallationRecord)); 812var manifestFeatureBand = new SdkFeatureBand(Path.GetFileName(manifestFeatureBandDir)); 815var referencingFeatureBand = new SdkFeatureBand(Path.GetFileName(featureBandInstallationRecord)); 854var referencingFeatureBand = new SdkFeatureBand(Path.GetFileName(bandRecord));
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (4)
199if (garbageCollector.ManifestsToKeep.Contains((new ManifestId(manifestRecord.ManifestId), new ManifestVersion(manifestRecord.ManifestVersion), new SdkFeatureBand(manifestRecord.ManifestFeatureBand)))) 403SdkFeatureBand dependentFeatureBand = new(dependentParts[1]); 570string msiPackageId = GetManifestPackageId(manifestUpdate.ManifestId, new SdkFeatureBand(manifestUpdate.NewFeatureBand)).ToString(); 974installedFeatureBands.Add(new SdkFeatureBand(sdkVersion));
Commands\Workload\Install\NetSdkMsiInstallerClient.InstallRecords.cs (1)
36string workloadSetVersion = WorkloadSetVersion.FromWorkloadSetPackageVersion(new SdkFeatureBand(workloadSetFeatureBand), workloadSetPackageVersion);
Commands\Workload\Install\NetSdkMsiInstallerServer.cs (8)
71RecordRepository.WriteWorkloadInstallationRecord(new WorkloadId(request.WorkloadId), new SdkFeatureBand(request.SdkFeatureBand)); 76RecordRepository.DeleteWorkloadInstallationRecord(new WorkloadId(request.WorkloadId), new SdkFeatureBand(request.SdkFeatureBand)); 99SaveInstallStateManifestVersions(new SdkFeatureBand(request.SdkFeatureBand), request.InstallStateManifestVersions); 104RemoveManifestsFromInstallState(new SdkFeatureBand(request.SdkFeatureBand)); 109UpdateInstallMode(new SdkFeatureBand(request.SdkFeatureBand), request.UseWorkloadSets); 115AdjustWorkloadSetInInstallState(new SdkFeatureBand(request.SdkFeatureBand), request.WorkloadSetVersion); 120RecordWorkloadSetInGlobalJson(new SdkFeatureBand(request.SdkFeatureBand), request.GlobalJsonPath, request.WorkloadSetVersion); 130GlobalJsonWorkloadSetVersions = GetGlobalJsonWorkloadSetVersions(new SdkFeatureBand(request.SdkFeatureBand))
Commands\Workload\Install\WorkloadGarbageCollector.cs (1)
150var manifestKey = (new ManifestId(manifest.Id), new ManifestVersion(manifest.Version), new SdkFeatureBand(manifest.ManifestFeatureBand));
Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (1)
22.Select(path => new SdkFeatureBand(Path.GetFileName(path)));
Commands\Workload\Install\WorkloadInstallRecords\RegistryWorkloadInstallationRecordRepository.cs (1)
78select new SdkFeatureBand(name))];
Commands\Workload\Install\WorkloadManifestUpdater.cs (7)
52_sdkFeatureBand = sdkFeatureBand ?? new SdkFeatureBand(_workloadResolver.GetSdkFeatureBand()); 74var installer = WorkloadInstallerFactory.GetWorkloadInstaller(reporter, new SdkFeatureBand(sdkVersion), 162SdkFeatureBand featureBand = new(Product.Version); 274var fallbackFeatureBand = new SdkFeatureBand(manifest.ManifestFeatureBand); 397var fallbackFeatureBand = new SdkFeatureBand(manifest.ManifestFeatureBand); 428adManifestFeatureBand = new SdkFeatureBand(File.ReadAllText(adManifestFeatureBandPath)); 438return new(new ManifestVersion(_workloadResolver.GetManifestVersion(manifestId.ToString())), new SdkFeatureBand(_workloadResolver.GetManifestFeatureBand(manifestId.ToString())));
Commands\Workload\WorkloadCommandParser.cs (1)
128reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(Product.Version), dotnetPath).ToString(),align}"
Commands\Workload\WorkloadHistoryRecorder.cs (1)
62.GetInstalledWorkloads(new SdkFeatureBand(_workloadResolver.GetSdkFeatureBand())).Select(id => id.ToString())],
Commands\Workload\WorkloadInfoHelper.cs (2)
94if (new SdkFeatureBand(_targetSdkVersion).CompareTo(_currentSdkFeatureBand) < 0) 97$"Version band of {_targetSdkVersion} --- {new SdkFeatureBand(_targetSdkVersion)} should not be smaller than current version band {_currentSdkFeatureBand}");
WorkloadFileBasedInstall.cs (1)
44return Path.Combine(dotnetDir, "metadata", "workloads", new SdkFeatureBand(sdkFeatureBand).ToString(), "userlocal");
WorkloadSetVersion.cs (2)
40sdkFeatureBand = new SdkFeatureBand(workloadSetVersion); 47sdkFeatureBand = new SdkFeatureBand($"{major}.{minor}.{patch}");
dotnet.Tests (46)
CommandTests\Workload\Install\GivenDotnetWorkloadInstall.cs (4)
214var featureBand = new SdkFeatureBand(sdkVersion); 229installer.InstalledManifests[0].manifestUpdate.NewFeatureBand.Should().Be(new SdkFeatureBand(sdkVersion).ToString()); 240var featureBand = new SdkFeatureBand(sdkVersion); 260installer.InstalledManifests[0].manifestUpdate.NewFeatureBand.Should().Be(new SdkFeatureBand(sdkVersion).ToString());
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (18)
36var sdkFeatureBand = new SdkFeatureBand(stringFeatureBand); 72new SdkFeatureBand("6.0.100"), 73new SdkFeatureBand("6.0.300"), 74new SdkFeatureBand("7.0.100") 125var installedWorkloads = installer.GetWorkloadInstallationRecordRepository().GetInstalledWorkloads(new SdkFeatureBand(version)); 135installer.GetWorkloadInstallationRecordRepository().WriteWorkloadInstallationRecord(workloadId, new SdkFeatureBand(version)); 150CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-sdk-workload") }, new SdkFeatureBand(version), context)); 173CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-templates-workload") }, new SdkFeatureBand(version), context)); 198CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-buildtools-workload") }, new SdkFeatureBand(version), context)); 218CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-sdk-workload") }, new SdkFeatureBand(version), context)); 236CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-sdk-workload") }, new SdkFeatureBand(version), context)); 251CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-sdk-workload") }, new SdkFeatureBand(version), context)); 324var featureBand = new SdkFeatureBand("6.0.100"); 363var downloads = installer.GetDownloads(new[] { new WorkloadId("android-sdk-workload"), new WorkloadId("android-buildtools-workload") }, new SdkFeatureBand(version), false).ToList(); 390CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-sdk-workload") }, new SdkFeatureBand(version), context, new DirectoryPath(cachePath))); 415CliTransaction.RunNew(context => installer.InstallWorkloads(new[] { new WorkloadId("android-sdk-workload") }, new SdkFeatureBand(version), context, new DirectoryPath(cachePath)))); 428var sdkFeatureBand = new SdkFeatureBand("6.0.300"); 432if (workloadSetVersion != null && !sdkFeatureBand.Equals(new SdkFeatureBand(workloadSetVersion)))
CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs (7)
197SdkFeatureBand = new SdkFeatureBand(currentFeatureBand) 237SdkFeatureBand = new SdkFeatureBand(sdkFeatureBand) 315SdkFeatureBand = new SdkFeatureBand(sdkFeatureBand) 381SdkFeatureBand = new SdkFeatureBand(sdkFeatureBand) 584var sdkFeatureBand = new SdkFeatureBand(TestContext.Current.ToolsetUnderTest.SdkVersion); 622var sdkFeatureBand = new SdkFeatureBand(TestContext.Current.ToolsetUnderTest.SdkVersion); 721SdkFeatureBand = new SdkFeatureBand(featureBand),
CommandTests\Workload\Install\MockManifestProvider.cs (2)
21SdkFeatureBand = new SdkFeatureBand("6.0.100"); 27SdkFeatureBand = new SdkFeatureBand("6.0.100");
CommandTests\Workload\Install\MockPackWorkloadInstaller.cs (2)
122public WorkloadSet GetWorkloadSetContents(string workloadSetVersion) => WorkloadSet.FromJson(workloadSetContents[workloadSetVersion], new SdkFeatureBand("6.0.100")); 127InstalledWorkloadSet = WorkloadSet.FromJson(workloadSetContents[workloadSetVersion], new SdkFeatureBand("6.0.100"));
CommandTests\Workload\Install\WorkloadGarbageCollectionTests.cs (2)
393var sdkFeatureBand = new SdkFeatureBand(sdkVersion); 404if (workloadSetVersion != null && !sdkFeatureBand.Equals(new SdkFeatureBand(workloadSetVersion)))
CommandTests\Workload\Install\WorkloadSetVersionMappingTests.cs (2)
50featureBand.Should().Be(new SdkFeatureBand(expectedFeatureBand)); 57string workloadSetVersion = WorkloadSetVersion.FromWorkloadSetPackageVersion(new SdkFeatureBand(packageFeatureBand), packageVersion);
CommandTests\Workload\List\GivenAnMsiInstallation.cs (6)
32var records = RecordManager.GetInstalledWorkloads(new SdkFeatureBand("6.0.200")); 44var records = RecordManager.GetInstalledWorkloads(new SdkFeatureBand("6.0.100")); 47RecordManager.DeleteWorkloadInstallationRecord(new WorkloadId("workload.B"), new SdkFeatureBand("6.0.100")); 49records = RecordManager.GetInstalledWorkloads(new SdkFeatureBand("6.0.100")); 64Assert.DoesNotContain(new SdkFeatureBand("6.0.300"), records); 74RecordManager.WriteWorkloadInstallationRecord(new WorkloadId(workloadId), new SdkFeatureBand(sdkFeatureBand));
CommandTests\Workload\List\GivenWorkloadInstallerAndWorkloadsInstalled.cs (1)
49var currentSdkFeatureBand = new SdkFeatureBand(CurrentSdkVersion);
CommandTests\Workload\Update\GivenDotnetWorkloadUpdate.cs (2)
247var installStatePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(new SdkFeatureBand(sdkFeatureVersion), installRoot), "default.json"); 635var copiedManifestFolder = Path.Combine(dotnetRoot, "sdk-manifests", new SdkFeatureBand(sdkVersion).ToString(), "SampleManifest");
dotnet-MsiInstallation.Tests (8)
Framework\VMTestBase.cs (1)
235return WorkloadSet.FromJson(filteredOutput, defaultFeatureBand: new SdkFeatureBand(SdkInstallerVersion));
MsiInstallerTests.cs (2)
167foreach (var kvp in originalManifests.ManifestVersions.Concat(WorkloadSet.FromJson(Rollback8_0_101, new SdkFeatureBand(SdkInstallerVersion)).ManifestVersions)) 189var featureBand = new SdkFeatureBand(SdkInstallerVersion);
WorkloadSetTests.cs (2)
340searchVersionResult.StdErr.Should().Contain($"No workload versions found for SDK feature band {new SdkFeatureBand(SdkInstallerVersion)}"); 362var searchResultWorkloadSet = WorkloadSet.FromDictionaryForJson(JsonSerializer.Deserialize<Dictionary<string, string>>(searchResultJson["manifestVersions"]), new SdkFeatureBand(SdkInstallerVersion));
WorkloadSetTestsBase.cs (1)
41var featureBand = new SdkFeatureBand(SdkInstallerVersion).ToStringWithoutPrerelease();
WorkloadSetVersion.cs (2)
40sdkFeatureBand = new SdkFeatureBand(workloadSetVersion); 47sdkFeatureBand = new SdkFeatureBand($"{major}.{minor}.{patch}");
Microsoft.DotNet.TemplateLocator (11)
SdkDirectoryWorkloadManifestProvider.cs (4)
69_sdkVersionBand = new SdkFeatureBand(sdkVersion); 131var workloadSets80100 = GetAvailableWorkloadSets(new SdkFeatureBand("8.0.100")); 473.Select(featureBand => new SdkFeatureBand(featureBand)) 554var featureBand = new SdkFeatureBand(featureBandDirectoryName);
WorkloadFileBasedInstall.cs (1)
44return Path.Combine(dotnetDir, "metadata", "workloads", new SdkFeatureBand(sdkFeatureBand).ToString(), "userlocal");
WorkloadSet.cs (4)
25ManifestVersions = manifests.ToDictionary(m => new ManifestId(m.Id), m => (new ManifestVersion(m.Version), new SdkFeatureBand(m.ManifestFeatureBand))) 55manifestFeatureBand = new SdkFeatureBand(parts?[1]); 147sdkFeatureBand = new SdkFeatureBand(setVersion); 155sdkFeatureBand = new SdkFeatureBand($"{major}.{minor}.{patch}");
WorkloadSetVersion.cs (2)
40sdkFeatureBand = new SdkFeatureBand(workloadSetVersion); 47sdkFeatureBand = new SdkFeatureBand($"{major}.{minor}.{patch}");