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