640 references to DirectoryInfo
aspire (92)
Projects\AppHostCandidateFinder.cs (1)
569return new MatcherDirectoryInfo(new DirectoryInfo(Path.Combine(_directory.FullName, path)), _options, _excludePath, _applyDirectoryExclusions, _pathComparison, _counters, _onDirectoryEnumerated, _depth + 1, _maxDepth, _cancellationToken);
aspire-tray (3)
Aspire.Acquisition.Tests (1)
Aspire.Cli.EndToEnd.Tests (8)
Aspire.Cli.Tests (287)
Commands\AddCommandTests.cs (10)
2662var hivesDirectory = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives"));
2872var hivesDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives"));
3045var localPackagesDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives", PackageChannelNames.Local, "packages"));
3080var hivesRoot = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives"));
3081var localPackagesDir = new DirectoryInfo(Path.Combine(hivesRoot.FullName, PackageChannelNames.Local, "packages"));
3082var prPackagesDir = new DirectoryInfo(Path.Combine(hivesRoot.FullName, "pr-12345", "packages"));
3910var hivesDirectory = new DirectoryInfo(Path.Combine(aspireDirectory.FullName, "hives"));
3911var cacheDirectory = new DirectoryInfo(Path.Combine(aspireDirectory.FullName, "cache"));
3912var sdksDirectory = new DirectoryInfo(Path.Combine(aspireDirectory.FullName, "sdks"));
3913var logsDirectory = new DirectoryInfo(Path.Combine(aspireDirectory.FullName, "logs"));
Commands\CacheCommandTests.cs (8)
47var packagesDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "packages"));
70var appHostInfoCacheDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "cache", "apphost-info"));
101var stagingCacheRoot = new DirectoryInfo(
131var stagingCacheRoot = new DirectoryInfo(
147var packagesDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "packages-nonexistent"));
166var tempDir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}"));
192var tempDir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}"));
221var nonExistent = new DirectoryInfo(Path.Combine(Path.GetTempPath(), $"aspire-test-nonexistent-{Guid.NewGuid():N}"));
Mcp\ApiDocs\ApiDocsCacheTests.cs (4)
112new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives")),
113new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "cache")),
114new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")),
115new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")),
Mcp\Docs\DocsCacheTests.cs (4)
125new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "hives")),
126new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "cache")),
127new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")),
128new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")),
Packaging\PackagingServiceTests.cs (68)
27var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
60var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
96var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
200var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
237var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
270var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
304var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
360var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
425var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
457var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
487var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
512var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
540var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
567var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
593var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
613var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
634var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
664var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
696var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
718var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
746var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
771var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
815var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
839var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
882var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
914var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
946var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
977var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1007var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1037var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1067var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1146var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1202var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1242var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1277var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1312var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1393var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1425var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1455var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1486var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1488var localPackagesDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, "local", "packages"));
1524var defaultHivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1556var defaultHivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1606hivesDirectory: new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")),
1639hivesDirectory: new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")),
1670hivesDirectory: new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")),
1694hivesDirectory: new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")),
1726hivesDirectory: new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives")),
1774var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1776var localPackagesDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, "local", "packages"));
1815var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1867var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1918var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1964var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
1968var localPackagesDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, localHiveName, "packages"));
1998var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
2001var runPackagesDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, runHiveName, "packages"));
2032var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
2035var localPackagesDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, "local", "packages"));
2072var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
2075var localPackagesDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, PackageChannelNames.Local, "packages"));
2112var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
2116var localHiveDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, PackageChannelNames.Local));
2142var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
2145var localPackagesDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, PackageChannelNames.Local, "packages"));
2165var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
2194var hivesDir = new DirectoryInfo(Path.Combine(tempDir.FullName, ".aspire", "hives"));
2281var missingDir = new DirectoryInfo(Path.Combine(tempDir.FullName, "does-not-exist"));
Projects\ExtensionGuestLauncherTests.cs (6)
37new DirectoryInfo("/tmp"),
100await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "npx"), ["tsx"], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
115await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "npx"), [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
136await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "npx"), ["tsx"], new DirectoryInfo("/tmp"), envVars, afterLaunchAsync: null, options: null, CancellationToken.None);
150var (exitCode, output) = await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "cmd"), [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
167await launcher.LaunchAsync(command, [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
Telemetry\ProfilingTelemetryTests.cs (4)
67using (var dotnetActivity = profilingTelemetry.StartDotNetProcess("run", null, new DirectoryInfo(workingDirectory), new ProcessInvocationOptions()))
72using (profilingTelemetry.StartGitCommand("ls-files", "git", ["ls-files", "--cached"], new DirectoryInfo(workingDirectory)))
132using (var dotnetActivity = profilingTelemetry.StartDotNetProcess("run", null, new DirectoryInfo(workingDirectory), new ProcessInvocationOptions()))
138using (var directActivity = profilingTelemetry.StartDotNetProcess("run", null, new DirectoryInfo(workingDirectory), new ProcessInvocationOptions()))
Aspire.Dashboard (3)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Playwright.Tests (2)
Aspire.Dashboard.Tests (2)
Aspire.Deployment.EndToEnd.Tests (1)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (4)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Blazor (1)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.Dotnet (2)
Aspire.Hosting.Java (3)
Aspire.Hosting.JavaScript (1)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Native.Core.Tests (4)
Aspire.Hosting.Native.Server (2)
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.RemoteHost.Tests (3)
Aspire.Hosting.Rust (1)
Aspire.Hosting.Sdk.Tests (1)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (11)
Aspire.Hosting.TestUtilities (1)
Aspire.Managed.Tests (3)
Aspire.Playground.Tests (1)
Aspire.Templates.Tests (1)
Aspire.TerminalHost (1)
Aspire.TerminalHost.Tests (5)
Aspire.Tray.Tests (4)
dotnet-aot (2)
dotnet-dev-certs (4)
dotnet-format (1)
dotnet-suggest (1)
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);
dotnet-svcutil-lib.Tests (13)
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);
dotnet-svcutil.xmlserializer (1)
GenerateAnalyzerNuspec (1)
illink (1)
Infrastructure.Tests (2)
installer.tasks (1)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (4)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Server.IntegrationTesting (6)
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Microsoft.AspNetCore.TestHost (1)
Microsoft.Build (3)
Microsoft.Build.Framework (10)
Microsoft.Build.Tasks.Core (4)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
Microsoft.DotNet.Cli.Utils (1)
Microsoft.DotNet.Configurer (1)
Microsoft.DotNet.HotReload.Watch (1)
Microsoft.DotNet.InternalAbstractions (2)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.ProjectTools (1)
Microsoft.DotNet.SdkResolver (1)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.TemplateLocator (1)
Microsoft.Extensions.AI.Evaluation.Reporting (6)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.Extensions.FileProviders.Physical (4)
Microsoft.Extensions.FileSystemGlobbing (2)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Maui.Resizetizer (3)
Microsoft.ML.AutoML (1)
Microsoft.ML.SearchSpace.Tests (2)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TensorFlow.Tests (2)
Microsoft.ML.TestFramework (1)
Microsoft.NET.Build.Containers (2)
Microsoft.NET.ProjectData.Tasks (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.TemplateEngine.Cli (1)
Microsoft.TemplateEngine.Edge (1)
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Microsoft.VisualBasic.Forms (1)
Microsoft.VisualStudio.TestPlatform.Common (1)
NuGet.Common (1)
NuGet.Configuration (1)
NuGet.Packaging (5)
NuGet.Protocol (5)
PresentationBuildTasks (2)
PresentationUI (1)
RepoTasks (4)
rzc (1)
System.CommandLine (3)
System.Formats.Tar (3)
System.IO.Compression.ZipFile (1)
System.IO.FileSystem.AccessControl (1)
System.IO.FileSystem.DriveInfo (1)
System.IO.Ports (1)
System.Net.NetworkInformation (1)
System.Private.CoreLib (5)
vstest.console (3)
vstest.console.arm64 (3)