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)
231NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), 257NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp),
NuGet.Common (17)
ConcurrencyUtilities.cs (1)
251_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>(); 88public static string GetFolderPath(NuGetFolderPath folder) 94private static string CalculateFolderPath(NuGetFolderPath folder) 98case NuGetFolderPath.MachineWideSettingsBaseDirectory: 116case NuGetFolderPath.MachineWideConfigDirectory: 118GetFolderPath(NuGetFolderPath.MachineWideSettingsBaseDirectory), 121case NuGetFolderPath.UserSettingsDirectory: 126case NuGetFolderPath.NuGetHome: 131case NuGetFolderPath.HttpCacheDirectory: 147case NuGetFolderPath.NuGetPluginsCacheDirectory: 163case NuGetFolderPath.DefaultMsBuildPath: 173case 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)
66var nuGetHome = NuGetEnvironment.GetFolderPath(NuGetFolderPath.NuGetHome);
Plugins\PluginPackageReader.cs (1)
1116var tempDirectoryPath = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), Path.GetRandomFileName());
SourceCacheContext.cs (1)
103NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp),