133 references to GetFolderPath
aspire (20)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
502var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Certificates\CertificateGeneration\MacOSCertificateManager.cs (2)
25private static readonly string s_macOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 33private static readonly string s_macOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
Certificates\CertificateGeneration\UnixCertificateManager.cs (3)
136var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 232var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 463var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Certificates\CertificateHelpers.cs (1)
22Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
CliExecutionContext.cs (1)
26public DirectoryInfo HomeDirectory { get; } = homeDirectory ?? new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile));
DotNet\DotNetCliRunner.cs (1)
86var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
NuGet\BundleNuGetService.cs (1)
207var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Program.cs (1)
56var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Projects\DotNetBasedAppHostServerProject.cs (1)
575var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Projects\GuestAppHostProject.cs (1)
927var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Projects\ProjectUpdater.cs (2)
146return path.StartsWith(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)); 150var globalNuGetFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget");
src\Shared\UserSecrets\UserSecretsPathHelper.cs (2)
37?? Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) 38?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
Telemetry\LinuxMachineInformationProvider.cs (1)
29var rootPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Telemetry\MacOSXMachineInformationProvider.cs (1)
30var userDir = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Telemetry\TelemetryManager.cs (1)
141var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Aspire.Cli.EndToEnd.Tests (2)
KubernetesPublishTests.cs (1)
315cleanupProcess.StartInfo.FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "bin", "kind");
ProjectReferenceTests.cs (1)
76Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspire");
Aspire.Cli.Tests (2)
TestServices\TestDotNetCliRunner.cs (2)
76PlatformID.Win32NT => [Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "NuGet", "NuGet.Config")], 77_ => [Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "NuGet.Config")],
Aspire.Hosting (7)
Backchannel\AuxiliaryBackchannelService.cs (1)
194var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Dcp\DcpExecutor.cs (1)
58private static readonly string s_macOSUserDevCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspire", "dev-certs", "https");
Devcontainers\DevcontainerSettingsWriter.cs (1)
39Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
DistributedApplicationBuilder.cs (1)
907System.Environment.GetFolderPath(System.Environment.SpecialFolder.UserProfile),
Pipelines\Internal\FileDeploymentStateManager.cs (1)
70Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
src\Shared\UserSecrets\UserSecretsPathHelper.cs (2)
37?? Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) 38?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
1441Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
Aspire.Hosting.Tests (1)
Utils\UnixSocketHelper.cs (1)
10var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
aspire-managed (2)
NuGet\Commands\LayoutCommand.cs (1)
110Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
NuGet\Commands\RestoreCommand.cs (1)
148Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
dotnet (7)
CommandFactory\CommandResolution\WindowsExePreferredCommandSpecFactory.cs (1)
51var comSpec = Environment.GetEnvironmentVariable("ComSpec") ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe");
Commands\Help\HelpCommand.cs (1)
52FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe"),
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");
Telemetry\MacAddressGetter.cs (1)
92FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "getmac.exe"),
dotnet-dev-certs (5)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
25private static readonly string MacOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 33private static readonly string MacOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
136var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 232var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 463var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
dotnet-suggest (2)
FileSuggestionRegistration.cs (1)
32var userProfile = GetFolderPath(SpecialFolder.UserProfile);
Program.cs (1)
32var appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
416 Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
416 Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
Microsoft.AspNetCore.DataProtection (2)
Repositories\DefaultKeyStorageDirectories.cs (2)
37var localAppDataFromSystemPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); 39var homePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (5)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
25private static readonly string MacOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 33private static readonly string MacOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
136var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 232var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 463var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Microsoft.AspNetCore.Server.Kestrel.Core (6)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
25private static readonly string MacOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 33private static readonly string MacOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
136var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 232var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 463var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
TlsConfigurationLoader.cs (1)
191var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.Build (4)
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
104return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
ElementLocation\XmlDocumentWithLocation.cs (1)
364string windowsFolder = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
Utilities\Utilities.cs (2)
560localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); 565localAppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
Microsoft.Build.Framework (2)
Utilities\FrameworkLocationHelper.cs (2)
140internal static readonly string programFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); 936string programFilesX86 = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
Microsoft.Build.Tasks.Core (3)
BootstrapperUtil\BootstrapperBuilder.cs (1)
2205Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
ManifestUtil\SecurityUtil.cs (1)
718Environment.GetFolderPath(Environment.SpecialFolder.Windows),
ManifestUtil\Util.cs (1)
267string logPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Microsoft\VisualStudio\8.0\VSPLOG");
Microsoft.Build.Utilities.Core (2)
ToolLocationHelper.cs (2)
1626return Environment.GetFolderPath(Environment.SpecialFolder.System); 2900string userLocalAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
34var programFilesPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.CodeAnalysis.Workspaces (5)
Log\WorkspaceStructureLogger.cs (1)
222return ReplacePathComponent(s, Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "%USERPROFILE%");
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
34var programFilesPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (2)
92referenceDirectories.Add(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Reference Assemblies", "Microsoft", "Framework")); 93referenceDirectories.Add(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "dotnet", "packs"));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.DotNet.Configurer (1)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
46home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.DotNet.ProjectTools (1)
VirtualProjectBuilder.cs (1)
144: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.DotNet.TemplateLocator (1)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadInstallType.cs (1)
44return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "dotnet", "workloads", architecture, sdkFeatureBand.ToString(), "InstallState");
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 (2)
PathHelper.cs (2)
64?? Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) 65?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
Microsoft.Extensions.DependencyModel (1)
Resolution\PackageCompilationAssemblyResolver.cs (1)
59string basePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.ML.Core (1)
Utilities\ResourceManagerUtils.cs (1)
205var appDataBaseDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.ML.TestFrameworkCommon (1)
Utility\PathResolver.cs (1)
151return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "packages");
Microsoft.NET.Build.Tasks (2)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
46home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadInstallType.cs (1)
44return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "dotnet", "workloads", architecture, sdkFeatureBand.ToString(), "InstallState");
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\MSDeploy.cs (1)
274programFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (1)
82var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.NET.Sdk.WorkloadManifestReader (1)
WorkloadInstallType.cs (1)
44return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "dotnet", "workloads", architecture, sdkFeatureBand.ToString(), "InstallState");
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (1)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
46home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.VisualBasic.Core (6)
Microsoft\VisualBasic\FileIO\SpecialDirectories.vb (6)
28Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.Personal), SR.IO_SpecialDirectory_MyDocuments) 40Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.MyMusic), SR.IO_SpecialDirectory_MyMusic) 52Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.MyPictures), SR.IO_SpecialDirectory_MyPictures) 63Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.Desktop), SR.IO_SpecialDirectory_Desktop) 74Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.Programs), SR.IO_SpecialDirectory_Programs) 85Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.ProgramFiles), SR.IO_SpecialDirectory_ProgramFiles)
NuGet.Common (6)
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 (2)
92return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "NuGet", "Migrations"); 98? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share", "NuGet", "Migrations")
PathUtil\NuGetEnvironment.cs (1)
295return EnvironmentVariableReader.GetEnvironmentVariable(DotNetHome) ?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
PresentationUI (1)
MS\Internal\Documents\RightsManagementManager.cs (1)
856string systemPath = Environment.GetFolderPath(Environment.SpecialFolder.System);
RepoTasks (5)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
25private static readonly string MacOSUserKeychain = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Library/Keychains/login.keychain-db"; 33private static readonly string MacOSUserHttpsCertificateLocation = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspnet", "dev-certs", "https");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
136var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 232var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 463var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
99var parentPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
rzc (2)
ServerProtocol\ServerConnection.cs (1)
82var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
46home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
System.Configuration.ConfigurationManager (2)
System\Configuration\ClientConfigPaths.cs (2)
155string roamingFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); 162string localFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
System.Windows.Forms (5)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
17Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles),
System\Windows\Forms\Application.cs (3)
155=> GetDataPath(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)); 467=> GetDataPath(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); 666=> GetDataPath(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
612string mshtmlPath = Path.Join(Environment.GetFolderPath(Environment.SpecialFolder.System), "mshtml.dll");
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\FolderNameEditor.FolderBrowserFolder.cs (1)
12/// <see cref="Environment.GetFolderPath(Environment.SpecialFolder)"/>.