37 references to NuGetFolderPath
dotnet (1)
SudoEnvironmentDirectoryOverride.cs (1)
67var overriddenSettingsDir = NuGetEnvironment.GetFolderPath(NuGetFolderPath.UserSettingsDirectory);
Microsoft.Build.NuGetSdkResolver (1)
RestoreRunnerEx.cs (1)
48var projectDirectory = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), Guid.NewGuid().ToString("N", null));
Microsoft.DotNet.Configurer (1)
CliFolderPathCalculator.cs (1)
59NuGetEnvironment.GetFolderPath(NuGetFolderPath.UserSettingsDirectory);
NuGet.Commands (5)
CommandRunners\LocalsCommandRunner.cs (3)
84PrintLocalResourcePath(TempResourceName, NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), localsArgs); 94PrintLocalResourcePath(TempResourceName, NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), localsArgs); 228var tempFolderPath = NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp);
CommandRunners\PackCommandRunner.cs (2)
219NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), 245NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp),
NuGet.Common (17)
ConcurrencyUtilities.cs (1)
235_basePath = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), "lock");
Migrations\Migration1.cs (1)
64var httpCachePath = NuGetEnvironment.GetFolderPath(NuGetFolderPath.HttpCacheDirectory);
PathUtil\NuGetEnvironment.cs (13)
31private static readonly ConcurrentDictionary<NuGetFolderPath, string> Cache = new ConcurrentDictionary<NuGetFolderPath, string>(); 71public static string GetFolderPath(NuGetFolderPath folder) 77private static string CalculateFolderPath(NuGetFolderPath folder) 81case NuGetFolderPath.MachineWideSettingsBaseDirectory: 99case NuGetFolderPath.MachineWideConfigDirectory: 101GetFolderPath(NuGetFolderPath.MachineWideSettingsBaseDirectory), 104case NuGetFolderPath.UserSettingsDirectory: 109case NuGetFolderPath.NuGetHome: 114case NuGetFolderPath.HttpCacheDirectory: 130case NuGetFolderPath.NuGetPluginsCacheDirectory: 146case NuGetFolderPath.DefaultMsBuildPath: 156case NuGetFolderPath.Temp:
PathUtil\PathUtility.cs (2)
455() => NuGetEnvironment.GetFolderPath(NuGetFolderPath.NuGetHome), 456() => NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp),
NuGet.Configuration (6)
Settings\ConfigurationDefaults.cs (1)
22var machineWideSettingsDir = NuGetEnvironment.GetFolderPath(NuGetFolderPath.MachineWideSettingsBaseDirectory);
Settings\Settings.cs (1)
603: NuGetEnvironment.GetFolderPath(NuGetFolderPath.UserSettingsDirectory);
Settings\XPlatMachineWideSetting.cs (1)
18var baseDirectory = NuGetEnvironment.GetFolderPath(NuGetFolderPath.MachineWideConfigDirectory);
Utility\SettingsUtility.cs (3)
273path = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.NuGetHome), DefaultGlobalPackagesFolderPath); 363return NuGetEnvironment.GetFolderPath(NuGetFolderPath.HttpCacheDirectory); 385return NuGetEnvironment.GetFolderPath(NuGetFolderPath.NuGetPluginsCacheDirectory);
NuGet.Packaging (1)
PackageArchiveReader.cs (1)
365var dummyDestination = NuGetEnvironment.GetFolderPath(NuGetFolderPath.NuGetHome);
NuGet.ProjectModel (2)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
775var userSettingsDirectory = NuGetEnvironment.GetFolderPath(NuGetFolderPath.UserSettingsDirectory);
PackageSpecWriter.cs (1)
95var userSettingsDirectory = NuGetEnvironment.GetFolderPath(NuGetFolderPath.UserSettingsDirectory);
NuGet.Protocol (3)
Plugins\PluginDiscoveryUtility.cs (1)
68var nuGetHome = NuGetEnvironment.GetFolderPath(NuGetFolderPath.NuGetHome);
Plugins\PluginPackageReader.cs (1)
1118var tempDirectoryPath = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), Path.GetRandomFileName());
SourceCacheContext.cs (1)
103NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp),