4 instantiations of SettingsLoadingContext
Microsoft.Build.NuGetSdkResolver (1)
NuGetSdkResolver.cs (1)
37private static readonly Lazy<object> SettingsLoadContext = new Lazy<object>(() => new SettingsLoadingContext());
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
64private readonly SettingsLoadingContext _settingsLoadContext = new SettingsLoadingContext();
NuGet.CommandLine.XPlat (1)
Utility\AddPackageCommandUtility.cs (1)
99using (var settingsLoadingContext = new SettingsLoadingContext())
NuGet.Commands (1)
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
93using (var settingsLoadingContext = new SettingsLoadingContext())
15 references to SettingsLoadingContext
Microsoft.Build.NuGetSdkResolver (1)
NuGetSdkResolver.cs (1)
173settings = Settings.LoadDefaultSettings(context.ProjectFilePath, configFileName: null, MachineWideSettings.Value as IMachineWideSettings, SettingsLoadContext.Value as SettingsLoadingContext);
NuGet.Build.Tasks (1)
RestoreSettingsUtils.cs (1)
26public static ISettings ReadSettings(string solutionDirectory, string restoreDirectory, string restoreConfigFile, Lazy<IMachineWideSettings> machineWideSettings, SettingsLoadingContext settingsLoadContext)
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
64private readonly SettingsLoadingContext _settingsLoadContext = new SettingsLoadingContext();
NuGet.CommandLine.XPlat (1)
Utility\AddPackageCommandUtility.cs (1)
99using (var settingsLoadingContext = new SettingsLoadingContext())
NuGet.Commands (2)
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (2)
93using (var settingsLoadingContext = new SettingsLoadingContext()) 164SettingsLoadingContext settingsLoadingContext)
NuGet.Configuration (9)
Settings\Settings.cs (8)
334/// <param name="settingsLoadingContext">A <see cref="SettingsLoadingContext" /> object to use when loading the settings.</param> 340SettingsLoadingContext? settingsLoadingContext) 370public static ISettings LoadImmutableSettingsGivenConfigPaths(IList<string>? configFilePaths, SettingsLoadingContext settingsLoadingContext) 425SettingsLoadingContext? settingsLoadingContext = null) 465SettingsLoadingContext? settingsLoadingContext = null) 496SettingsLoadingContext? settingsLoadingContext = null) 542SettingsLoadingContext? settingsLoadingContext = null) 787private static SettingsFile? ReadSettings(string settingsRoot, string settingsPath, bool isMachineWideSettings = false, bool isAdditionalUserWideConfig = false, SettingsLoadingContext? settingsLoadingContext = null)
Settings\SettingsLoadingContext.cs (1)
52throw new ObjectDisposedException(nameof(SettingsLoadingContext));