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