8 references to Key
NuGet.Configuration (8)
PackageSourceMapping\PackageSourceMapping.cs (1)
78patterns.Add(packageSourceNamespaceItem.Key, new List<string>(packageSourceNamespaceItem.Patterns.Select(e => e.Pattern)));
Settings\Items\PackageSourceMappingSourceItem.cs (7)
40throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Key))); 85throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePatternWithPath, Key, origin.ConfigFilePath)); 114Key, 153throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePattern, packageSourceMappingSourceItem.Key)); 209return string.Equals(Key, item.Key, StringComparison.OrdinalIgnoreCase); 219combiner.AddStringIgnoreCase(Key);