140 references to Resources
NuGet.Configuration (140)
ClientCertificate\ClientCertificateProvider.cs (2)
38throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(items)); 71var message = string.Format(CultureInfo.CurrentCulture, Resources.ClientCertificateDuplicateConfiguration,
PackageSource\PackageSourceCredential.cs (2)
65string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedDecryptPassword, Source), e); 169string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedEncryptPassword, source), e);
PackageSource\PackageSourceProvider.cs (8)
369throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name)); 414throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(source)); 434throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name)); 494throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name)); 539throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name)); 799string filePath = duplicatedKey.Origin?.ConfigFilePath ?? Resources.ShowError_UnknownOrigin; 800string message = string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigDuplicateDisabledSources, duplicatedKey.Key, filePath); 997throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name));
PackageSourceMapping\PackageSourceMappingProvider.cs (1)
51throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(packageSourceMappingSourceItems));
PackageSourceMapping\SearchTree.cs (3)
39throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Empty_Or_WhiteSpaceOnly, nameof(packagePattern)); 110throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Empty_Or_WhiteSpaceOnly, nameof(term)); 154throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Empty_Or_WhiteSpaceOnly, nameof(term));
Resources.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NuGet.Configuration.Resources", typeof(Resources).Assembly);
Settings\Items\AddItem.cs (1)
54throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(key));
Settings\Items\CertificateItem.cs (6)
23throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Fingerprint))); 37throw new ArgumentException(Resources.UnknownHashAlgorithmNotSupported); 66throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(fingerprint)); 71throw new ArgumentException(Resources.UnknownHashAlgorithmNotSupported); 84throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 85string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedHashAlgorithm, Attributes[ConfigurationConstants.HashAlgorithm]),
Settings\Items\ClientCertItem.cs (2)
19throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(packageSource)); 76throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(PackageSource)));
Settings\Items\CredentialsItem.cs (15)
33throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Username))); 48throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(password)); 111throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name)); 116throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(username)); 121throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(password)); 156throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.Error_MoreThanOneUsername, origin.ConfigFilePath)); 165throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.Error_MoreThanOnePassword, origin.ConfigFilePath)); 175throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.Error_MoreThanOnePassword, origin.ConfigFilePath)); 185throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.Error_MoreThanOneValidAuthenticationTypes, origin.ConfigFilePath)); 194throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.CredentialsItemMustHaveUsernamePassword, origin.ConfigFilePath));
Settings\Items\FileClientCertItem.cs (8)
36throw new ArgumentException(message: Resources.Argument_Cannot_Be_Null_Empty_Or_WhiteSpaceOnly, paramName: nameof(settingsFilePath)); 46throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(filePath)); 63Resources.UserSettings_UnableToParseConfigFile, 64Resources.FileCertItemPathFileNotSet, 71Resources.UserSettings_UnableToParseConfigFile, 72Resources.FileCertItemPasswordAndClearTextPasswordAtSameTime, 114throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.FileCertItemPasswordCannotBeDecrypted, PackageSource), e); 167Resources.FileCertItemPathFileNotExist));
Settings\Items\OwnersItem.cs (4)
30throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(owners)); 47string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.OwnersMustOnlyHaveContent, origin.ConfigFilePath)); 109throw new InvalidOperationException(Resources.OwnersItemMustHaveAtLeastOneOwner);
Settings\Items\PackagePatternItem.cs (1)
28throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(pattern));
Settings\Items\PackageSourceMappingSourceItem.cs (5)
40throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Key))); 57throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name)); 62throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePattern, name)); 85throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePatternWithPath, Key, origin.ConfigFilePath)); 153throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePattern, packageSourceMappingSourceItem.Key));
Settings\Items\RepositoryItem.cs (2)
74string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 75string.Format(CultureInfo.CurrentCulture, Resources.RepositoryMustHaveOneOwners, Name, ServiceIndex),
Settings\Items\StoreClientCertItem.cs (3)
66throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(findValue)); 102throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty); 247Resources.Error_StoreCertCertificateNotFound,
Settings\Items\TrustedSignerItem.cs (8)
24throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.PropertyCannotBeNullOrEmpty, nameof(Name))); 35throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name)); 40throw new ArgumentException(Resources.TrustedSignerMustHaveCertificates); 64string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TrustedSignerMustHaveCertificates, origin.ConfigFilePath)); 78string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TrustedSignerMustHaveCertificates, origin.ConfigFilePath)); 116throw new InvalidOperationException(Resources.TrustedSignerMustHaveCertificates);
Settings\Items\UnknownItem.cs (5)
45throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(name)); 82throw new InvalidOperationException(Resources.CannotUpdateMachineWide); 87throw new InvalidOperationException(Resources.CannotUpdateReadOnlyConfig); 129throw new InvalidOperationException(Resources.CannotUpdateMachineWide); 134throw new InvalidOperationException(Resources.CannotUpdateReadOnlyConfig);
Settings\NuGetConfiguration.cs (3)
68string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigRootInvalid, origin.ConfigFilePath)); 76throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(sectionName)); 101throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(sectionName));
Settings\NullSettings.cs (2)
19public void AddOrUpdate(string sectionName, SettingItem item) => throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.InvalidNullSettingsOperation, nameof(AddOrUpdate))); 21public void Remove(string sectionName, SettingItem item) => throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.InvalidNullSettingsOperation, nameof(Remove)));
Settings\SettingBase.cs (1)
59throw new InvalidOperationException(Resources.CannotUpdateNode);
Settings\SettingElement.cs (15)
89throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_InvalidAttribute, attribute.Key, attribute.Value)); 145throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(attributeName)); 150throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_InvalidAttribute, attributeName, newValue)); 174throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(attributeName)); 181throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_InvalidAttribute, attributeName, value)); 240throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 241string.Format(CultureInfo.CurrentCulture, Resources.NoAttributesAllowed, element.Name.LocalName, element.Attributes().Count()), 249throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 250string.Format(CultureInfo.CurrentCulture, Resources.AttributeNotAllowed, attribute.Name.LocalName, element.Name.LocalName), 263throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 264string.Format(CultureInfo.CurrentCulture, Resources.MissingRequiredAttribute, requireAttribute, element.Name.LocalName), 277throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 278string.Format(CultureInfo.CurrentCulture, Resources.AttributeValueNotAllowed, attribute.Name.LocalName, attribute.Value.Trim(), element.Name.LocalName), 291throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, 292string.Format(CultureInfo.CurrentCulture, Resources.AttributeValueNotAllowed, attribute.Name.LocalName, attribute.Value.Trim(), element.Name.LocalName),
Settings\SettingFactory.cs (1)
180throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_DuplicatePackageSource, duplicatedKey, source));
Settings\SettingItem.cs (4)
33throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.ShowError_CannotHaveChildren, element.Name.LocalName, origin.ConfigFilePath)); 51throw new InvalidOperationException(Resources.CannotUpdateMachineWide); 56throw new InvalidOperationException(Resources.CannotUpdateReadOnlyConfig); 61throw new InvalidOperationException(Resources.CannotUpdateDifferentItems);
Settings\Settings.cs (11)
62throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(sectionName)); 86throw new InvalidOperationException(Resources.NoWritteableConfig); 96throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(sectionName)); 107throw new InvalidOperationException(Resources.CannotUpdateMachineWide); 112throw new InvalidOperationException(Resources.CannotUpdateReadOnlyConfig); 147throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(sectionName)); 157throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.SectionDoesNotExist, sectionName)); 162throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.ItemDoesNotExist, sectionName)); 359throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(configFileName)); 587Resources.FileDoesNotExist, 773Resources.ShowError_ConfigHasInvalidPackageSource, NuGetLogCode.NU1006, value, ex.Message),
Settings\SettingsFile.cs (7)
93throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(directoryPath)); 98throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(fileName)); 103throw new ArgumentException(Resources.Settings_FileName_Cannot_Be_A_Path, nameof(fileName)); 221string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigInvalidOperation, ConfigFilePath, e.Message), e); 227string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigUnauthorizedAccess, ConfigFilePath, e.Message), e); 233string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigInvalidXml, ConfigFilePath, e.Message), e); 239string.Format(CultureInfo.CurrentCulture, Resources.Unknown_Config_Exception, ConfigFilePath, e.Message), e);
Settings\SettingsGroup.cs (5)
29ElementName = name ?? throw new ArgumentNullException(message: Resources.Argument_Cannot_Be_Null_Or_Empty, paramName: nameof(name)); 106throw new InvalidOperationException(Resources.CannotUpdateMachineWide); 111throw new InvalidOperationException(Resources.CannotUpdateReadOnlyConfig); 141throw new InvalidOperationException(Resources.CannotUpdateMachineWide); 146throw new InvalidOperationException(Resources.CannotUpdateReadOnlyConfig);
Settings\SettingText.cs (4)
20throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(value)); 32throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(value)); 78throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TextShouldNotBeEmpty, origin.ConfigFilePath));
Settings\VirtualSettingSection.cs (3)
33throw new ArgumentException(Resources.Error_MergeTwoDifferentSections); 100throw new InvalidOperationException(Resources.CannotUpdateMachineWide); 105throw new InvalidOperationException(Resources.CannotUpdateReadOnlyConfig);
Utility\EncryptionUtility.cs (2)
19throw new NotSupportedException(Resources.Error_EncryptionUnsupported); 32throw new NotSupportedException(Resources.Error_EncryptionUnsupported);
Utility\SettingsUtility.cs (5)
133throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(section)); 138throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(key)); 169throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(section)); 174throw new ArgumentException(Resources.Argument_Cannot_Be_Null_Or_Empty, nameof(key)); 455Resources.MustContainAbsolutePath,