404 references to ReadAllTextAsync
aspire (21)
Agents\Hooks\TelemetryHookConfigurator.cs (1)
164content = await File.ReadAllTextAsync(settingsPath, cancellationToken);
Agents\McpConfigFileHelper.cs (1)
75var content = await File.ReadAllTextAsync(configFilePath, cancellationToken);
Caching\AppHostInfoDiskCache.cs (1)
146var json = await File.ReadAllTextAsync(path, cancellationToken).ConfigureAwait(false);
Caching\DiskCache.cs (1)
69return await File.ReadAllTextAsync(cacheFilePath, cancellationToken).ConfigureAwait(false);
Commands\AgentInitCommand.cs (1)
727var existingContent = await File.ReadAllTextAsync(fullPath, cancellationToken);
Configuration\ConfigurationService.cs (3)
35var existingContent = await File.ReadAllTextAsync(settingsFilePath, cancellationToken); 63var existingContent = await File.ReadAllTextAsync(settingsFilePath, cancellationToken); 189var content = await File.ReadAllTextAsync(filePath, cancellationToken);
Documentation\FileBackedDocumentContentCache.cs (1)
281return await File.ReadAllTextAsync(filePath, cancellationToken).ConfigureAwait(false);
Projects\GeneratedFileWriter.cs (1)
35var existing = await File.ReadAllTextAsync(path, cancellationToken).ConfigureAwait(false);
Projects\ProjectUpdater.cs (2)
870var fileContent = await File.ReadAllTextAsync(projectFile.FullName); 922var fileContent = await File.ReadAllTextAsync(projectFile.FullName);
Scaffolding\ScaffoldingService.cs (4)
194var existingContent = await File.ReadAllTextAsync(filePath, cancellationToken); 203var existingContent = await File.ReadAllTextAsync(filePath, cancellationToken); 208var existingContent = await File.ReadAllTextAsync(filePath, cancellationToken); 295var existingContent = await File.ReadAllTextAsync(packageJsonPath, cancellationToken);
Telemetry\InternalMicrosoftDetector.cs (1)
308var json = await File.ReadAllTextAsync(_cacheFilePath, cancellationToken).ConfigureAwait(false);
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
159var content = await File.ReadAllTextAsync(aspireConfigPath, cancellationToken);
Utils\CliDownloader.cs (1)
208var expectedChecksum = (await File.ReadAllTextAsync(checksumPath, cancellationToken)).Trim().ToLowerInvariant();
Utils\EnvironmentChecker\DcpKubeconfig.cs (1)
29var content = await File.ReadAllTextAsync(path, cancellationToken).ConfigureAwait(false);
Utils\FileSystemHelper.cs (1)
20return await File.ReadAllTextAsync(path, cancellationToken).ConfigureAwait(false);
Aspire.Acquisition.Tests (19)
Scripts\PRScriptInstallE2ETests.cs (1)
62var sidecarContent = await File.ReadAllTextAsync(sidecarPath, cancellationToken);
Scripts\PRScriptInstallerModeTests.cs (9)
616var brewLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "brew.log")); 642var cask = await File.ReadAllTextAsync(Path.Combine(outputDir, "aspire.rb")); 658var brewLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "brew.log")); 772var installerManifest = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.installer.yaml")); 781var localeManifest = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.locale.en-US.yaml")); 801var wingetLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "winget.log")); 848var wingetLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "winget.log")); 853var originalInstaller = await File.ReadAllTextAsync(Path.Combine(manifestDir, "Microsoft.Aspire.installer.yaml")); 921var installerYaml = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.installer.yaml"));
Scripts\PRScriptToolModeTests.cs (7)
407var dotnetCommands = await File.ReadAllTextAsync(dotnetCommandsPath, TestContext.Current.CancellationToken); 436var dotnetCommands = await File.ReadAllTextAsync(dotnetCommandsPath, TestContext.Current.CancellationToken); 476var dotnetCommands = await File.ReadAllTextAsync(dotnetCommandsPath, TestContext.Current.CancellationToken); 515var dotnetCommands = await File.ReadAllTextAsync(dotnetCommandsPath, TestContext.Current.CancellationToken); 983var dotnetCommands = await File.ReadAllTextAsync(dotnetCommandsPath, TestContext.Current.CancellationToken); 1012var dotnetCommands = await File.ReadAllTextAsync(dotnetCommandsPath, TestContext.Current.CancellationToken); 1059var dotnetCommands = await File.ReadAllTextAsync(dotnetCommandsPath, TestContext.Current.CancellationToken);
Scripts\ReleaseScriptFunctionTests.cs (1)
455Assert.Equal("setup", (await File.ReadAllTextAsync(capturePath)).Trim());
Scripts\ReleaseScriptPSFunctionTests.cs (1)
437Assert.Equal("setup", (await File.ReadAllTextAsync(capturePath)).Trim());
Aspire.Cli.EndToEnd.Tests (8)
CSharpInitTests.cs (1)
61var configText = await File.ReadAllTextAsync(aspireConfigJson);
SdkExportTests.cs (1)
69using var document = JsonDocument.Parse(await File.ReadAllTextAsync(
TypeScriptEmptyAppHostTemplateTests.cs (1)
41var appHostContents = await File.ReadAllTextAsync(appHostPath, TestContext.Current.CancellationToken);
TypeScriptPublishTests.cs (3)
148var composeContent = await File.ReadAllTextAsync(Path.Combine(artifactsPath, "docker-compose.yaml")); 269var dockerComposeContent = await File.ReadAllTextAsync(dockerComposePath); 347var envFileContent = await File.ReadAllTextAsync(envFilePath);
UpdateChannelNuGetConfigOrderingTests.cs (2)
165var updatedAppHostCs = await File.ReadAllTextAsync(appHostCsPath); 166var updatedNuGetConfig = await File.ReadAllTextAsync(nugetConfigPath);
Aspire.Cli.Tests (157)
Acquisition\PeerInstallProbeTests.cs (1)
433var pidText = await File.ReadAllTextAsync(pidFile, cancellationToken);
Agents\AspireSkillsInstallerTests.cs (6)
345await File.ReadAllTextAsync(Path.Combine( 350await File.ReadAllTextAsync(Path.Combine( 407await File.ReadAllTextAsync(Path.Combine( 464await File.ReadAllTextAsync(Path.Combine( 1609await File.ReadAllTextAsync(Path.Combine( 1614await File.ReadAllTextAsync(Path.Combine(
Agents\ClaudeCodeAgentEnvironmentScannerTests.cs (1)
96var currentContent = await File.ReadAllTextAsync(mcpJsonPath);
Agents\CopilotCliAgentEnvironmentScannerTests.cs (3)
60var content = await File.ReadAllTextAsync(mcpConfigPath); 121var content = await File.ReadAllTextAsync(mcpConfigPath); 279var currentContent = await File.ReadAllTextAsync(mcpConfigPath);
Agents\OpenCodeAgentEnvironmentScannerTests.cs (1)
89var currentContent = await File.ReadAllTextAsync(configPath);
Agents\PlaywrightCliInstallerTests.cs (1)
663Assert.Equal("# Playwright CLI Skill", await File.ReadAllTextAsync(Path.Combine(tempDir, ".agents", "skills", "playwright-cli", "SKILL.md")));
Agents\TelemetryHookConfiguratorTests.cs (6)
30var root = JsonNode.Parse(await File.ReadAllTextAsync(hookFile).DefaultTimeout())!.AsObject(); 143var root = JsonNode.Parse(await File.ReadAllTextAsync(settingsPath).DefaultTimeout())!.AsObject(); 167Assert.Equal(malformed, await File.ReadAllTextAsync(settingsPath).DefaultTimeout()); 184Assert.Equal(unexpected, await File.ReadAllTextAsync(settingsPath).DefaultTimeout()); 204Assert.Equal(nonObjectRoot, await File.ReadAllTextAsync(settingsPath).DefaultTimeout()); 229var root = JsonNode.Parse(await File.ReadAllTextAsync(settingsPath))!.AsObject();
Agents\TelemetryHookInstallerTests.cs (4)
43var content = await File.ReadAllTextAsync(scripts.ShellScriptPath).DefaultTimeout(); 55var firstShellContent = await File.ReadAllTextAsync(first.ShellScriptPath).DefaultTimeout(); 58var secondShellContent = await File.ReadAllTextAsync(second.ShellScriptPath).DefaultTimeout(); 78var content = await File.ReadAllTextAsync(scripts.ShellScriptPath).DefaultTimeout();
Agents\VsCodeAgentEnvironmentScannerTests.cs (4)
146var content = await File.ReadAllTextAsync(mcpJsonPath); 199var content = await File.ReadAllTextAsync(mcpJsonPath); 245var content = await File.ReadAllTextAsync(mcpJsonPath); 352var currentContent = await File.ReadAllTextAsync(mcpJsonPath);
Caching\AppHostInfoDiskCacheTests.cs (1)
116using var document = JsonDocument.Parse(await File.ReadAllTextAsync(cachePath));
Commands\ConfigCommandTests.cs (17)
125var json = await File.ReadAllTextAsync(settingsPath); 150var settingsJson = await File.ReadAllTextAsync(settingsPath); 185var json = await File.ReadAllTextAsync(settingsPath); 210var json = await File.ReadAllTextAsync(settingsPath); 242var json = await File.ReadAllTextAsync(settingsPath); 362var json = await File.ReadAllTextAsync(settingsPath); 691var json = await File.ReadAllTextAsync(settingsPath); 723var json = await File.ReadAllTextAsync(settingsPath); 754var json = await File.ReadAllTextAsync(settingsPath); 785var json = await File.ReadAllTextAsync(settingsPath); 815var json = await File.ReadAllTextAsync(settingsPath); 848var json = await File.ReadAllTextAsync(settingsPath); 874var json = await File.ReadAllTextAsync(configPath); 904var json = await File.ReadAllTextAsync(configPath); 939var json = await File.ReadAllTextAsync(settingsPath); 961var json = await File.ReadAllTextAsync(settingsPath); 1019var json = await File.ReadAllTextAsync(settingsPath);
Commands\DoctorCommandTests.cs (1)
88await File.ReadAllTextAsync("/etc/os-release", TestContext.Current.CancellationToken));
Commands\InitCommandTests.cs (4)
654var appHostContent = await File.ReadAllTextAsync(appHostPath); 688var merged = JsonNode.Parse(await File.ReadAllTextAsync(configPath))!.AsObject(); 735Assert.Equal(preExistingContent, await File.ReadAllTextAsync(appHostPath)); 1172var config = JsonNode.Parse(await File.ReadAllTextAsync(configPath))!.AsObject();
Commands\NewCommandTemplateConfigPersistenceTests.cs (3)
303Assert.Contains(s_prVersion, await File.ReadAllTextAsync(appHostFile)); 310var csharpNuGetConfig = await File.ReadAllTextAsync(Path.Combine(outputDirectory, "nuget.config")); 334var dotNetNuGetConfig = await File.ReadAllTextAsync(Path.Combine(outputDirectory, "nuget.config"));
Commands\NewCommandTests.cs (8)
152var nugetConfig = await File.ReadAllTextAsync(nugetConfigPath); 1671var aspireConfig = await File.ReadAllTextAsync(aspireConfigPath); 1672var appHostRunJson = await File.ReadAllTextAsync(appHostRunJsonPath); 1705var aspireConfig = await File.ReadAllTextAsync(aspireConfigPath); 1706var appHostRunJson = await File.ReadAllTextAsync(appHostRunJsonPath); 1777var aspireConfig = await File.ReadAllTextAsync(aspireConfigPath); 1784var appHostRunJson = await File.ReadAllTextAsync(appHostRunJsonPath); 1983var configContent = await File.ReadAllTextAsync(configPath);
Commands\SdkDumpCommandTests.cs (1)
282var output = await File.ReadAllTextAsync(outputPath);
Commands\UpdateCommandTests.cs (2)
1562Assert.Equal(originalExecutable, await File.ReadAllTextAsync(processPath)); 1563Assert.Equal(originalSidecar, await File.ReadAllTextAsync(sidecarPath));
DotNet\ProcessExecutionDetachedTests.cs (2)
291var childPid = int.Parse(await File.ReadAllTextAsync(capturePath), CultureInfo.InvariantCulture); 352Assert.Equal(Path.GetFullPath(versionDirectory.FullName), (await File.ReadAllTextAsync(capturePath)).Trim());
Migrations\TypeScriptAppHostMigrationTests.cs (8)
189var config = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(root.FullName, "aspire.config.json")))!; 192var tsconfig = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(root.FullName, "tsconfig.apphost.json")))!; 196var packageJson = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(root.FullName, "package.json")))!; 201var eslintConfig = await File.ReadAllTextAsync(Path.Combine(root.FullName, "eslint.config.mjs")); 217var modernContent = await File.ReadAllTextAsync(Path.Combine(root.FullName, "apphost.mts")); 236Assert.Equal(ExpectedModernAppHostContent, await File.ReadAllTextAsync(Path.Combine(appHostDirectory.FullName, "apphost.mts"))); 278var migratedContent = await File.ReadAllTextAsync(Path.Combine(root.FullName, "apphost.mts")); 282Assert.Equal(migratedContent, await File.ReadAllTextAsync(Path.Combine(root.FullName, "apphost.mts")));
Packaging\NuGetConfigMergerTests.cs (4)
50var expected = await File.ReadAllTextAsync(tempConfig.ConfigFile.FullName); 51var actual = await File.ReadAllTextAsync(targetConfigPath); 861var originalContent = await File.ReadAllTextAsync(Path.Combine(root.FullName, "nuget.config")).DefaultTimeout(); 883var currentContent = await File.ReadAllTextAsync(targetConfigPath);
Packaging\PackagingServiceTests.cs (2)
1124var configContent = await File.ReadAllTextAsync(nugetConfigPath); 1379var configContent = await File.ReadAllTextAsync(nugetConfigPath);
Packaging\TemporaryNuGetConfigTests.cs (7)
26var configContent = await File.ReadAllTextAsync(tempConfig.ConfigFile.FullName); 65var configContent = await File.ReadAllTextAsync(tempConfig.ConfigFile.FullName); 96var configContent = await File.ReadAllTextAsync(tempConfig.ConfigFile.FullName); 119var configContent = await File.ReadAllTextAsync(tempConfig.ConfigFile.FullName); 141var configContent = await File.ReadAllTextAsync(tempConfig.ConfigFile.FullName); 160var configContent = await File.ReadAllTextAsync(tempConfig.ConfigFile.FullName); 194xmlDoc.LoadXml(await File.ReadAllTextAsync(tempConfig.ConfigFile.FullName));
Projects\AppHostServerProjectTests.cs (5)
64var content = await File.ReadAllTextAsync(appSettingsPath); 85var content = await File.ReadAllTextAsync(programCsPath); 109var content = await File.ReadAllTextAsync(programCs); 132var content = await File.ReadAllTextAsync(appSettingsPath); 403var projectContent = await File.ReadAllTextAsync(projectFilePath);
Projects\DotNetBasedAppHostServerScaffoldCacheTests.cs (3)
63var csproj = await File.ReadAllTextAsync( 132Assert.Contains(firstProject, await File.ReadAllTextAsync(csprojPath)); 139Assert.Contains(secondProject, await File.ReadAllTextAsync(csprojPath));
Projects\GuestAppHostProjectTests.cs (3)
118Assert.Equal("class Generated { int x; }", await File.ReadAllTextAsync(filePath)); 130Assert.Equal("class New { }", await File.ReadAllTextAsync(filePath)); 432var content = await File.ReadAllTextAsync(settingsPath);
Projects\GuestRuntimeTests.cs (3)
756var logContents = await File.ReadAllTextAsync(logFilePath); 982var writtenContent = await File.ReadAllTextAsync(migrationFilePath); 1025var writtenContent = await File.ReadAllTextAsync(migrationFilePath);
Projects\JavaAppHostToolchainResolverTests.cs (4)
407Assert.Contains("aspireCopyDependencies", await File.ReadAllTextAsync(scriptPath)); 412Assert.Contains("aspireCopyDependencies", await File.ReadAllTextAsync(scriptPath)); 424var script = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".aspire", "aspire-gradle-init.gradle")); 579Assert.Contains("aspireCopyDependencies", await File.ReadAllTextAsync(scriptPath));
Projects\PrebuiltAppHostServerTests.cs (5)
41Assert.Equal("<Project />", await File.ReadAllTextAsync(path)); 52Assert.Equal("<Project Sdk=\"Microsoft.NET.Sdk\" />", await File.ReadAllTextAsync(path)); 79Assert.Equal("<Project Sdk=\"Microsoft.NET.Sdk\" />", await File.ReadAllTextAsync(path)); 1405var appSettingsContent = await File.ReadAllTextAsync(appSettingsPath); 2617Assert.Equal("integration-v1", await File.ReadAllTextAsync(copiedFilePath));
Projects\ProjectLocatorTests.cs (11)
86Assert.Equal(originalConfig, await File.ReadAllTextAsync(configPath)); 115Assert.Equal(originalConfig, await File.ReadAllTextAsync(configPath)); 146Assert.Equal(originalConfig, await File.ReadAllTextAsync(configPath)); 243Assert.Equal(originalConfig, await File.ReadAllTextAsync(configPath)); 341using (var document = JsonDocument.Parse(await File.ReadAllTextAsync(configPath))) 429Assert.Equal(originalConfig, await File.ReadAllTextAsync(configPath)); 1509var settingsJson = await File.ReadAllTextAsync(settingsFile.FullName); 1573var adjacentConfigJson = await File.ReadAllTextAsync(adjacentConfigPath); 1643var appHost1ConfigJson = await File.ReadAllTextAsync(appHost1ConfigPath); 1648var appHost2ConfigJson = await File.ReadAllTextAsync(appHost2ConfigPath); 1742var configJson = await File.ReadAllTextAsync(aspireConfigFilePath);
Projects\ProjectUpdaterTests.cs (30)
288var updatedConfig = await File.ReadAllTextAsync(aspireConfigFile.FullName); 571var updatedConfig = await File.ReadAllTextAsync(aspireConfigFile.FullName); 958var updatedContent = await File.ReadAllTextAsync(directoryPackagesPropsFile.FullName); 1063var updatedContent = await File.ReadAllTextAsync(directoryPackagesPropsFile.FullName); 1166var content = await File.ReadAllTextAsync(directoryPackagesPropsFile.FullName); 1291var updatedContent = await File.ReadAllTextAsync(directoryPackagesPropsFile.FullName); 1371var updatedContent = await File.ReadAllTextAsync(appHostProjectFile.FullName); 1445var unchangedContent = await File.ReadAllTextAsync(appHostProjectFile.FullName); 1540var updatedProject = await File.ReadAllTextAsync(appHostProjectFile.FullName); 1541var updatedProps = await File.ReadAllTextAsync(directoryPackagesPropsFile.FullName); 1612var updatedConfig = await File.ReadAllTextAsync(nugetConfigPath); 1877var content = await File.ReadAllTextAsync(directoryPackagesPropsFile.FullName); 2000var content = await File.ReadAllTextAsync(directoryPackagesPropsFile.FullName); 2665var updatedContent = await File.ReadAllTextAsync(appHostFile.FullName); 2760var updatedContent = await File.ReadAllTextAsync(appHostFile.FullName); 2845var updatedContent = await File.ReadAllTextAsync(appHostFile.FullName); 2928var updatedContent = await File.ReadAllTextAsync(appHostFile.FullName); 3091var updatedContent = await File.ReadAllTextAsync(appHostProjectFile.FullName); 3170var updatedContent = await File.ReadAllTextAsync(appHostProjectFile.FullName); 3419var directoryPackagesContent = await File.ReadAllTextAsync(directoryPackagesPropsFile.FullName); 3450var updatedContent = await File.ReadAllTextAsync(projectFile); 3482var updatedContent = await File.ReadAllTextAsync(projectFile); 3519var updatedContent = await File.ReadAllTextAsync(projectFile); 3555var updatedContent = await File.ReadAllTextAsync(projectFile); 3587var updatedContent = await File.ReadAllTextAsync(projectFile); 3620var updatedContent = await File.ReadAllTextAsync(projectFile); 3676var updatedPropsContent = await File.ReadAllTextAsync(directoryPackagesPropsFile); 3682var updatedCsprojContent = await File.ReadAllTextAsync(projectFile); 3980var updatedContent = await File.ReadAllTextAsync(existingConfigFile.FullName); 4057var content = await File.ReadAllTextAsync(createdConfig.FullName);
Telemetry\InternalMicrosoftDetectorTests.cs (1)
84var updatedCache = await File.ReadAllTextAsync(cacheFilePath);
Templating\DotNetTemplateFactoryTests.cs (5)
99var content = await File.ReadAllTextAsync(nugetConfigPath); 135var parentContent = await File.ReadAllTextAsync(parentConfigPath); 143var outputContent = await File.ReadAllTextAsync(outputConfigPath); 179var content = await File.ReadAllTextAsync(outputConfigPath); 210var content = await File.ReadAllTextAsync(outputConfigPath);
Aspire.Hosting (4)
ApplicationModel\DockerfileBuildAnnotation.cs (1)
200var existingContent = await File.ReadAllTextAsync(path, cancellationToken).ConfigureAwait(false);
Devcontainers\DevcontainerSettingsWriter.cs (1)
119var settingsContent = await File.ReadAllTextAsync(settingsPath, cancellationToken).ConfigureAwait(false);
Pipelines\Internal\DeploymentStateManagerBase.cs (1)
82var fileContent = await File.ReadAllTextAsync(statePath, cancellationToken).ConfigureAwait(false);
Utils\DockerfileHelper.cs (1)
45var dockerfileContent = await File.ReadAllTextAsync(annotation.DockerfilePath, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Kubernetes.Tests (4)
AzureKubernetesFoundryReferenceTests.cs (1)
60var values = await File.ReadAllTextAsync(valuesPath);
AzureKubernetesInfrastructureTests.cs (1)
469await File.ReadAllTextAsync(aks.Resource.KubernetesEnvironment.KubeConfigPath!, TestContext.Current.CancellationToken));
AzureKubernetesIngressTests.cs (1)
36var content = await File.ReadAllTextAsync(ingressPath);
AzureKubernetesPersistentVolumeTests.cs (1)
39var content = await File.ReadAllTextAsync(claimPath);
Aspire.Hosting.Azure.Tests (15)
AzureAppServiceTests.cs (3)
562var mainBicep = await File.ReadAllTextAsync(mainBicepPath); 566var envBicep = await File.ReadAllTextAsync(envBicepPath); 570var apiBicep = await File.ReadAllTextAsync(apiBicepPath);
AzureContainerAppEnvironmentExtensionsTests.cs (2)
567var mainBicep = await File.ReadAllTextAsync(mainBicepPath); 571var envBicep = await File.ReadAllTextAsync(envBicepPath);
AzureDeployerTests.cs (4)
1666var stateContent = await File.ReadAllTextAsync(deploymentStatePath); 1788var stateContent = await File.ReadAllTextAsync(stagingStatePath); 1871firstDeploymentState = await File.ReadAllTextAsync(deploymentStatePath); 1926secondDeploymentState = await File.ReadAllTextAsync(deploymentStatePath);
AzureEnvironmentResourceTests.cs (3)
283var actualContent = await File.ReadAllTextAsync(dockerfilePath); 348var copiedContent = await File.ReadAllTextAsync(resourceBicepPath); 352var mainBicepContent = await File.ReadAllTextAsync(mainBicepPath);
AzureManifestUtils.cs (1)
44var bicepText = await File.ReadAllTextAsync(Path.Combine(manifestDir, path));
AzureResourceOptionsTests.cs (2)
45var sbBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sb.module.bicep")); 47var sqlBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sql-server.module.bicep"));
Aspire.Hosting.Blazor (2)
Manifests\EndpointsManifestTransformer.cs (2)
23await File.ReadAllTextAsync(manifestPath, ct).ConfigureAwait(false), 95await File.ReadAllTextAsync(runtimePath, ct).ConfigureAwait(false),
Aspire.Hosting.Blazor.Tests (2)
EndpointsManifestTransformerTests.cs (2)
197await File.ReadAllTextAsync(outputPath), 259await File.ReadAllTextAsync(outputPath),
Aspire.Hosting.Browsers.Tests (1)
BrowserLogsSessionManagerTests.cs (1)
300var metadata = await File.ReadAllTextAsync(metadataPath);
Aspire.Hosting.Containers.Tests (3)
DockerSocketBindMountTests.cs (1)
51var infoContent = await File.ReadAllTextAsync(infoFile);
WithDockerfileTests.cs (2)
932var actualContent = await File.ReadAllTextAsync(dockerfilePath); 935var manifestContent = await File.ReadAllTextAsync(manifestPath);
Aspire.Hosting.Docker.Tests (8)
DockerComposePublisherTests.cs (8)
574var actualContent = await File.ReadAllTextAsync(dockerfilePath); 623var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 655var envFileContent = await File.ReadAllTextAsync(envFilePath); 686var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 775var composeContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "docker-compose.yaml")); 776var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 808var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 834var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production"));
Aspire.Hosting.Go.Tests (13)
AddGoAppTests.cs (13)
95var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 790var content = await File.ReadAllTextAsync(dockerfilePath); 807var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 829var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 851var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 888var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 910var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 930var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 995var dockerfile = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 1035var dockerfile = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 1087var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 1161var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 1181var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"));
Aspire.Hosting.Java.Tests (5)
AddJavaAppPublishTests.cs (5)
494var manifest = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "aspire-manifest.json"), TestContext.Current.CancellationToken); 1178await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "aspire-manifest.json"), TestContext.Current.CancellationToken)); 1805return await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 2028return await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 2055? await File.ReadAllTextAsync(ignorePath, TestContext.Current.CancellationToken)
Aspire.Hosting.JavaScript.Tests (6)
AddJavaScriptAppTests.cs (6)
397var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 432var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 463var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 492var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 568var dockerfileContent = await File.ReadAllTextAsync(dockerfilePath); 663var dockerfileContent = await File.ReadAllTextAsync(dockerfilePath);
Aspire.Hosting.Kubernetes.Tests (56)
KubernetesDeployTests.cs (19)
878var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "Chart.yaml")); 909var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "Chart.yaml")); 931var deploymentYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "templates", "svc", "deployment.yaml")); 1005var content = await File.ReadAllTextAsync(deployValuesPath); 1064var content = await File.ReadAllTextAsync(deployValuesPath); 1140var content = await File.ReadAllTextAsync(deployValuesPath); 1309var content = await File.ReadAllTextAsync(deployValuesPath); 1371var valuesContent = await File.ReadAllTextAsync(valuesPath); 1395var templateContent = await File.ReadAllTextAsync(serverSecretsTemplatePath); 1446var valuesContent = await File.ReadAllTextAsync(valuesPath); 1506var content = await File.ReadAllTextAsync(overridePath); 1564var content = await File.ReadAllTextAsync(overridePath); 1623await Verify(await File.ReadAllTextAsync(overridePath), "yaml"); 1668await Verify(await File.ReadAllTextAsync(overridePath), "yaml"); 1708await Verify(await File.ReadAllTextAsync(Path.Combine(workspace.Path, "values.yaml")), "yaml") 1710await File.ReadAllTextAsync(Path.Combine(workspace.Path, "templates", "myapp", "config.yaml")), 1712.AppendContentAsFile(await File.ReadAllTextAsync(overridePath), "yaml"); 1782var content = await File.ReadAllTextAsync(valuesPath); 1817var content = await File.ReadAllTextAsync(valuesPath);
KubernetesGatewayTests.cs (7)
43var gatewayContent = await File.ReadAllTextAsync(gatewayFile); 51var routeContent = await File.ReadAllTextAsync(routeFile); 79var content = await File.ReadAllTextAsync(routeFile); 257var content = await File.ReadAllTextAsync(gatewayFile); 465var content = await File.ReadAllTextAsync(gatewayFile); 514var content = await File.ReadAllTextAsync(gatewayFile); 598var content = await File.ReadAllTextAsync(gatewayFile);
KubernetesIngressTests.cs (14)
37var content = await File.ReadAllTextAsync(ingressPath); 67var content = await File.ReadAllTextAsync(ingressPath); 111var content = await File.ReadAllTextAsync(ingressPath); 118var values = await File.ReadAllTextAsync(valuesPath); 150var content = await File.ReadAllTextAsync(ingressPath); 254var content = await File.ReadAllTextAsync(ingressPath); 283var content = await File.ReadAllTextAsync(ingressPath); 316var content = await File.ReadAllTextAsync(ingressPath); 344var content = await File.ReadAllTextAsync(ingressPath); 368var content = await File.ReadAllTextAsync(ingressPath); 618var publicContent = await File.ReadAllTextAsync(publicPath); 619var internalContent = await File.ReadAllTextAsync(internalPath); 650var content = await File.ReadAllTextAsync(ingressPath); 683var content = await File.ReadAllTextAsync(ingressPath);
KubernetesPublisherTests.cs (16)
113var content = await File.ReadAllTextAsync(deploymentPath); 215var content = await File.ReadAllTextAsync(manifestPath); 380var actualContent = await File.ReadAllTextAsync(dockerfilePath); 454var deployment = await File.ReadAllTextAsync(deploymentPath); 547var deployment = await File.ReadAllTextAsync(deploymentPath); 1440var content = await File.ReadAllTextAsync(filePath); 1489var deploymentContent = await File.ReadAllTextAsync(deploymentPath); 1534var content = await File.ReadAllTextAsync(filePath); 1589var content = await File.ReadAllTextAsync(filePath); 1623var content = await File.ReadAllTextAsync(statefulSetPath); 1650var content = await File.ReadAllTextAsync(statefulSetPath); 1692var statefulSetContent = await File.ReadAllTextAsync(statefulSetPath); 1697var pvcContent = await File.ReadAllTextAsync(pvcPath); 1761var content = await File.ReadAllTextAsync(statefulSetPath); 1835var pvcContent = await File.ReadAllTextAsync(pvcPath); 1847var valuesContent = await File.ReadAllTextAsync(valuesPath);
Aspire.Hosting.Radius (1)
Publishing\SealedSecretApplyStep.cs (1)
685var text = await File.ReadAllTextAsync(configPath, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Radius.Tests (1)
Publishing\RadiusDeployParametersTests.cs (1)
70var json = await File.ReadAllTextAsync(path);
Aspire.Hosting.RemoteHost.Tests (7)
LayoutCommandTests.cs (7)
49Assert.Equal(GetExpectedRuntimeContent(), await File.ReadAllTextAsync(Path.Combine(outputPath, "Test.Package.dll"))); 50Assert.Equal("fr", await File.ReadAllTextAsync(Path.Combine(outputPath, "fr", "Test.Package.resources.dll"))); 51Assert.Equal("runtime-native", await File.ReadAllTextAsync(Path.Combine(outputPath, GetNativeFileName()))); 54await File.ReadAllTextAsync(Path.Combine(outputPath, "runtimes", GetExpectedRuntimeAssetRid(), "lib", "net10.0", "Test.Package.dll"))); 57await File.ReadAllTextAsync(Path.Combine(outputPath, "runtimes", GetCurrentRuntimeIdentifier(), "native", GetNativeFileName()))); 99Assert.Equal(GetExpectedRuntimeContent(), await File.ReadAllTextAsync(Path.Combine(outputPath, "Test.Package.dll"))); 137Assert.Equal("base", await File.ReadAllTextAsync(Path.Combine(outputPath, "Test.Package.dll")));
Aspire.Hosting.Rust.Tests (14)
AddRustAppPublishTests.cs (13)
565var content = await File.ReadAllTextAsync( 604var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 634var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 678var content = await File.ReadAllTextAsync( 754var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 793var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 927var first = await File.ReadAllTextAsync(Path.Combine(firstOutputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 928var second = await File.ReadAllTextAsync(Path.Combine(secondOutputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 945var first = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 946var second = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "worker.Dockerfile"), TestContext.Current.CancellationToken); 974var ignore = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"), TestContext.Current.CancellationToken); 1066var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 1143return await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken);
RustReadmeTests.cs (1)
15var readme = await File.ReadAllTextAsync(readmePath, TestContext.Current.CancellationToken);
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
832childProcessId = int.Parse(await File.ReadAllTextAsync(childPidPath), CultureInfo.InvariantCulture);
Aspire.Hosting.Testing.Tests (1)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
129var content = await File.ReadAllTextAsync(logFile, cancellationToken);
Aspire.Hosting.Tests (9)
ApplicationModel\Docker\DockerfileBuildAnnotationTests.cs (4)
123var actualContent = await File.ReadAllTextAsync(dockerfilePath); 235Assert.Equal("FROM scratch", await File.ReadAllTextAsync(dockerfilePath)); 259Assert.Equal(generatedIgnoreContent, await File.ReadAllTextAsync(perDockerfileIgnore)); 292Assert.Equal(userIgnoreContent, await File.ReadAllTextAsync(perDockerfileIgnore));
MSBuildTests.cs (4)
127var appHostMetadata = await File.ReadAllTextAsync(Path.Combine(metadataDirectory, "_AppHost.ProjectMetadata.g.cs")); 128var appMetadata = await File.ReadAllTextAsync(Path.Combine(metadataDirectory, "App.ProjectMetadata.g.cs")); 862var property = await File.ReadAllTextAsync(Path.Combine(appHostDirectory, "obj", "aspire-use-cli-bundle.txt")); 887var appMetadata = await File.ReadAllTextAsync(metadataPath);
WithTerminalTests.cs (1)
381using var doc = JsonDocument.Parse(await File.ReadAllTextAsync(host.Layout.MetadataPath));
Aspire.Hosting.TestUtilities (1)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
129var content = await File.ReadAllTextAsync(logFile, cancellationToken);
Aspire.Hosting.Yarp (1)
YarpJsonConfigGeneratorBuilder.cs (1)
66return await File.ReadAllTextAsync(_configFilePath, ct).ConfigureAwait(false);
Aspire.Hosting.Yarp.Tests (1)
YarpConfigGeneratorTests.cs (1)
295var content = await File.ReadAllTextAsync(composeFile);
Aspire.Templates.Tests (5)
LocalhostTldHostnameTests.cs (1)
76var launchSettingsContent = await File.ReadAllTextAsync(launchSettingsPath);
NewUpAndBuildStandaloneTemplateTests.cs (4)
59var appContent = await File.ReadAllTextAsync(Path.Combine(webProjectDirectory, "Components", "App.razor")); 63var importsContent = await File.ReadAllTextAsync(Path.Combine(webProjectDirectory, "Components", "_Imports.razor")); 66var errorPageContent = await File.ReadAllTextAsync(Path.Combine(webProjectDirectory, "Components", "Pages", "Error.razor")); 69var navMenuContent = await File.ReadAllTextAsync(Path.Combine(webProjectDirectory, "Components", "Layout", "NavMenu.razor"));
Aspire.TestTools (2)
GitHubCli.cs (2)
32return File.ReadAllTextAsync(fixturePath, cancellationToken); 37return File.ReadAllTextAsync(fixturePath, cancellationToken);
Infrastructure.Tests (19)
GenerateTestSummary\GenerateTestSummaryToolTests.cs (7)
65await File.ReadAllTextAsync(jsonPath), 92await File.ReadAllTextAsync(jsonPath), 115await File.ReadAllTextAsync(jsonPath), 142await File.ReadAllTextAsync(jsonPath), 172await File.ReadAllTextAsync(jsonPath), 199await File.ReadAllTextAsync(jsonPath), 230await File.ReadAllTextAsync(jsonPath),
Pipelines\NixCliPackageTests.cs (2)
253? File.ReadAllTextAsync(relativePath) 254: File.ReadAllTextAsync(Path.Combine(RepoRoot.Path, relativePath));
Pipelines\NpmCliPackageTests.cs (3)
270var readme = await File.ReadAllTextAsync(Path.Combine(package.PointerPackageRoot, "README.md")); 355var readme = await File.ReadAllTextAsync(Path.Combine(package.RidPackageRoot, "README.md")); 502=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
Pipelines\ReleasePublishNugetPipelineTests.cs (1)
804=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (1)
2256=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (4)
298(await File.ReadAllTextAsync(fakeGh.CallLogPath)).Contains("--add-label vscode-extension-release", StringComparison.Ordinal), 327var callLog = await File.ReadAllTextAsync(fakeGh.CallLogPath); 358var callLog = (await File.ReadAllTextAsync(fakeGh.CallLogPath)).ReplaceLineEndings("\n"); 633return await File.ReadAllTextAsync(outputPath);
WorkflowScripts\SelectTestsCommentScriptTests.cs (1)
242var response = JsonSerializer.Deserialize<HarnessResponse<CommentScriptResult>>(await File.ReadAllTextAsync(outputPath), s_jsonOptions);
Microsoft.Extensions.DataIngestion.Markdig (1)
MarkdownReader.cs (1)
23string fileContent = await File.ReadAllTextAsync(source.FullName, cancellationToken).ConfigureAwait(false);
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
GeneratorTests.cs (2)
130var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options: options); 153var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options: options);
Microsoft.Gen.MetadataExtractor.Unit.Tests (7)
GeneratorTests.cs (7)
86var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 89var golden = await File.ReadAllTextAsync(goldenReportPath); 90var generated = await File.ReadAllTextAsync(generatedReportPath); 112_ = await RunGenerator(await File.ReadAllTextAsync(inputFile), options, reportFileName: goldenFileName); 131var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 155var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 181var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options);
Microsoft.Gen.MetricsReports.Unit.Tests (7)
GeneratorTests.cs (7)
51var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 54var golden = await File.ReadAllTextAsync(goldenReportPath); 55var generated = await File.ReadAllTextAsync(generatedReportPath); 76_ = await RunGenerator(await File.ReadAllTextAsync(inputFile), options, reportFileName: goldenFileName); 91var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 111var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 134var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options);