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