25 instantiations of SdkFeatureBand
dotnet-aot (11)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (4)
56private readonly SdkFeatureBand _sdkFeatureBand = sdkFeatureBand ?? new SdkFeatureBand(workloadResolver.GetSdkFeatureBand()); 275var fallbackFeatureBand = new SdkFeatureBand(manifest.ManifestFeatureBand); 306adManifestFeatureBand = new SdkFeatureBand(File.ReadAllText(adManifestFeatureBandPath)); 316return new(new ManifestVersion(_workloadResolver.GetManifestVersion(manifestId.ToString())), new SdkFeatureBand(_workloadResolver.GetManifestFeatureBand(manifestId.ToString())));
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (1)
22.Select(path => new SdkFeatureBand(Path.GetFileName(path)));
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
29featureBands.Add(new SdkFeatureBand(name));
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadManifestUpdater.cs (2)
37var sdkFeatureBand = new SdkFeatureBand(sdkVersion); 97SdkFeatureBand featureBand = new(Product.Version);
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInfoHelper.cs (2)
47_currentSdkFeatureBand = new SdkFeatureBand(currentSdkReleaseVersion); 225reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(Product.Version), dotnetPath).ToString(),align}"
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInstallDetector.cs (1)
37var sdkFeatureBand = new SdkFeatureBand(Product.Version);
Microsoft.NET.Sdk.WorkloadManifestReader (11)
SdkDirectoryWorkloadManifestProvider.cs (4)
88_sdkVersionBand = new SdkFeatureBand(sdkVersion); 150var workloadSets80100 = GetAvailableWorkloadSets(new SdkFeatureBand("8.0.100")); 527.Select(featureBand => new SdkFeatureBand(featureBand)) 625var featureBand = new SdkFeatureBand(featureBandDirectoryName);
SdkFeatureBand.cs (2)
50sdkFeatureBand = new SdkFeatureBand(workloadSetVersion); 57sdkFeatureBand = new SdkFeatureBand($"{major}.{minor}.{patch}");
src\sdk\src\Common\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]); 142sdkFeatureBand = new SdkFeatureBand(setVersion); 150sdkFeatureBand = new SdkFeatureBand($"{major}.{minor}.{patch}");
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (1)
22.Select(path => new SdkFeatureBand(Path.GetFileName(path)));
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
29featureBands.Add(new SdkFeatureBand(name));
src\sdk\src\Common\WorkloadFileBasedInstall.cs (1)
44return Path.Combine(dotnetDir, "metadata", "workloads", new SdkFeatureBand(sdkFeatureBand).ToString(), "userlocal");
84 references to SdkFeatureBand
dotnet-aot (40)
src\sdk\src\Cli\dotnet\Commands\Workload\FileBasedWorkloadInstallationRecordRepositoryFactory.cs (2)
26public static bool IsUserLocal(string dotnetDir, SdkFeatureBand sdkFeatureBand) 34public static FileBasedInstallationRecordRepository Create(string dotnetDir, SdkFeatureBand sdkFeatureBand, string userProfileDir)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\FileBasedManifestInstaller.cs (1)
27public PackageId GetManifestPackageId(ManifestId manifestId, SdkFeatureBand featureBand)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\IWorkloadManifestInstaller.cs (1)
11PackageId GetManifestPackageId(ManifestId manifestId, SdkFeatureBand featureBand);
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (13)
51SdkFeatureBand? sdkFeatureBand = null) 56private readonly SdkFeatureBand _sdkFeatureBand = sdkFeatureBand ?? new SdkFeatureBand(workloadResolver.GetSdkFeatureBand()); 100public static bool ShouldUseWorkloadSetMode(SdkFeatureBand sdkFeatureBand, string dotnetDir) 188SdkFeatureBand band, 275var fallbackFeatureBand = new SdkFeatureBand(manifest.ManifestFeatureBand); 277SdkFeatureBand[] bands = [_sdkFeatureBand, fallbackFeatureBand]; 278foreach (var band in bands.Distinct()) 303SdkFeatureBand adManifestFeatureBand = _sdkFeatureBand; 363private string GetAdvertisingManifestSentinelPath(SdkFeatureBand featureBand) => Path.Combine(_userProfileDir, $".workloadAdvertisingManifestSentinel{featureBand}"); 365private string GetAdvertisingWorkloadsFilePath(SdkFeatureBand featureBand) => GetAdvertisingWorkloadsFilePath(_userProfileDir, featureBand); 367internal static string GetAdvertisingWorkloadsFilePath(string userProfileDir, SdkFeatureBand featureBand) => Path.Combine(userProfileDir, $".workloadAdvertisingUpdates{featureBand}"); 369private string GetAdvertisingManifestPath(SdkFeatureBand featureBand, ManifestId manifestId) => Path.Combine(_userProfileDir, "sdk-advertising", featureBand.ToString(), manifestId.ToString()); 372internal record ManifestVersionWithBand(ManifestVersion Version, SdkFeatureBand Band);
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (4)
15public IEnumerable<SdkFeatureBand> GetFeatureBandsWithInstallationRecords() 30public IEnumerable<WorkloadId> GetInstalledWorkloads(SdkFeatureBand featureBand) 44public void WriteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand featureBand) 58public void DeleteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand featureBand)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\IWorkloadInstallationRecordRepository.cs (4)
12IEnumerable<WorkloadId> GetInstalledWorkloads(SdkFeatureBand sdkFeatureBand); 14void WriteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand sdkFeatureBand); 16void DeleteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand sdkFeatureBand); 18IEnumerable<SdkFeatureBand> GetFeatureBandsWithInstallationRecords();
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\ReadOnlyWindowsWorkloadInstallationRecordRepository.cs (4)
31public IEnumerable<SdkFeatureBand> GetFeatureBandsWithInstallationRecords() 34public IEnumerable<WorkloadId> GetInstalledWorkloads(SdkFeatureBand sdkFeatureBand) 37public void WriteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand sdkFeatureBand) 40public void DeleteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand sdkFeatureBand)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (3)
15internal static IEnumerable<SdkFeatureBand> GetFeatureBandsWithInstallationRecords(RegistryKey baseKey, string basePath) 23List<SdkFeatureBand> featureBands = []; 39SdkFeatureBand sdkFeatureBand)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadManifestUpdater.cs (3)
37var sdkFeatureBand = new SdkFeatureBand(sdkVersion); 89public static bool ShouldUseWorkloadSetMode(SdkFeatureBand sdkFeatureBand, string dotnetDir) 97SdkFeatureBand featureBand = new(Product.Version);
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInfoHelper.cs (2)
28public readonly SdkFeatureBand _currentSdkFeatureBand; 95private static IWorkloadInstallationRecordRepository CreateInstallationRecordRepository(string dotnetDir, SdkFeatureBand sdkFeatureBand, string userProfileDir)
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInstallDetector.cs (3)
37var sdkFeatureBand = new SdkFeatureBand(Product.Version); 46private static bool HasFileBasedWorkloadRecords(string? dotnetDir, SdkFeatureBand sdkFeatureBand) 62private static bool HasMsiWorkloadRecords(SdkFeatureBand sdkFeatureBand)
Microsoft.NET.Sdk.WorkloadManifestReader (29)
ManifestSpecifier.cs (1)
6public record class ManifestSpecifier(ManifestId Id, ManifestVersion Version, SdkFeatureBand FeatureBand)
SdkDirectoryWorkloadManifestProvider.cs (6)
20private readonly SdkFeatureBand _sdkVersionBand; 161var workloadSetFeatureBand = SdkFeatureBand.FromWorkloadSetVersion(workloadSetVersion); 592public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets(SdkFeatureBand workloadSetFeatureBand) 597Dictionary<string, WorkloadSet> GetAvailableWorkloadSetsInternal(SdkFeatureBand? workloadSetFeatureBand) 625var featureBand = new SdkFeatureBand(featureBandDirectoryName);
SdkFeatureBand.cs (12)
9public struct SdkFeatureBand : IEquatable<SdkFeatureBand>, IComparable<SdkFeatureBand> 33public static SdkFeatureBand FromWorkloadSetVersion(string workloadSetVersion) 36public static SdkFeatureBand FromWorkloadSetVersion(string workloadSetVersion, out string packageVersion) 44SdkFeatureBand sdkFeatureBand; 74public bool Equals(SdkFeatureBand other) 79public int CompareTo(SdkFeatureBand other) 86return obj is SdkFeatureBand featureBand && Equals(featureBand); 104public static bool operator >(SdkFeatureBand a, SdkFeatureBand b) => a.CompareTo(b) > 0; 106public static bool operator <(SdkFeatureBand a, SdkFeatureBand b) => a.CompareTo(b) < 0;
WorkloadInstallType.cs (2)
28public static InstallType GetWorkloadInstallType(SdkFeatureBand sdkFeatureBand, string? dotnetDir) => 33public static string GetInstallStateFolder(SdkFeatureBand sdkFeatureBand, string? dotnetDir)
WorkloadSet.cs (8)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new(); 29public static WorkloadSet FromDictionaryForJson(IDictionary<string, string?> dictionary, SdkFeatureBand defaultFeatureBand) 35SdkFeatureBand manifestFeatureBand; 66public static WorkloadSet FromJson(string json, SdkFeatureBand defaultFeatureBand) 71public static WorkloadSet? FromWorkloadSetFolder(string path, string workloadSetVersion, SdkFeatureBand defaultFeatureBand) 124public static string WorkloadSetVersionToWorkloadSetPackageVersion(string setVersion, out SdkFeatureBand sdkFeatureBand) 163public static SdkFeatureBand GetWorkloadSetFeatureBand(string setVersion) 165WorkloadSetVersionToWorkloadSetPackageVersion(setVersion, out SdkFeatureBand sdkFeatureBand);
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (15)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (4)
15public IEnumerable<SdkFeatureBand> GetFeatureBandsWithInstallationRecords() 30public IEnumerable<WorkloadId> GetInstalledWorkloads(SdkFeatureBand featureBand) 44public void WriteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand featureBand) 58public void DeleteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand featureBand)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\IWorkloadInstallationRecordRepository.cs (4)
12IEnumerable<WorkloadId> GetInstalledWorkloads(SdkFeatureBand sdkFeatureBand); 14void WriteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand sdkFeatureBand); 16void DeleteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand sdkFeatureBand); 18IEnumerable<SdkFeatureBand> GetFeatureBandsWithInstallationRecords();
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\ReadOnlyWindowsWorkloadInstallationRecordRepository.cs (4)
31public IEnumerable<SdkFeatureBand> GetFeatureBandsWithInstallationRecords() 34public IEnumerable<WorkloadId> GetInstalledWorkloads(SdkFeatureBand sdkFeatureBand) 37public void WriteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand sdkFeatureBand) 40public void DeleteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBand sdkFeatureBand)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (3)
15internal static IEnumerable<SdkFeatureBand> GetFeatureBandsWithInstallationRecords(RegistryKey baseKey, string basePath) 23List<SdkFeatureBand> featureBands = []; 39SdkFeatureBand sdkFeatureBand)