114 references to UserProfile
aspire (18)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (2)
28private static readonly string s_macOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 36private static readonly string s_macOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
Certificates\CertificateGeneration\UnixCertificateManager.cs (3)
160var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 257var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 488var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Certificates\CertificateHelpers.cs (2)
33Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 39Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
CliExecutionContext.cs (1)
165public DirectoryInfo HomeDirectory { get; } = homeDirectory ?? new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile));
Projects\DotNetBasedAppHostServerProject.cs (1)
762var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Projects\ProjectUpdater.cs (1)
217var globalNuGetFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget");
Projects\TypeScriptAppHostToolchainResolver.cs (1)
509homeDirectory ??= Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
src\Shared\AspireHomeDirectory.cs (1)
23Environment.GetFolderPath(Environment.SpecialFolder.UserProfile));
src\Shared\UserSecrets\UserSecretsPathHelper.cs (1)
38?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
Telemetry\LinuxMachineInformationProvider.cs (1)
29var rootPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Telemetry\MacOSXMachineInformationProvider.cs (2)
20/// user's profile directory using <see cref="Environment.SpecialFolder.UserProfile"/>. If that is unavailable, it 30var userDir = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Telemetry\TelemetryManager.cs (1)
237var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Utils\CliPathHelper.cs (1)
347var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
aspire-managed (1)
NuGet\Commands\NuGetPackageAssetResolver.cs (1)
126Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
Aspire.Cli.EndToEnd.Tests (3)
Helpers\KubernetesDeployTestHelpers.cs (1)
469Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "bin", "kind");
KubernetesPublishTests.cs (1)
299cleanupProcess.StartInfo.FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "bin", "kind");
ProjectReferenceTests.cs (1)
73Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspire");
Aspire.Cli.Tests (3)
TestServices\TestDotNetCliRunner.cs (1)
92_ => [Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "NuGet.Config")],
Utils\CliPathHelperTests.cs (2)
32var expectedDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspire", "cli", "bch"); 50var expectedDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspire", "cli", "bch");
Aspire.Dashboard (1)
src\Shared\AspireHomeDirectory.cs (1)
23Environment.GetFolderPath(Environment.SpecialFolder.UserProfile));
Aspire.Deployment.EndToEnd.Tests (1)
Helpers\DeploymentE2ETestHelpers.cs (1)
187var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Aspire.Hosting (7)
Backchannel\AuxiliaryBackchannelService.cs (1)
47Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
Devcontainers\DevcontainerSettingsWriter.cs (1)
39Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
DeveloperCertificateService.cs (1)
149Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspire", "dev-certs", "https");
Lifecycle\TerminalHostOrphanCleanupService.cs (1)
67var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Pipelines\Internal\FileDeploymentStateManager.cs (1)
216Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
src\Shared\UserSecrets\UserSecretsPathHelper.cs (1)
38?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
TerminalResourceBuilderExtensions.cs (1)
185var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
1685Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
Aspire.Hosting.Browsers (4)
BrowserLogsArtifacts.cs (2)
123Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 133: Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share");
BrowserUserDataPathResolver.cs (2)
85Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 97: Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share");
Aspire.Hosting.Browsers.Tests (4)
src\Aspire.Hosting.Browsers\BrowserLogsArtifacts.cs (2)
123Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 133: Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share");
src\Aspire.Hosting.Browsers\BrowserUserDataPathResolver.cs (2)
85Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 97: Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share");
Aspire.Hosting.Radius (1)
Publishing\SealedSecretApplyStep.cs (1)
672var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Aspire.Hosting.Tasks (1)
ResolveAspireCliBundle.cs (1)
462? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspire")
Aspire.Hosting.Tests (8)
Backchannel\AuxiliaryBackchannelTests.cs (1)
733var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
DistributedApplicationBuilderTests.cs (6)
583Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 605Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 679Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 738Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 802Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), 863Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
Publishing\DeploymentStateManagerTests.cs (1)
458Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
Aspire.Hosting.TestUtilities (1)
Utils\UnixSocketHelper.cs (1)
12var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Aspire.Playground.Tests (1)
tests\Aspire.TestUtilities\TestcontainersPodmanConfiguration.cs (1)
74Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
Aspire.TestUtilities (1)
TestcontainersPodmanConfiguration.cs (1)
74Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
dotnet-aot (5)
parent\dotnet\Telemetry\DevDeviceIDGetter.cs (4)
60cacheFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".cache", "deviceid"); 71string cacheFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "Microsoft", "DeveloperTools", "deviceid"); 108cacheFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".cache", "deviceid"); 116string cacheFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "Microsoft", "DeveloperTools", "deviceid");
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
59home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
dotnet-dev-certs (5)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
26private static readonly string MacOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 34private static readonly string MacOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
137var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 233var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 464var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
dotnet-suggest (1)
FileSuggestionRegistration.cs (1)
32var userProfile = GetFolderPath(SpecialFolder.UserProfile);
Microsoft.AspNetCore.DataProtection (1)
Repositories\DefaultKeyStorageDirectories.cs (1)
39var homePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (5)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
26private static readonly string MacOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 34private static readonly string MacOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
137var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 233var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 464var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Microsoft.AspNetCore.Server.Kestrel.Core (6)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
26private static readonly string MacOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 34private static readonly string MacOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
137var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 233var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 464var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
TlsConfigurationLoader.cs (1)
191var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.Build (1)
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
104return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
Microsoft.Build.Tasks.Git (1)
GitDataReader\GitEnvironment.cs (1)
96homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile, Environment.SpecialFolderOption.DoNotVerify);
Microsoft.CodeAnalysis.Workspaces (1)
Log\WorkspaceStructureLogger.cs (1)
222return ReplacePathComponent(s, Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "%USERPROFILE%");
Microsoft.DotNet.Configurer (1)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
59home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.Extensions.AI.Evaluation.Console (2)
Telemetry\DeviceIdHelper.cs (2)
140string userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 158string userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.Extensions.Configuration.UserSecrets (1)
PathHelper.cs (1)
73?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
Microsoft.Extensions.DependencyModel (1)
Resolution\PackageCompilationAssemblyResolver.cs (1)
59string basePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.ML.TestFrameworkCommon (1)
Utility\PathResolver.cs (1)
151return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "packages");
Microsoft.NET.Build.Containers (2)
ContentStore.cs (2)
102string userHomeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 110string userHomeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.NET.Build.Tasks (1)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
59home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.NET.ProjectData (4)
CachePathResolver.cs (2)
1266 string userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 1305 string? userHome = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
UserFolderCachePath.cs (2)
98 string home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 112 string home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.NET.ProjectData.Tasks (4)
CachePathResolver.cs (2)
295 string userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 327 string userHome = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\UserFolderCachePath.cs (2)
98 string home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 112 string home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.NET.Sdk.Razor.Tasks (1)
parent\Tool\ServerProtocol\ServerConnection.cs (1)
82var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (1)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
59home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
NuGet.Common (5)
Migrations\Migration1.cs (3)
61var homePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 106var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 117var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Migrations\MigrationRunner.cs (1)
98? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share", "NuGet", "Migrations")
PathUtil\NuGetEnvironment.cs (1)
312return EnvironmentVariableReader.GetEnvironmentVariable(DotNetHome) ?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
RepoTasks (5)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
26private static readonly string MacOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 34private static readonly string MacOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
137var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 233var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 464var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
rzc (2)
ServerProtocol\ServerConnection.cs (1)
82var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
59home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (1)
90case SpecialFolder.UserProfile: