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