16 references to Dependents
dotnet (9)
Commands\Workload\Install\MsiInstallerBase.cs (2)
504
if (provider.
Dependents
.Contains(dependent) && requestType == InstallRequestType.AddDependent)
510
if (!provider.
Dependents
.Contains(dependent) && requestType == InstallRequestType.RemoveDependent)
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (7)
87
.Where(packRecord => new DependencyProvider(packRecord.ProviderKeyName).
Dependents
.Contains(dependent))
170
IEnumerable<string> remainingDependents = depProvider.
Dependents
;
219
IEnumerable<string> remainingDependents = depProvider.
Dependents
;
280
IEnumerable<string> remainingDependents = depProvider.
Dependents
;
386
IEnumerable<string> sdkDependents = depProvider.
Dependents
684
if (depProvider.
Dependents
.Any())
686
Log?.LogMessage($"Cannot remove pack, other dependents remain: {string.Join(", ", depProvider.
Dependents
)}.");
Microsoft.DotNet.Cli.Utils (2)
DependencyProvider.cs (2)
68
public bool HasVisualStudioDependency =>
Dependents
.Contains(VisualStudioDependentKeyName);
152
if ((removeProvider) && (
Dependents
.Count() == 0))
Microsoft.DotNet.Cli.Utils.Tests (5)
DependencyProviderTests.cs (5)
35
Assert.Empty(dep.
Dependents
);
39
Assert.Single(dep.
Dependents
);
40
Assert.Equal("Microsoft.NET.SDK,v6.0.100", dep.
Dependents
.First());
56
Assert.Empty(dep.
Dependents
);
80
Assert.Equal(2, dep.
Dependents
.Count());