648 references to DirectoryInfo
aspire (29)
Agents\ClaudeCode\ClaudeCodeAgentEnvironmentScanner.cs (1)
144return new DirectoryInfo(claudeCodePath);
Agents\VsCode\VsCodeAgentEnvironmentScanner.cs (2)
88var targetVsCodeFolder = new DirectoryInfo(Path.Combine(context.RepositoryRoot.FullName, VsCodeFolderName)); 166return new DirectoryInfo(vsCodePath);
Caching\DiskCache.cs (1)
24_cacheDirectory = new DirectoryInfo(Path.Combine(executionContext.CacheDirectory.FullName, "nuget-search"));
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
Certificates\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
Certificates\CertificateGeneration\WindowsCertificateManager.cs (1)
135var dirInfo = new DirectoryInfo(directoryPath);
CliExecutionContext.cs (1)
26public DirectoryInfo HomeDirectory { get; } = homeDirectory ?? new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile));
Commands\AgentInitCommand.cs (1)
132return new DirectoryInfo(workspaceRootPath);
Commands\InitCommand.cs (1)
410var tempDir = new DirectoryInfo(tempProjectDir);
Commands\NewCommand.cs (1)
276var workspaceRoot = new DirectoryInfo(templateResult.OutputPath ?? ExecutionContext.WorkingDirectory.FullName);
DotNet\DotNetCliRunner.cs (1)
628workingDirectory: new DirectoryInfo(Environment.CurrentDirectory),
Git\GitRepository.cs (1)
57var directoryInfo = new DirectoryInfo(rootPath);
Mcp\Docs\DocsCache.cs (1)
29_diskCacheDirectory = new DirectoryInfo(Path.Combine(executionContext.CacheDirectory.FullName, DocsCacheSubdirectory));
Mcp\Tools\ListIntegrationsTool.cs (1)
163return new DirectoryInfo(appHostDirectory);
Program.cs (6)
269var workingDirectory = new DirectoryInfo(Environment.CurrentDirectory); 504return new DirectoryInfo(hivesDirectory); 511return new DirectoryInfo(sdksPath); 516var workingDirectory = new DirectoryInfo(Environment.CurrentDirectory); 520return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, sdksDirectory, new DirectoryInfo(logsDirectory), logFilePath, debugMode); 527return new DirectoryInfo(cacheDirectoryPath);
Projects\ProjectLocator.cs (2)
44var allCandidates = await FindAppHostProjectFilesAsync(new DirectoryInfo(searchDirectory), cancellationToken); 264var directory = new DirectoryInfo(projectFile.FullName);
Projects\ProjectUpdater.cs (1)
117var nugetConfigDirectory = new DirectoryInfo(selectedPathForNewNuGetConfigFile);
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
77var context = new ScaffoldContext(language, new DirectoryInfo(outputPath), projectName);
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
83var restoreSucceeded = await guestProject.BuildAndGenerateSdkAsync(new DirectoryInfo(outputPath), cancellationToken);
Templating\TemplateNuGetConfigService.cs (1)
39var outputDir = new DirectoryInfo(outputPath);
Utils\FileSystemHelper.cs (1)
22var sourceDirInfo = new DirectoryInfo(sourceDir);
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2ETestHelpers.cs (1)
281var dir = new DirectoryInfo(AppContext.BaseDirectory);
Aspire.Cli.Tests (337)
Agents\PlaywrightCliInstallerTests.cs (6)
23WorkingDirectory = new DirectoryInfo(tempDir), 24RepositoryRoot = new DirectoryInfo(tempDir) 88WorkingDirectory = new DirectoryInfo(Path.GetTempPath()), 89RepositoryRoot = new DirectoryInfo(tempDir) 476WorkingDirectory = new DirectoryInfo(tempDir), 477RepositoryRoot = new DirectoryInfo(tempDir)
Agents\VsCodeAgentEnvironmentScannerTests.cs (1)
395homeDirectory ??= new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
Caching\DiskCacheTests.cs (5)
20var hives = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives")); 21var cacheDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "cache")); 22var ctx = new CliExecutionContext(workspace.WorkspaceRoot, hives, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 85var files = new DirectoryInfo(diskPath).Exists ? Directory.GetFiles(diskPath, $"{hash}.*.json") : Array.Empty<string>();
Commands\AddCommandTests.cs (1)
755var hivesDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives"));
Commands\RunCommandTests.cs (14)
948workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 998workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1044workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1094workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1139workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1185workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1231workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log"
Commands\SdkDumpCommandTests.cs (1)
248var currentDirectory = new DirectoryInfo(startPath);
Configuration\ConfigurationServiceTests.cs (4)
26var logsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "logs")); 29new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives")), 30new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "cache")), 31new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")),
DotNet\DotNetCliRunnerTests.cs (3)
24var cacheDirectory = new DirectoryInfo(Path.Combine(workingDirectory.FullName, ".aspire", "cache")); 25return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Interaction\ConsoleInteractionServiceTests.cs (150)
27var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 40var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 61var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 86var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 111var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 142var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 169var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 194var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 221var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 240var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 254var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 269var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 284var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 306var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 339var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 372var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 399var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 426var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 456var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 485var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 512var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 539var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 565var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 592var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 620var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 647var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 675var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 702var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 731var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 760var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Mcp\E2E\McpDocsE2ETests.cs (1)
288var dir = new DirectoryInfo(currentDir);
Mcp\ListAppHostsToolTests.cs (4)
169var hivesDirectory = new DirectoryInfo(Path.Combine(workingDirectory.FullName, ".aspire", "hives")); 170var cacheDirectory = new DirectoryInfo(Path.Combine(workingDirectory.FullName, ".aspire", "cache")); 171return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Mcp\MockPackagingService.cs (5)
55new DirectoryInfo(Path.GetTempPath()), 56new DirectoryInfo(Path.Combine(Path.GetTempPath(), "hives")), 57new DirectoryInfo(Path.Combine(Path.GetTempPath(), "cache")), 58new DirectoryInfo(Path.Combine(Path.GetTempPath(), "sdks")), 59new DirectoryInfo(Path.Combine(Path.GetTempPath(), "logs")),
NuGet\NuGetPackagePrefetcherTests.cs (5)
15var workingDir = new DirectoryInfo(Environment.CurrentDirectory); 16var hivesDir = new DirectoryInfo(Path.Combine(Environment.CurrentDirectory, "hives")); 17var cacheDir = new DirectoryInfo(Path.Combine(workingDir.FullName, ".aspire", "cache")); 18var executionContext = new CliExecutionContext(workingDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Packaging\NuGetConfigMergerSnapshotTests.cs (15)
65var cacheDir = new DirectoryInfo(Path.Combine(root.FullName, ".aspire", "cache")); 66var executionContext = new CliExecutionContext(root, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 115var cacheDir2 = new DirectoryInfo(Path.Combine(root.FullName, ".aspire", "cache")); 116var executionContext = new CliExecutionContext(root, hivesDir, cacheDir2, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 178var cacheDir3 = new DirectoryInfo(Path.Combine(root.FullName, ".aspire", "cache")); 179var executionContext = new CliExecutionContext(root, hivesDir, cacheDir3, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 240var cacheDir4 = new DirectoryInfo(Path.Combine(root.FullName, ".aspire", "cache")); 241var executionContext = new CliExecutionContext(root, hivesDir, cacheDir4, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 300var cacheDir5 = new DirectoryInfo(Path.Combine(root.FullName, ".aspire", "cache")); 301var executionContext = new CliExecutionContext(root, hivesDir, cacheDir5, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Packaging\PackagingServiceTests.cs (84)
46var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 47var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 48var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 81var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 82var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 83var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 125var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 126var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 127var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 158var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 159var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 160var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 191var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 192var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 193var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 223var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 224var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 225var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 254var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 255var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 256var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 285var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 286var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 287var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 316var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 317var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 318var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 358new CliExecutionContext(tempDir, tempDir, tempDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"), 394var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 395var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 402var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 451var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 452var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 458var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 492var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 493var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 494var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 528var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 529var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 530var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 564var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 565var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 566var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 616new CliExecutionContext(tempDir, tempDir, tempDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"), 645var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 646var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 647var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 678var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 679var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 680var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 709var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 710var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 711var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 754var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 755var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 756var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 807var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 808var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 809var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 859var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")); 860var cacheDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "cache")); 861var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Projects\AppHostServerProjectTests.cs (1)
361var dirInfo = new DirectoryInfo(path);
Projects\ExtensionGuestLauncherTests.cs (6)
32new DirectoryInfo("/tmp"), 54await launcher.LaunchAsync("npx", ["tsx"], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), CancellationToken.None); 69await launcher.LaunchAsync("npx", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), CancellationToken.None); 90await launcher.LaunchAsync("npx", ["tsx"], new DirectoryInfo("/tmp"), envVars, CancellationToken.None); 104var (exitCode, output) = await launcher.LaunchAsync("cmd", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), CancellationToken.None); 120await launcher.LaunchAsync("python", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), CancellationToken.None);
Projects\GuestRuntimeTests.cs (14)
75var directory = new DirectoryInfo("/tmp"); 94var directory = new DirectoryInfo("/tmp"); 109var directory = new DirectoryInfo("/tmp"); 126var directory = new DirectoryInfo("/tmp"); 141var directory = new DirectoryInfo("/tmp"); 160var directory = new DirectoryInfo("/tmp"); 181var directory = new DirectoryInfo("/tmp"); 200var directory = new DirectoryInfo("/home/user/project"); 219var directory = new DirectoryInfo("/home/user/project"); 237var directory = new DirectoryInfo("/tmp"); 257var directory = new DirectoryInfo("/tmp"); 295var (exitCode, output) = await runtime.InstallDependenciesAsync(new DirectoryInfo("/tmp"), CancellationToken.None); 317var (exitCode, output) = await runtime.InstallDependenciesAsync(new DirectoryInfo(Path.GetTempPath()), CancellationToken.None); 382new DirectoryInfo(Path.GetTempPath()),
Projects\ProjectLocatorTests.cs (4)
28var cacheDirectory = new DirectoryInfo(Path.Combine(workingDirectory.FullName, ".aspire", "cache")); 29return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 338var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"));
Projects\ProjectUpdaterTests.cs (3)
895var cacheDirectory = new DirectoryInfo(Path.Combine(workingDirectory.FullName, ".aspire", "cache")); 896return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Templating\DotNetTemplateFactoryTests.cs (5)
370var workingDirectory = new DirectoryInfo("/tmp"); 371var hivesDirectory = new DirectoryInfo("/tmp/hives"); 372var cacheDirectory = new DirectoryInfo("/tmp/cache"); 373var executionContext = new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Utils\CliTestHelper.cs (5)
246var hivesDirectory = new DirectoryInfo(Path.Combine(WorkingDirectory.FullName, ".aspire", "hives")); 247var cacheDirectory = new DirectoryInfo(Path.Combine(WorkingDirectory.FullName, ".aspire", "cache")); 248var logsDirectory = new DirectoryInfo(Path.Combine(WorkingDirectory.FullName, ".aspire", "logs")); 250return new CliExecutionContext(WorkingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory, logFilePath); 506var tmpDirectory = new DirectoryInfo(Path.Combine(executionContext.WorkingDirectory.FullName, "tmp"));
Aspire.Dashboard.Tests (1)
tests\Shared\Playwright\TestUtils.cs (1)
10DirectoryInfo? repoRoot = new(AppContext.BaseDirectory);
Aspire.EndToEnd.Tests (1)
tests\Shared\Playwright\TestUtils.cs (1)
10DirectoryInfo? repoRoot = new(AppContext.BaseDirectory);
Aspire.Hosting.Azure (1)
AzurePublishingContext.cs (1)
118var outputDirectory = new DirectoryInfo(outputPath);
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
345var projectFileInfo = new DirectoryInfo(appHostPath);
Aspire.Templates.Tests (1)
tests\Shared\Playwright\TestUtils.cs (1)
10DirectoryInfo? repoRoot = new(AppContext.BaseDirectory);
BuildValidator (4)
LocalReferenceResolver.cs (3)
55directories.Add(new DirectoryInfo(path)); 61directories.Add(new DirectoryInfo(path)); 93return new DirectoryInfo(nugetPackageDirectory);
Program.cs (1)
141var artifactsDirs = options.AssembliesPaths.Select(path => new DirectoryInfo(path));
CustomEncryptorSample (1)
Program.cs (1)
18.PersistKeysToFileSystem(new DirectoryInfo(keysFolder))
dotnet-dev-certs (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (1)
167DirectoryInfo dirInfo = new DirectoryInfo(dirPath);
dotnet-svcutil-lib (19)
CommandProcessorOptions.cs (12)
171fileOptions.ResolveFullPathsFrom(new DirectoryInfo(Path.GetDirectoryName(fileUri.LocalPath))); 403new DirectoryInfo(Path.Combine(workingDirectory, this.UpdateServiceReferenceFolder)) : 404PathHelper.CreateUniqueDirectoryName(BaseServiceReferenceName, new DirectoryInfo(workingDirectory)); 416this.OutputDir = new DirectoryInfo(Path.Combine(workingDirectory, originalDirSpec)); 458!PathHelper.IsUnderDirectory(outputFile, new DirectoryInfo(this.Project.DirectoryPath), out filePath, out relPath)) 521var svcRefNames = paramsFiles.Select(pf => { PathHelper.GetRelativePath(Path.GetDirectoryName(pf), new DirectoryInfo(projectDir), out var relPath); return relPath; }) 526PathHelper.GetRelativePath(paramsFilePath, new DirectoryInfo(projectDir), out fileRelPath); 530var projectDirInfo = new DirectoryInfo(projectDir); 561updateOptions.ResolveFullPathsFrom(new DirectoryInfo(Path.GetDirectoryName(paramsFilePath))); 584this.BootstrapPath = new DirectoryInfo(Path.Combine(tempDir, baseDirName, sessionDirName)); 657if (this.Project != null && PathHelper.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.Project.DirectoryPath), out var relPath)) 854DirectoryInfo directoryInfo = new DirectoryInfo(projFolder);
Metadata\MetadataFileNameManager.cs (1)
243DirectoryInfo dirInfo = new DirectoryInfo(dirPath);
Shared\Options\OptionValueParser.cs (1)
56value = CreateValue<DirectoryInfo>(() => new DirectoryInfo(stringValue), option, stringValue);
Shared\Utilities\PathHelper.cs (4)
92return GetRelativePath(childPath, new DirectoryInfo(parentPath)); 173return CreateUniqueDirectoryName(directoryName, new DirectoryInfo(parentDirInfo)); 178var directory = new DirectoryInfo(Path.Combine(parentDirInfo.FullName, directoryName)); 198directory = new DirectoryInfo(Path.Combine(parentDirInfo.FullName, directoryName + nextIndex));
Tool.cs (1)
268PathHelper.IsUnderDirectory(options.OutputFile.FullName, new DirectoryInfo(options.Project.DirectoryPath), out var filePath, out var relPath);
dotnet-svcutil-lib.Tests (13)
E2ETests.cs (1)
252var uri = PathHelper.GetRelativePath(Path.Combine(this_TestGroupOutputDir, "TypeReuseSvc.wsdl"), new DirectoryInfo(this_TestCaseOutputDir));
FileUtil.cs (1)
14DirectoryInfo dir = new DirectoryInfo(sourceDirectory);
GlobalToolTests.cs (2)
205options.OutputDir = new DirectoryInfo(this_TestCaseOutputDir); 206options.BootstrapPath = new DirectoryInfo(this_TestCaseBootstrapDir);
TestInit.cs (8)
394var bRel = PathHelper.GetRelativePath(b, new DirectoryInfo(baselineDir)); 395var gRel = PathHelper.GetRelativePath(g, new DirectoryInfo(outputDir)); 404var bRel = PathHelper.GetRelativePath(b, new DirectoryInfo(baselineDir)); 405var gRel = PathHelper.GetRelativePath(g, new DirectoryInfo(outputDir)); 423PathHelper.GetRelativePath(generated, new DirectoryInfo(outputDir), out var relativePath); 426PathHelper.GetRelativePath(generated, new DirectoryInfo(bootstrapDir), out relativePath); 539vstestDir = new DirectoryInfo(Path.Combine(g_RepositoryRoot, "src", "dotnet-svcutil", "lib", "tests")).FullName; 561DirectoryInfo binDirectory = new DirectoryInfo(binDir);
UnitTest.cs (1)
267updateOptions.MakePathsRelativeTo(new DirectoryInfo(this_TestCaseOutputDir));
GenerateAnalyzerNuspec (1)
Program.cs (1)
243var directoryName = new DirectoryInfo(directory).Name;
IIS.FunctionalTests (8)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (4)
210var toInfo = new DirectoryInfo(to); 213foreach (var file in new DirectoryInfo(from).GetFiles()) 244var sourceDirectory = new DirectoryInfo(Path.GetDirectoryName(moduleNodes.First().Attribute("image").Value)); 245var destinationDirectory = new DirectoryInfo(Path.Combine(contentRoot, sourceDirectory.Name));
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
264var rootApplicationDirectory = new DirectoryInfo(contentRoot + "rootApp");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
38var source = new DirectoryInfo(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
123var source = new DirectoryInfo(contentRoot); 125var destination = new DirectoryInfo(contentRoot + "anotherApp");
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
264var rootApplicationDirectory = new DirectoryInfo(contentRoot + "rootApp");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
38var source = new DirectoryInfo(path);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1565var source = new DirectoryInfo(contentRoot);
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
264var rootApplicationDirectory = new DirectoryInfo(contentRoot + "rootApp");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
38var source = new DirectoryInfo(path);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1565var source = new DirectoryInfo(contentRoot);
IIS.ShadowCopy.Tests (8)
ShadowCopyTests.cs (6)
28var directoryInfo = new DirectoryInfo(deploymentResult.ContentRoot); 54var directoryInfo = new DirectoryInfo(deploymentResult.ContentRoot); 88var directoryInfo = new DirectoryInfo(deploymentResult.ContentRoot); 120var dirInfo = new DirectoryInfo(deploymentResult.ContentRoot); 154var contentRoot = new DirectoryInfo(deploymentResult.ContentRoot); 434DirectoryInfo dir = new DirectoryInfo(sourceDirName);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
264var rootApplicationDirectory = new DirectoryInfo(contentRoot + "rootApp");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
38var source = new DirectoryInfo(path);
IISExpress.FunctionalTests (9)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (4)
210var toInfo = new DirectoryInfo(to); 213foreach (var file in new DirectoryInfo(from).GetFiles()) 244var sourceDirectory = new DirectoryInfo(Path.GetDirectoryName(moduleNodes.First().Attribute("image").Value)); 245var destinationDirectory = new DirectoryInfo(Path.Combine(contentRoot, sourceDirectory.Name));
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
264var rootApplicationDirectory = new DirectoryInfo(contentRoot + "rootApp");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
38var source = new DirectoryInfo(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
123var source = new DirectoryInfo(contentRoot); 125var destination = new DirectoryInfo(contentRoot + "anotherApp");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1565var source = new DirectoryInfo(contentRoot);
illink (1)
Infrastructure.Tests (5)
ExtractTestPartitions\ExtractTestPartitionsFixture.cs (1)
68var dir = new DirectoryInfo(AppContext.BaseDirectory);
PowerShellScripts\BuildTestMatrixTests.cs (1)
593var dir = new DirectoryInfo(AppContext.BaseDirectory);
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (1)
696var dir = new DirectoryInfo(AppContext.BaseDirectory);
PowerShellScripts\SplitTestMatrixByDepsTests.cs (1)
353var dir = new DirectoryInfo(AppContext.BaseDirectory);
PowerShellScripts\SplitTestProjectsTests.cs (1)
212var dir = new DirectoryInfo(AppContext.BaseDirectory);
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
34var sharedFxDir = new DirectoryInfo(SharedFrameworkDirectory);
KeyManagementSample (1)
Program.cs (1)
20.PersistKeysToFileSystem(new DirectoryInfo(keysFolder));
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (1)
80var source = new DirectoryInfo(sandboxSource);
Microsoft.AspNetCore.App.UnitTests (1)
PackageTests.cs (1)
93var isNetFx = IsNetFx(new DirectoryInfo(tfmDir).Name);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
125var info = new DirectoryInfo(path); 132info = new DirectoryInfo(info.LinkTarget);
Microsoft.AspNetCore.DataProtection (4)
Internal\ContainerUtils.cs (1)
65var fs_file = new DirectoryInfo(fields[1].TrimEnd(Path.DirectorySeparatorChar)).FullName;
Internal\KeyManagementOptionsPostSetup.cs (1)
73var keyDirectory = new DirectoryInfo(_keyDirectoryPath);
Repositories\DefaultKeyStorageDirectories.cs (2)
60retVal = new DirectoryInfo(Path.Combine(homePath, ".aspnet", DataProtectionKeysFolderName)); 110return new DirectoryInfo(Path.Combine(basePath, "ASP.NET", DataProtectionKeysFolderName));
Microsoft.AspNetCore.DataProtection.Extensions.Tests (2)
DataProtectionProviderTests.cs (2)
52mock.Setup(m => m.GetKeyStorageDirectory()).Returns(new DirectoryInfo(keysPath)); 324var dirInfo = new DirectoryInfo(uniqueTempPath);
Microsoft.AspNetCore.DataProtection.Tests (7)
ContainerUtilsTests.cs (2)
40Assert.False(ContainerUtils.IsDirectoryMounted(new DirectoryInfo(directory), fstab)); 53Assert.True(ContainerUtils.IsDirectoryMounted(new DirectoryInfo(directory), fstab));
Internal\KeyManagementOptionsPostSetupTest.cs (2)
21private static readonly string keyDir = new DirectoryInfo("/testpath").FullName; 89var xmlDir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
Repositories\FileSystemXmlRepositoryTests.cs (2)
26var expectedDir = new DirectoryInfo(Path.Combine(baseDir, "DataProtection-Keys")).FullName; 326var dirInfo = new DirectoryInfo(uniqueTempPath);
ServiceCollectionTests.cs (1)
78var keyDir = new DirectoryInfo("/testpath").FullName;
Microsoft.AspNetCore.DeveloperCertificates.XPlat (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
Microsoft.AspNetCore.FunctionalTests (1)
WebHostFunctionalTests.cs (1)
239var directoryInfo = new DirectoryInfo(applicationBasePath);
Microsoft.AspNetCore.HttpLogging (2)
FileLoggerProcessor.cs (2)
282var files = new DirectoryInfo(_path) 307var files = new DirectoryInfo(_path)
Microsoft.AspNetCore.HttpLogging.Tests (7)
FileLoggerProcessorTests.cs (7)
185var actualFiles = new DirectoryInfo(path) 242Assert.Equal(10000, new DirectoryInfo(path) 308var actualFiles1 = new DirectoryInfo(path) 332var actualFiles2 = new DirectoryInfo(path) 392var actualFiles = new DirectoryInfo(path) 458var actualFiles = new DirectoryInfo(path) 528var actualFiles = new DirectoryInfo(path)
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
172var directoryInfo = new DirectoryInfo(applicationPath);
Microsoft.AspNetCore.InternalTesting (2)
TestPathUtilities.cs (2)
15var directoryInfo = new DirectoryInfo(applicationBasePath); 29directoryInfo = new DirectoryInfo(Path.Combine(directoryInfo.FullName, "src"));
Microsoft.AspNetCore.InternalTesting.Tests (1)
AssemblyTestLogTests.cs (1)
297var testLogFiles = new DirectoryInfo(
Microsoft.AspNetCore.Razor.Language.UnitTests (1)
Legacy\BaselineWriter.cs (1)
44return RecursiveFind(path, new DirectoryInfo(start).Parent.FullName);
Microsoft.AspNetCore.Razor.Microbenchmarks (1)
Helpers.cs (1)
20var current = new DirectoryInfo(AppContext.BaseDirectory);
Microsoft.AspNetCore.Razor.Microbenchmarks.Compiler (2)
CodeGenerationBenchmark.cs (1)
18var current = new DirectoryInfo(AppContext.BaseDirectory);
SyntaxTreeGenerationBenckmark.cs (1)
20var current = new DirectoryInfo(AppContext.BaseDirectory);
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\TestProject.cs (1)
168var directoryInfo = new DirectoryInfo(baseDirectory);
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
Workspaces\TestWorkspace.cs (1)
55var analyzerPaths = new DirectoryInfo(AppContext.BaseDirectory).GetFiles("*.dll")
Microsoft.AspNetCore.Server.IntegrationTesting (6)
ApplicationPublisher.cs (1)
123var target = new DirectoryInfo(tempPath);
CachingApplicationPublisher.cs (1)
54var source = new DirectoryInfo(application.Path);
Common\DeploymentParameters.cs (1)
63ApplicationName = new DirectoryInfo(ApplicationPath).Name;
Deployers\ApplicationDeployer.cs (1)
53DeploymentParameters.ApplicationName = new DirectoryInfo(DeploymentParameters.ApplicationPath).Name;
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (2)
200var applicationName = new DirectoryInfo(DeploymentParameters.ApplicationPath).Name; 271var dir = new DirectoryInfo(sourceDirName);
Microsoft.AspNetCore.Server.Kestrel.Core (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
Microsoft.AspNetCore.TestHost (1)
WebHostBuilderExtensions.cs (1)
191var directoryInfo = new DirectoryInfo(applicationBasePath);
Microsoft.Build (2)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (2)
142subfolders = new DirectoryInfo(rootFolder).GetDirectories(); 147var resolversDirInfo = new DirectoryInfo(additionalResolversFolder);
Microsoft.Build.Engine.OM.UnitTests (1)
TransientIO.cs (1)
25this.root = new DirectoryInfo(
Microsoft.Build.Framework (2)
FileUtilities_TempFiles.cs (1)
214DirectoryInfo sourceInfo = new DirectoryInfo(source);
Utilities\FrameworkLocationHelper.cs (1)
1071DirectoryInfo fixedPathInfo = new DirectoryInfo(path);
Microsoft.Build.Tasks.Core (3)
FileState.cs (1)
156var directoryInfo = new DirectoryInfo(_filename);
RemoveDir.cs (1)
89currentSuccess = RemoveReadOnlyAttributeRecursively(new DirectoryInfo(directoryPath));
ZipDirectory.cs (1)
67DirectoryInfo sourceDirectory = new DirectoryInfo(sourceDirectoryAbsolutePath);
Microsoft.Build.Tasks.UnitTests (1)
PortableTasks_Tests.cs (1)
54new DirectoryInfo(PortableTaskFolderPath).EnumerateDirectories().First().EnumerateDirectories().First();
Microsoft.Build.UnitTests.Shared (1)
WindowsNet35OnlyFactAttribute.cs (1)
39var binDir = new DirectoryInfo(RunnerUtilities.BootstrapMsBuildBinaryLocation);
Microsoft.Build.Utilities.Core (7)
ToolLocationHelper.cs (7)
2503DirectoryInfo rootInfo = new DirectoryInfo(diskRoot); 2583DirectoryInfo rootInfo = new DirectoryInfo(diskRoot); 2653DirectoryInfo extensionSdksDirectory = new DirectoryInfo(sdkFolderPath); 3029DirectoryInfo platformsRootInfo = new DirectoryInfo(platformsRoot); 3777DirectoryInfo di = new DirectoryInfo(frameworkReferenceRoot); 3863DirectoryInfo dirInfoFxIdentifierPath = new DirectoryInfo(frameworkIdentifierPath); 3923DirectoryInfo dirInfoFxProfilePath = new DirectoryInfo(frameworkProfilePath);
Microsoft.Build.Utilities.UnitTests (4)
ToolLocationHelper_Tests.cs (4)
230DirectoryInfo info = new DirectoryInfo(tempDirectory); 255DirectoryInfo info = new DirectoryInfo(tempDirectory); 281DirectoryInfo info = new DirectoryInfo(tempDirectory); 307DirectoryInfo info = new DirectoryInfo(tempDirectory);
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
278DirectoryInfo directory = new DirectoryInfo(directoryPath);
Microsoft.CodeAnalysis.CSharp.Features (1)
SyncedSource\FileBasedPrograms\ProjectLocator.cs (1)
24dir = new DirectoryInfo(projectDirectory);
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
50var givenFolder = new DirectoryInfo(FileName).Parent;
EditorConfigSettings\Extensions\SolutionExtensions.cs (2)
23var directoryInfoToCheck = new DirectoryInfo(directoryPathToCheck); 49var fileDirectoryInfo = new DirectoryInfo(project.FilePath);
Microsoft.CodeAnalysis.Features (3)
MetadataAsSource\MetadataAsSourceFileService.cs (2)
126foreach (var directoryInfo in new DirectoryInfo(rootDirectory).EnumerateDirectories()) 151foreach (var fileInfo in new DirectoryInfo(directoryPath).EnumerateFiles("*", SearchOption.AllDirectories))
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
101private readonly DirectoryInfo _cacheDirectoryInfo = new(Path.Combine(
Microsoft.CodeAnalysis.LanguageServer (2)
FileBasedPrograms\FileBasedProgramsEntryPointDiscovery.cs (1)
294var directoryInfo = new DirectoryInfo(directory);
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
44_solutionLevelAnalyzerPaths = new DirectoryInfo(AppContext.BaseDirectory).GetFiles("*.dll")
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
193var directoryInfo = new DirectoryInfo(directory);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
70var gacAssemblyRootDir = new DirectoryInfo(Path.Combine(gacPath, name));
Microsoft.CodeAnalysis.Test.Utilities (2)
TempFiles\TempRoot.cs (2)
22var tempDirectory = new DirectoryInfo(Path.GetTempPath()); 45tempDirectory = new DirectoryInfo(Path.GetFullPath(Path.Combine(realPath, relativePath)));
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
278DirectoryInfo directory = new DirectoryInfo(directoryPath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
MonoMSBuildDiscovery.cs (1)
142var monoMSBuildDir = new DirectoryInfo(Path.GetFullPath(monoMSBuildDirPath));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
NewlyCreatedProjectsFromDotNetNew.cs (1)
177var projectName = new DirectoryInfo(projectDirectory).Name;
Microsoft.DotNet.Helix.JobSender (3)
JobDefinition.cs (1)
88archiveEntryPrefix = new DirectoryInfo(directory).Name;
Payloads\DirectoryPayload.cs (1)
21DirectoryInfo = new DirectoryInfo(directory);
WorkItemDefinition.cs (1)
72archiveEntryPrefix = new DirectoryInfo(directory).Name;
Microsoft.DotNet.Helix.Sdk (1)
CommandPayload.cs (1)
23var dir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")));
Microsoft.DotNet.Open.Api.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
125var info = new DirectoryInfo(path); 132info = new DirectoryInfo(info.LinkTarget);
Microsoft.DotNet.SourceBuild.Tasks (2)
src\WriteBuildOutputProps.cs (2)
71Name = new DirectoryInfo(dir).Name + "Version", 72Version = new DirectoryInfo(Directory.EnumerateDirectories(dir).OrderBy(s => s).Last()).Name
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Program.cs (1)
102var outputDirectory = new DirectoryInfo(output);
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
GenerateSwaggerCode.cs (1)
79var outputDirectory = new DirectoryInfo(OutputDirectory);
Microsoft.Extensions.AI.Evaluation.Reporting (6)
Storage\DiskBasedResultStore.cs (6)
93new DirectoryInfo(Path.Combine(_resultsRootPath, result.ExecutionName, result.ScenarioName)); 123var executionDir = new DirectoryInfo(Path.Combine(_resultsRootPath, executionName)); 133new DirectoryInfo(Path.Combine(_resultsRootPath, executionName, scenarioName)); 243var resultsDir = new DirectoryInfo(_resultsRootPath); 263var executionDir = new DirectoryInfo(Path.Combine(_resultsRootPath, executionName)); 296var scenarioDir = new DirectoryInfo(Path.Combine(executionDir.FullName, scenarioName));
Microsoft.Extensions.AI.Templates.Tests (1)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (1)
80var source = new DirectoryInfo(sandboxSource);
Microsoft.Extensions.ApiDescription.Client.Tests (6)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
125var info = new DirectoryInfo(path); 132info = new DirectoryInfo(info.LinkTarget);
TargetTest.cs (4)
37var directory = new DirectoryInfo(Path.Combine(_assemblyLocation, "build")); 42directory = new DirectoryInfo(Path.Combine(_assemblyLocation, "TestProjects", "build")); 49directory = new DirectoryInfo(Path.Combine(_assemblyLocation, "TestProjects", "files")); 56directory = new DirectoryInfo(_assemblyLocation);
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
125var info = new DirectoryInfo(path); 132info = new DirectoryInfo(info.LinkTarget);
Microsoft.Extensions.DataIngestion.Tests (1)
IngestionPipelineTests.cs (1)
124DirectoryInfo directory = new("TestFiles");
Microsoft.Extensions.FileProviders.Physical (4)
Internal\PhysicalDirectoryContents.cs (1)
36_info = new PhysicalDirectoryInfo(new DirectoryInfo(directory), filters);
PhysicalFilesWatcher.cs (1)
385: new DirectoryInfo(fullPath);
PollingFileChangeToken.cs (1)
57_directoryInfo ??= new DirectoryInfo(_fileInfo.FullName);
PollingWildCardChangeToken.cs (1)
45new DirectoryInfoWrapper(new DirectoryInfo(root)),
Microsoft.Extensions.FileSystemGlobbing (2)
Abstractions\DirectoryInfoWrapper.cs (1)
79new DirectoryInfo(Path.Combine(_directoryInfo.FullName, name)),
MatcherExtensions.cs (1)
57PatternMatchingResult patternMatchingResult = matcher.Execute(new DirectoryInfoWrapper(new DirectoryInfo(directoryPath)));
Microsoft.Extensions.Logging.AzureAppServices (1)
FileLoggerProvider.cs (1)
78var files = new DirectoryInfo(_path)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
125var info = new DirectoryInfo(path); 132info = new DirectoryInfo(info.LinkTarget);
Microsoft.Maui.Resizetizer (3)
AndroidAdaptiveIconGenerator.cs (1)
41 var fullIntermediateOutputPath = new DirectoryInfo(IntermediateOutputPath);
Resizer.cs (1)
52 var fullIntermediateOutputPath = new DirectoryInfo(intermediateOutputPath);
TizenResourceXmlGenerator.cs (1)
60 var contentsDirInfo = new DirectoryInfo(outputContentsDir);
Microsoft.McpServer.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (1)
80var source = new DirectoryInfo(sandboxSource);
Microsoft.ML.AutoML (1)
Experiment\Experiment.cs (1)
231var experimentDirInfo = new DirectoryInfo(experimentDirFullPath);
Microsoft.ML.SearchSpace.Tests (2)
TestBase.cs (2)
40var testDataDir = new DirectoryInfo("TestData"); 52var testDataDir = new DirectoryInfo("TestData");
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
373DirectoryInfo dirInfo = new DirectoryInfo(folder);
Microsoft.ML.TensorFlow.Tests (2)
TensorflowTests.cs (2)
1558var dir = new DirectoryInfo(directories[j]); 1717var dir = new DirectoryInfo(directories[j]);
Microsoft.ML.TestFramework (1)
CopyAction.cs (1)
52var dir = new DirectoryInfo(Path.Combine(deploymentDirectory, copyfolder));
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
1494Dim DInfo As New IO.DirectoryInfo(GetParentPath(FullPath))
Microsoft\VisualBasic\FileSystem.vb (2)
359Dim d As New DirectoryInfo(PathName) 395dir = New DirectoryInfo(DirName)
Microsoft.VisualBasic.Forms.Tests (1)
System\Windows\TestUtilities\VbFileCleanupTestBase.vb (1)
67Dim info As New DirectoryInfo(directoryPath)
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (2)
38var TestDirInfo = new DirectoryInfo(TestDirectory); 347var infoFromIO = new DirectoryInfo(TestDirectory);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
Cohost\CohostInlineCompletionEndpointTest.cs (1)
188for (var current = new DirectoryInfo(baseDirectory); current is not null; current = current.Parent)
LanguageConfigurationTest.cs (1)
186for (var current = new DirectoryInfo(baseDirectory); current is not null; current = current.Parent)
Microsoft.VisualStudioCode.Razor.IntegrationTests (1)
Services\TestSettings.cs (1)
105var dir = new DirectoryInfo(startPath);
NonDISample (1)
Program.cs (1)
17new DirectoryInfo(keysFolder),
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
197DirectoryInfo intermediateOutputPath = new DirectoryInfo(IntermediateOutputPath); 312DirectoryInfo intermediateOutputPath = new DirectoryInfo(IntermediateOutputPath);
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
382DirectoryInfo dir = new DirectoryInfo(templateLocalPath);
RepoTasks (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
Roslyn.Compilers.Extension (2)
CompilerPackage.cs (2)
102var msbuildDirectory = new DirectoryInfo(await GetMSBuildPathAsync(cancellationToken).ConfigureAwait(true)); 118var parentDirectory = new DirectoryInfo(Path.GetDirectoryName(fileAndContents.Key));
ServerComparison.FunctionalTests (1)
Helpers.cs (1)
16var directoryInfo = new DirectoryInfo(applicationBasePath);
StaticFilesAuth (1)
Startup.cs (1)
128new DirectoryInfo(Path.GetDirectoryName(fileSystemPath)),
System.Formats.Tar (3)
System\Formats\Tar\TarFile.cs (2)
526DirectoryInfo di = new(sourceDirectoryName); 581DirectoryInfo di = new(sourceDirectoryName);
System\Formats\Tar\TarWriter.Unix.cs (1)
63FileSystemInfo info = entryType is TarEntryType.Directory ? new DirectoryInfo(fullPath) : new FileInfo(fullPath);
System.IO.Compression.ZipFile (1)
System\IO\Compression\ZipFile.Create.cs (1)
517DirectoryInfo di = new DirectoryInfo(sourceDirectoryName);
System.IO.FileSystem.DriveInfo (1)
System\IO\DriveInfo.cs (1)
28public DirectoryInfo RootDirectory => new DirectoryInfo(Name);
System.IO.Ports (1)
System\IO\Ports\SerialPort.Unix.cs (1)
42DirectoryInfo di = new DirectoryInfo(sysTtyDir);
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\StringParsingHelpers.Misc.cs (1)
74var files = new DirectoryInfo(folderPath).GetFiles();
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
25return new DirectoryInfo(s);
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (2)
97return new DirectoryInfo(newPath); 207public DirectoryInfo Root => new DirectoryInfo(Path.GetPathRoot(FullPath)!);
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
55return new DirectoryInfo(dirName);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
722new DirectoryInfo(linkTarget) :
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslCachedDirectoryStoreProvider.cs (1)
29_storeDirectoryInfo = new DirectoryInfo(storePath);
Templates.Blazor.Tests (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
Templates.Blazor.WebAssembly.Auth.Tests (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
Templates.Blazor.WebAssembly.Tests (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
Templates.Mvc.Tests (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);
Templates.Tests (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
483var dirInfo = new DirectoryInfo(directoryPath);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
543var dirInfo = new DirectoryInfo(directoryPath); 1027var dirInfo = new DirectoryInfo(certificateDirectory);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
134var dirInfo = new DirectoryInfo(directoryPath);