1 write to ConfigFilePath
NuGet.Configuration (1)
Settings\SettingsFile.cs (1)
108ConfigFilePath = Path.GetFullPath(Path.Combine(DirectoryPath, FileName));
39 references to ConfigFilePath
NuGet.Configuration (39)
PackageSource\PackageSourceProvider.cs (2)
123var sources = sourcesItems?.OrderBy(i => configFilePaths.IndexOf(i.Origin?.ConfigFilePath)); //lower index => higher priority => closer to user. 799string filePath = duplicatedKey.Origin?.ConfigFilePath ?? Resources.ShowError_UnknownOrigin;
Settings\Items\AddItem.cs (1)
73return Settings.ResolvePathFromOrigin(Origin.DirectoryPath, Origin.ConfigFilePath, Value);
Settings\Items\CertificateItem.cs (1)
86origin.ConfigFilePath));
Settings\Items\CredentialsItem.cs (5)
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 (2)
65Origin?.ConfigFilePath ?? "<Config file path>")); 73Origin?.ConfigFilePath ?? "<Config file path>"));
Settings\Items\OwnersItem.cs (1)
47string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.OwnersMustOnlyHaveContent, origin.ConfigFilePath));
Settings\Items\PackageSourceMappingSourceItem.cs (1)
85throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_ItemNeedsAtLeastOnePackagePatternWithPath, Key, origin.ConfigFilePath));
Settings\Items\RepositoryItem.cs (1)
76origin.ConfigFilePath));
Settings\Items\TrustedSignerItem.cs (2)
64string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TrustedSignerMustHaveCertificates, origin.ConfigFilePath)); 78string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TrustedSignerMustHaveCertificates, origin.ConfigFilePath));
Settings\NuGetConfiguration.cs (1)
68string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigRootInvalid, origin.ConfigFilePath));
Settings\SettingElement.cs (6)
65public string? ConfigPath => Origin?.ConfigFilePath; 242origin.ConfigFilePath)); 251origin.ConfigFilePath)); 265origin.ConfigFilePath)); 279origin.ConfigFilePath)); 293origin.ConfigFilePath));
Settings\SettingFactory.cs (1)
179var source = duplicatedDescendants.Select(d => d.Origin?.ConfigFilePath).First(d => d is not null);
Settings\SettingItem.cs (1)
33throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.ShowError_CannotHaveChildren, element.Name.LocalName, origin.ConfigFilePath));
Settings\Settings.cs (1)
710return Priority.Select(config => config.ConfigFilePath).ToList();
Settings\SettingsFile.cs (9)
112if (ConfigurationEventSource.Instance.IsEnabled()) ConfigurationEventSource.Instance.SettingsFile_FileReadStart(ConfigFilePath, isMachineWide ? 1 : 0, isReadOnly ? 1 : 0); 118return FileSystemUtility.GetOrCreateDocument(CreateDefaultConfig(), ConfigFilePath); 132if (ConfigurationEventSource.Instance.IsEnabled()) ConfigurationEventSource.Instance.SettingsFile_FileReadStop(ConfigFilePath, isMachineWide ? 1 : 0, isReadOnly ? 1 : 0); 178FileSystemUtility.AddFile(ConfigFilePath, _xDocument.Save); 212ConcurrencyUtilities.ExecuteWithFileLocked(filePath: ConfigFilePath, action: () => 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\SettingText.cs (1)
78throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.UserSettings_UnableToParseConfigFile, Resources.TextShouldNotBeEmpty, origin.ConfigFilePath));
Utility\SettingsUtility.cs (3)
154return Settings.ResolvePathFromOrigin(encryptedItem!.Origin!.DirectoryPath, encryptedItem.Origin.ConfigFilePath, decryptedString); 334.OrderBy(i => configFilePaths.IndexOf(i.Origin?.ConfigFilePath!)) //lower index => higher priority => closer to user. 426source = Settings.ResolvePathFromOrigin(configSetting!.Origin!.DirectoryPath, configSetting.Origin.ConfigFilePath, source!);