47 references to WriteAllTextAsync
Aspire.Cli.Tests (12)
DotNet\DotNetCliRunnerTests.cs (1)
19await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file.");
Projects\ProjectLocatorTests.cs (11)
46await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 50await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 83await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 87await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 115await File.WriteAllTextAsync(projectFile1.FullName, "Not a real project file."); 118await File.WriteAllTextAsync(projectFile2.FullName, "Not a real project file."); 136await File.WriteAllTextAsync(appHostProject.FullName, "Not a real apphost project."); 139await File.WriteAllTextAsync(webProject.FullName, "Not a real web project."); 184await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 201await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 221await File.WriteAllTextAsync(appHostProjectFile.FullName, "Not a real project file.");
Aspire.Dashboard.Tests (5)
Integration\OtlpGrpcServiceTests.cs (2)
176await File.WriteAllTextAsync(configPath, configJson.ToString()).DefaultTimeout(); 219await File.WriteAllTextAsync(configPath, configJson.ToString()).DefaultTimeout();
Integration\StartupTests.cs (3)
213await File.WriteAllTextAsync(browserTokenConfigFile, changedFrontendBrowserToken).DefaultTimeout(); 559await File.WriteAllTextAsync(configFilePath, configJson.ToString()).DefaultTimeout(); 802await File.WriteAllTextAsync(browserTokenConfigFile, browserToken);
Aspire.Hosting (1)
Devcontainers\DevcontainerSettingsWriter.cs (1)
127await File.WriteAllTextAsync(settingsPath, settingsContent, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
AzurePublishingContext.cs (1)
344await File.WriteAllTextAsync(bicepPath, compiledBicep.Value).ConfigureAwait(false);
Provisioning\Provisioners\AzureProvisioner.cs (1)
238await File.WriteAllTextAsync(userSecretsPath, userSecrets.ToString(), cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Containers.Tests (1)
DockerSocketBindMountTests.cs (1)
25await File.WriteAllTextAsync(dockerFilePath, dockerfile);
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
122await File.WriteAllTextAsync(outputFile, composeOutput, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (2)
KubernetesPublishingContext.cs (2)
148await File.WriteAllTextAsync(outputFile, valuesYaml, cancellationToken).ConfigureAwait(false); 168await File.WriteAllTextAsync(outputFile, chartYaml, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.MongoDB.Tests (2)
MongoDbFunctionalTests.cs (2)
264await File.WriteAllTextAsync(initFilePath, $$""" 362await File.WriteAllTextAsync(initFilePath, $$"""
Aspire.Hosting.Tests (3)
ProjectResourceTests.cs (2)
51await File.WriteAllTextAsync(projectFilePath, csProjContent).DefaultTimeout(); 54await File.WriteAllTextAsync(launchSettingsFilePath, launchSettingsContent).DefaultTimeout();
Utils\DockerfileUtils.cs (1)
53await File.WriteAllTextAsync(tempDockerfilePath, dockerfileContent);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
UserJwtsTests.cs (3)
285await File.WriteAllTextAsync(secretsFilePath, 507await File.WriteAllTextAsync(secretsFilePath, 534await File.WriteAllTextAsync(secretsFilePath,
Microsoft.AspNetCore.FunctionalTests (4)
WebApplicationFunctionalTests.cs (4)
21await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @" 64await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.Development.json"), @" 107await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @" 143await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @"
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
369await File.WriteAllTextAsync(baselineFilePath, newSource);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
369await File.WriteAllTextAsync(baselineFilePath, newSource);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Utilities\AbstractLanguageServerClientTests.cs (2)
48await File.WriteAllTextAsync(projectPath, $""" 59await File.WriteAllTextAsync(codePath, code);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiRefreshTests.cs (2)
26await File.WriteAllTextAsync(expectedJsonPath, "trash"); 56await File.WriteAllTextAsync(expectedJsonPath, PackageUrlContent);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
240await File.WriteAllTextAsync(pidFile, process.Id.ToString(CultureInfo.InvariantCulture));
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
240await File.WriteAllTextAsync(pidFile, process.Id.ToString(CultureInfo.InvariantCulture));
Templates.Mvc.Tests (2)
BlazorTemplateTest.cs (1)
198await File.WriteAllTextAsync(appRazorPath, appRazorText);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
240await File.WriteAllTextAsync(pidFile, process.Id.ToString(CultureInfo.InvariantCulture));
Templates.Tests (1)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
240await File.WriteAllTextAsync(pidFile, process.Id.ToString(CultureInfo.InvariantCulture));