125 references to GetFolderPath
aspire (1)
DotNetCliRunner.cs (1)
338var homeDirectory = Environment.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)
96nugetPackageDirectory ??= 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 (6)
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
88return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
ElementLocation\XmlDocumentWithLocation.cs (1)
362string windowsFolder = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
FrameworkLocationHelper.cs (2)
137internal static readonly string programFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); 881string programFilesX86 = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
Utilities\Utilities.cs (2)
547localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); 552localAppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
1185? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "notepad.exe")
Microsoft.Build.Engine.UnitTests (4)
Evaluation\Evaluator_Tests.cs (2)
2695string expected = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); 2698expected = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
Evaluation\Expander_Tests.cs (1)
2858Assert.Equal(System.Environment.GetFolderPath(Environment.SpecialFolder.System), result);
FileUtilities_Tests.cs (1)
812string directory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "subfolder");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
DotNetSdkTests.cs (1)
31root3 ??= Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "packages");
Microsoft.Build.Tasks.Core (3)
BootstrapperUtil\BootstrapperBuilder.cs (1)
2204Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
ManifestUtil\SecurityUtil.cs (1)
723Environment.GetFolderPath(Environment.SpecialFolder.Windows),
ManifestUtil\Util.cs (1)
268string logPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Microsoft\VisualStudio\8.0\VSPLOG");
Microsoft.Build.Tasks.UnitTests (3)
Exec_Tests.cs (3)
281Environment.GetFolderPath(Environment.SpecialFolder.Windows); // not desktop etc - IT redirection messes it up 301string system = Environment.GetFolderPath(Environment.SpecialFolder.System); 313Environment.GetFolderPath(Environment.SpecialFolder.Windows) : "/usr/lib");
Microsoft.Build.Utilities.Core (4)
FrameworkLocationHelper.cs (2)
137internal static readonly string programFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); 881string programFilesX86 = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
ToolLocationHelper.cs (2)
1620return Environment.GetFolderPath(Environment.SpecialFolder.System); 2893string userLocalAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Microsoft.Build.Utilities.UnitTests (7)
ToolLocationHelper_Tests.cs (1)
1958string programFilesX86 = Environment.GetFolderPath(folder);
ToolTask_Tests.cs (6)
40NativeMethodsShared.IsUnixLike ? "/bin" : Environment.GetFolderPath(Environment.SpecialFolder.System), 165string systemPath = NativeMethodsShared.IsUnixLike ? "/bin" : Environment.GetFolderPath(Environment.SpecialFolder.System); 383string systemPath = NativeMethodsShared.IsUnixLike ? "/bin" : Environment.GetFolderPath(Environment.SpecialFolder.System); 436string systemPath = NativeMethodsShared.IsUnixLike ? "/bin" : Environment.GetFolderPath(Environment.SpecialFolder.System); 563Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), 695expectedCmdPath = new[] { Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe").ToUpperInvariant() };
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.Scripting.Desktop.UnitTests (3)
MetadataShadowCopyProviderTests.cs (3)
32FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.Windows)), 33FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)), 34FileUtilities.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)!;