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