101 references to GetFolderPath
aspire (3)
Commands\RunCommand.cs (1)
324var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
DotNetCliRunner.cs (1)
381var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Program.cs (1)
42var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Aspire.Hosting (1)
Devcontainers\DevcontainerSettingsWriter.cs (1)
28Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Aspire.Hosting.Azure (2)
Provisioning\UserSecretsPathHelper.cs (2)
49?? Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) 50?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
Aspire.Hosting.Tests (1)
Utils\UnixSocketHelper.cs (1)
10var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
BuildValidator (1)
LocalReferenceResolver.cs (1)
91nugetPackageDirectory ??= Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget");
dotnet-dev-certs (5)
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\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
117var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 213var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 379var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
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.DataProtection.Tests (1)
Repositories\FileSystemXmlRepositoryTests.cs (1)
19? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "ASP.NET")
Microsoft.AspNetCore.DeveloperCertificates.XPlat (5)
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\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
117var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 213var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 379var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Microsoft.AspNetCore.Server.IntegrationTesting (1)
xunit\IISExpressAncmSchema.cs (1)
22Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles),
Microsoft.AspNetCore.Server.Kestrel.Core (6)
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\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
117var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 213var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 379var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
TlsConfigurationLoader.cs (1)
191var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
DotNetSdkTests.cs (1)
31root3 ??= Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "packages");
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
34var programFilesPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.Service.cs (3)
111FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.Windows)), 112FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)), 113FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)),
Microsoft.CodeAnalysis.LanguageServer (1)
FileBasedPrograms\VirtualProjectXmlProvider.cs (1)
135: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (3)
MetadataShadowCopyProviderTests.cs (3)
31FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.Windows)), 32FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)), 33FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)),
Microsoft.CodeAnalysis.UnitTests (2)
MetadataReferences\ModuleMetadataTests.cs (2)
121char systemDrive = Environment.GetFolderPath(Environment.SpecialFolder.Windows)[0]; 126Assert.Throws<IOException>(() => ModuleMetadata.CreateFromFile(Environment.GetFolderPath(Environment.SpecialFolder.Windows)));
Microsoft.CodeAnalysis.Workspaces (4)
src\Compilers\Core\Portable\DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
34var programFilesPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (3)
92referenceDirectories.Add(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Reference Assemblies", "Microsoft", "Framework")); 93referenceDirectories.Add(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "dotnet", "packs")); 110referenceDirectories.Add(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "packages"));
Microsoft.DotNet.ArcadeAzureIntegration (2)
AzureCliCredentialWithAzNoUpdateWrapper.cs (2)
37private static readonly string DefaultWorkingDirWindows = Environment.GetFolderPath(Environment.SpecialFolder.System); 64fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe");
Microsoft.DotNet.SignCheckTask (1)
src\SignCheck.cs (1)
21private static readonly string _appData = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SignCheck");
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.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)
Microsoft.VisualStudio.LanguageServices (5)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (5)
139yield return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), @"Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5"); 140yield return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), @"Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"); 148Environment.GetFolderPath(Environment.SpecialFolder.Windows), 149Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), 150Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86),
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Interactive\CSharpVsInteractiveWindowProvider.cs (1)
76Environment.GetFolderPath(Environment.SpecialFolder.UserProfile));
PresentationUI (1)
MS\Internal\Documents\RightsManagementManager.cs (1)
856string systemPath = Environment.GetFolderPath(Environment.SpecialFolder.System);
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
175var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
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)
158=> GetDataPath(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)); 431=> GetDataPath(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); 630=> 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)"/>.
System.Windows.Forms.Primitives.TestUtilities (1)
PlatformDetection.Windows.cs (1)
55File.Exists(Path.Join(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "System32", "httpapi.dll"));
Templates.Blazor.Tests (5)
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\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
117var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 213var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 379var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Templates.Blazor.WebAssembly.Auth.Tests (5)
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\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
117var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 213var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 379var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Templates.Blazor.WebAssembly.Tests (5)
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\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
117var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 213var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 379var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Templates.Mvc.Tests (5)
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\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
117var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 213var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 379var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;
Templates.Tests (5)
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\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
117var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 213var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 379var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)!;