13 writes to ArgumentList
Aspire.Cli.Tests (5)
Commands\AppHostLauncherTests.cs (2)
627ArgumentList = { "-c", "read value; exit 11" } 637ArgumentList = { "-c", "read value; exit 11" }
DotNet\ProcessExecutionTests.cs (2)
391ArgumentList = { "/d", "/c", scriptFile.FullName } 403ArgumentList = { scriptFile.FullName }
Npm\AspireJsLauncherTests.cs (1)
308ArgumentList = { "+x", binaryPath },
Aspire.Hosting.Java.Tests (3)
AddJavaAppPublishTests.cs (2)
59ArgumentList = { "-c", command }, 1884ArgumentList = { "-c", command },
AddJavaAppTests.cs (1)
829ArgumentList = { args[0] },
Aspire.Hosting.Radius (1)
Publishing\SealedSecretApplyStep.cs (1)
837ArgumentList = { "version", "--client" },
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (2)
66ArgumentList = 150ArgumentList =
dotnet-user-secrets (2)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (2)
66ArgumentList = 150ArgumentList =
238 references to ArgumentList
aspire (35)
Acquisition\PeerInstallProbe.cs (1)
217startInfo.ArgumentList.Add(arg);
Agents\Playwright\PlaywrightCliRunner.cs (2)
101startInfo.ArgumentList.Add("install"); 102startInfo.ArgumentList.Add("--skills");
DotNet\ProcessExecutionFactory.cs (2)
109effectiveLogger.LogDebug("Running {FileName} in {WorkingDirectory} with args: {Args}", startInfo.FileName, startInfo.WorkingDirectory, AppHostArgumentRedactor.RedactToString(startInfo.ArgumentList)); 121foreach (var arg in startInfo.ArgumentList)
Git\GitRepository.cs (9)
34startInfo.ArgumentList.Add("rev-parse"); 35startInfo.ArgumentList.Add("--show-toplevel"); 38using var activity = profilingTelemetry.StartGitCommand("rev-parse", startInfo.FileName, startInfo.ArgumentList, executionContext.WorkingDirectory); 117startInfo.ArgumentList.Add("ls-files"); 118startInfo.ArgumentList.Add("--cached"); 119startInfo.ArgumentList.Add("--others"); 120startInfo.ArgumentList.Add("--exclude-standard"); 121startInfo.ArgumentList.Add("-z"); 124using var activity = profilingTelemetry.StartGitCommand("ls-files", startInfo.FileName, startInfo.ArgumentList, searchRoot);
Npm\NpmRunner.cs (1)
239startInfo.ArgumentList.Add(arg);
Processes\IsolatedProcess.cs (2)
25/// The argument list. Mirrors <see cref="ProcessStartInfo.ArgumentList"/> — each entry 386psi.ArgumentList.Add(arg);
Processes\IsolatedProcess.Unix.cs (8)
31dcpStartInfo.ArgumentList.Add("fork-process"); 32dcpStartInfo.ArgumentList.Add("--monitor"); 33dcpStartInfo.ArgumentList.Add(Environment.ProcessId.ToString(CultureInfo.InvariantCulture)); 34dcpStartInfo.ArgumentList.Add("--monitor-identity-time"); 35dcpStartInfo.ArgumentList.Add(ProcessTreeGracefulShutdownService.FormatDcpProcessStartTime(GetCurrentProcessDcpMonitorStartTime())); 36dcpStartInfo.ArgumentList.Add("--"); 37dcpStartInfo.ArgumentList.Add(startInfo.FileName); 40dcpStartInfo.ArgumentList.Add(arg);
Projects\DotNetBasedAppHostServerProject.cs (4)
610startInfo.ArgumentList.Add("exec"); 611startInfo.ArgumentList.Add(assemblyPath); 615startInfo.ArgumentList.Add("--"); 618startInfo.ArgumentList.Add(arg);
Projects\PrebuiltAppHostServer.cs (4)
1433startInfo.ArgumentList.Add("server"); 1434startInfo.ArgumentList.Add("--contentRoot"); 1435startInfo.ArgumentList.Add(contentRootPath); 1442startInfo.ArgumentList.Add(arg);
Projects\ProcessGuestLauncher.cs (1)
114startInfo.ArgumentList.Add(arg);
Utils\EnvironmentChecker\TypeScriptAppHostToolingCheck.cs (1)
242startInfo.ArgumentList.Add("--version");
Aspire.Cli.EndToEnd.Tests (18)
Helpers\CliE2ETestHelpers.cs (18)
445startInfo.ArgumentList.Add("build"); 446startInfo.ArgumentList.Add("--quiet"); 447startInfo.ArgumentList.Add("--build-arg"); 448startInfo.ArgumentList.Add("SKIP_SOURCE_BUILD=true"); 450startInfo.ArgumentList.Add("-f"); 451startInfo.ArgumentList.Add(dockerfilePath); 452startInfo.ArgumentList.Add("-t"); 453startInfo.ArgumentList.Add(PolyglotBaseImageName); 454startInfo.ArgumentList.Add(repoRoot); 497startInfo.ArgumentList.Add("build"); 498startInfo.ArgumentList.Add("--quiet"); 500startInfo.ArgumentList.Add("-f"); 501startInfo.ArgumentList.Add(dockerfilePath); 502startInfo.ArgumentList.Add("-t"); 503startInfo.ArgumentList.Add(PodmanBaseImageName); 504startInfo.ArgumentList.Add(repoRoot); 593startInfo.ArgumentList.Add("--build-arg"); 594startInfo.ArgumentList.Add($"{name}={value}");
Aspire.Cli.Tests (44)
Agents\TelemetryHookScriptTests.cs (1)
543psi.ArgumentList.Add(argument);
Certificates\CertificateProcessRunnerTests.cs (7)
52startInfo.ArgumentList.Add("-NoLogo"); 53startInfo.ArgumentList.Add("-NoProfile"); 54startInfo.ArgumentList.Add("-NonInteractive"); 55startInfo.ArgumentList.Add("-Command"); 56startInfo.ArgumentList.Add( 64startInfo.ArgumentList.Add("-c"); 65startInfo.ArgumentList.Add(
Commands\AppHostLauncherTests.cs (1)
1480var args = startInfo.ArgumentList.ToArray();
DotNet\DotNetCliRunnerTests.cs (6)
2220processStartInfo.ArgumentList.Add("msbuild"); 2221processStartInfo.ArgumentList.Add(projectFile.FullName); 2222processStartInfo.ArgumentList.Add("-restore"); 2223processStartInfo.ArgumentList.Add("-t:ComputeRunArguments"); 2224processStartInfo.ArgumentList.Add("-getProperty:RunCommand,RunArguments,RunWorkingDirectory"); 2225processStartInfo.ArgumentList.Add("-nologo");
DotNet\ProcessExecutionTests.cs (1)
416startInfo.ArgumentList.ToArray(),
DotNetSdkInstallerTests.cs (5)
344startInfo.ArgumentList.Add("-NoProfile"); 345startInfo.ArgumentList.Add("-ExecutionPolicy"); 346startInfo.ArgumentList.Add("Bypass"); 347startInfo.ArgumentList.Add("-File"); 348startInfo.ArgumentList.Add(scriptFile);
Npm\AspireJsLauncherTests.cs (7)
329psi.ArgumentList.Add("--require"); 330psi.ArgumentList.Add(requiredScript); 332psi.ArgumentList.Add(launcherScript); 335psi.ArgumentList.Add(arg); 352psi.ArgumentList.Add(scriptPath); 366psi.ArgumentList.Add("-p"); 367psi.ArgumentList.Add("process.execPath");
Npm\NpmRunnerTests.cs (5)
55Assert.Empty(startInfo.ArgumentList); 93Assert.Equal(["view", "express", "version"], startInfo.ArgumentList); 108Assert.Equal(["view", "@playwright/cli@0.1.1", "version"], startInfo.ArgumentList); 124Assert.Equal(["view", "express", "version"], startInfo.ArgumentList); 136Assert.Empty(startInfo.ArgumentList);
Processes\ProcessTreeGracefulShutdownServiceTests.cs (4)
350startInfo.ArgumentList.Add("-c"); 351startInfo.ArgumentList.Add("trap '' TERM; exec sleep 60"); 366startInfo.ArgumentList.Add("-c"); 367startInfo.ArgumentList.Add("exec sleep 60");
Projects\AppHostServerSessionTests.cs (2)
621startInfo.ArgumentList.Add("--version"); 669startInfo.ArgumentList.Add(arg);
Projects\JavaAppHostToolchainResolverTests.cs (1)
642startInfo.ArgumentList.Add(argument);
Telemetry\InternalMicrosoftDetectorTests.cs (2)
979startInfo.ArgumentList.Add("platform"); 980startInfo.ArgumentList.Add("-s");
TestServices\TestProcessExecutionFactory.cs (1)
120var args = startInfo.ArgumentList.ToArray();
Utils\GitTestHelper.cs (1)
76startInfo.ArgumentList.Add(arg);
Aspire.Deployment.EndToEnd.Tests (8)
AzureSandboxesDeploymentTests.cs (8)
683startInfo.ArgumentList.Add("group"); 684startInfo.ArgumentList.Add("delete"); 685startInfo.ArgumentList.Add("--name"); 686startInfo.ArgumentList.Add(resourceGroupName); 687startInfo.ArgumentList.Add("--subscription"); 688startInfo.ArgumentList.Add(subscriptionId); 689startInfo.ArgumentList.Add("--yes"); 690startInfo.ArgumentList.Add("--no-wait");
Aspire.Hosting (2)
ApplicationModel\ProcessCommandSpec.cs (1)
39/// Arguments are passed using <see cref="System.Diagnostics.ProcessStartInfo.ArgumentList"/> so that each item is
Dcp\Process\ProcessUtil.cs (1)
61process.StartInfo.ArgumentList.Add(argument);
Aspire.Hosting.Azure (1)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
61process.StartInfo.ArgumentList.Add(argument);
Aspire.Hosting.Azure.Tests (6)
FoundryExtensionsTests.cs (6)
247process.StartInfo.ArgumentList.Add("/d"); 248process.StartInfo.ArgumentList.Add("/s"); 249process.StartInfo.ArgumentList.Add("/c"); 250process.StartInfo.ArgumentList.Add("echo startup failed>&2&exit /b 42"); 254process.StartInfo.ArgumentList.Add("-c"); 255process.StartInfo.ArgumentList.Add("printf 'startup failed\\n' >&2; exit 42");
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
3769startInfo.ArgumentList.Add(arg);
Aspire.Hosting.CodeGeneration.Python (2)
PythonLanguageSupport.cs (2)
270startInfo.ArgumentList.Add("--version"); 276startInfo.ArgumentList.Add(arg);
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
422process.StartInfo.ArgumentList.Add(testPath);
Aspire.Hosting.DevTunnels (2)
DevTunnelCli.cs (2)
249logger?.LogTrace("Invoking devtunnel CLI{ShellExecuteInfo}: {FileName} {Arguments}", useShellExecute ? " (UseShellExecute=true)" : "", process.StartInfo.FileName, EscapeArgList(process.StartInfo.ArgumentList)); 369psi.ArgumentList.Add(a);
Aspire.Hosting.Docker (1)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
61process.StartInfo.ArgumentList.Add(argument);
Aspire.Hosting.Dotnet (10)
DotnetProjectRunPropertiesResolver.cs (10)
50startInfo.ArgumentList.Add("msbuild"); 51startInfo.ArgumentList.Add(projectPath); 52startInfo.ArgumentList.Add("-nologo"); 53startInfo.ArgumentList.Add("-target:ComputeRunArguments"); 54startInfo.ArgumentList.Add("-getProperty:RunCommand,RunArguments,RunWorkingDirectory"); 55startInfo.ArgumentList.Add($"-getResultOutputFile:{resultOutputPath}"); 56startInfo.ArgumentList.Add("-v:q"); 59startInfo.ArgumentList.Add($"-property:Configuration={buildConfiguration}"); 68startInfo.ArgumentList.Add(responseFile.Argument); 70startInfo.ArgumentList.Add("-property:GenerateFullPaths=true");
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
463startInfo.ArgumentList.Add(argument.ToString()!);
Aspire.Hosting.Foundry (1)
FoundryLocalService.cs (1)
502startInfo.ArgumentList.Add(argument);
Aspire.Hosting.Kubernetes (1)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
61process.StartInfo.ArgumentList.Add(argument);
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
204psi.ArgumentList.Add(arg);
Aspire.Hosting.Radius (9)
Publishing\RadCredentialRegisterStep.cs (1)
275process.StartInfo.ArgumentList.Add(a);
Publishing\RadiusDeploymentPipelineStep.cs (7)
65process.StartInfo.ArgumentList.Add("version"); 66process.StartInfo.ArgumentList.Add("--cli"); 159process.StartInfo.ArgumentList.Add("deploy"); 160process.StartInfo.ArgumentList.Add(bicepPath); 165process.StartInfo.ArgumentList.Add("--parameters"); 166process.StartInfo.ArgumentList.Add("@" + parametersFilePath); 168logger.LogInformation("Running: rad {Args}", string.Join(' ', process.StartInfo.ArgumentList));
Publishing\SealedSecretApplyStep.cs (1)
902process.StartInfo.ArgumentList.Add(a);
Aspire.Hosting.Rust (1)
CargoMetadataReader.cs (1)
76startInfo.ArgumentList.Add(argument);
Aspire.Hosting.Rust.Tests (2)
RustDockerfileShellTests.cs (2)
209startInfo.ArgumentList.Add("-c"); 210startInfo.ArgumentList.Add(command);
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
1869startInfo.ArgumentList.Add(argument);
Aspire.Hosting.Tasks (1)
RunAspireCliCommand.cs (1)
166startInfo.ArgumentList.Add(argument);
Aspire.Managed.Tests (14)
TerminalHostSignalTests.cs (14)
210startInfo.ArgumentList.Add(typeof(ManifestCommand).Assembly.Location); 211startInfo.ArgumentList.Add("terminalhost"); 216startInfo.ArgumentList.Add("exec"); 217startInfo.ArgumentList.Add("--runtimeconfig"); 218startInfo.ArgumentList.Add(Path.ChangeExtension(testAssemblyPath, ".runtimeconfig.json")); 219startInfo.ArgumentList.Add("--depsfile"); 220startInfo.ArgumentList.Add(Path.ChangeExtension(testAssemblyPath, ".deps.json")); 221startInfo.ArgumentList.Add(hostAssemblyPath); 223startInfo.ArgumentList.Add("--producer-uds"); 224startInfo.ArgumentList.Add(producerPath); 225startInfo.ArgumentList.Add("--consumer-uds"); 226startInfo.ArgumentList.Add(consumerPath); 227startInfo.ArgumentList.Add("--control-uds"); 228startInfo.ArgumentList.Add(controlPath);
Aspire.Playground.Tests (4)
tests\Aspire.TestUtilities\TestcontainersPodmanConfiguration.cs (4)
245startInfo.ArgumentList.Add("machine"); 246startInfo.ArgumentList.Add("inspect"); 247startInfo.ArgumentList.Add("--format"); 248startInfo.ArgumentList.Add("{{.ConnectionInfo.PodmanSocket.Path}}");
Aspire.TestTools (2)
GitHubCli.cs (2)
258processStartInfo.ArgumentList.Add(argument); 308processStartInfo.ArgumentList.Add(argument);
Aspire.TestUtilities (4)
TestcontainersPodmanConfiguration.cs (4)
245startInfo.ArgumentList.Add("machine"); 246startInfo.ArgumentList.Add("inspect"); 247startInfo.ArgumentList.Add("--format"); 248startInfo.ArgumentList.Add("{{.ConnectionInfo.PodmanSocket.Path}}");
dotnet-getdocument (1)
Exe.cs (1)
31startInfo.ArgumentList.Add(argument);
Infrastructure.Tests (51)
CreateFailingTestIssue\CreateFailingTestIssueToolTests.cs (7)
632processStartInfo.ArgumentList.Add("run"); 633processStartInfo.ArgumentList.Add("--no-build"); 634processStartInfo.ArgumentList.Add("--project"); 635processStartInfo.ArgumentList.Add(_fixture.ToolProjectPath); 636processStartInfo.ArgumentList.Add("--"); 640processStartInfo.ArgumentList.Add(arg); 645_output.WriteLine($"Running: {processStartInfo.FileName} {string.Join(" ", processStartInfo.ArgumentList)}");
DownloadFailingJobLogs\DownloadFailingJobLogsToolTests.cs (4)
97processStartInfo.ArgumentList.Add("run"); 98processStartInfo.ArgumentList.Add(_fixture.ToolPath); 99processStartInfo.ArgumentList.Add("--"); 100processStartInfo.ArgumentList.Add(RunId.ToString());
ExtractTestPartitions\ExtractTestPartitionsTests.cs (7)
298psi.ArgumentList.Add("run"); 299psi.ArgumentList.Add("--no-build"); 300psi.ArgumentList.Add("--project"); 301psi.ArgumentList.Add(_fixture.ToolProjectPath); 305psi.ArgumentList.Add("--"); 308psi.ArgumentList.Add(arg); 312_output.WriteLine($"Running: {psi.FileName} {string.Join(" ", psi.ArgumentList)}");
GenerateTestSummary\GenerateTestSummaryToolTests.cs (7)
249processStartInfo.ArgumentList.Add("run"); 250processStartInfo.ArgumentList.Add("--no-build"); 251processStartInfo.ArgumentList.Add("--project"); 252processStartInfo.ArgumentList.Add(_fixture.ToolProjectPath); 253processStartInfo.ArgumentList.Add("--"); 254processStartInfo.ArgumentList.Add(trxPath); 258processStartInfo.ArgumentList.Add(extraArg);
Pipelines\NixCliPackageTests.cs (2)
224process.StartInfo.ArgumentList.Add(scriptPath); 228process.StartInfo.ArgumentList.Add(argument);
Shared\GitCli.cs (2)
33psi.ArgumentList.Add("--no-pager"); 36psi.ArgumentList.Add(arg);
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (2)
320process.StartInfo.ArgumentList.Add(scriptPath); 495process.StartInfo.ArgumentList.Add(arg);
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (10)
603startInfo.ArgumentList.Add(s_releaseNotesGeneratorPath); 604startInfo.ArgumentList.Add(commitsPath); 605startInfo.ArgumentList.Add(outputPath); 654process.StartInfo.ArgumentList.Add(scriptPath); 657process.StartInfo.ArgumentList.Add(arg); 730process.StartInfo.ArgumentList.Add("-n"); 765process.StartInfo.ArgumentList.Add(scriptPath); 768process.StartInfo.ArgumentList.Add(arg); 839process.StartInfo.ArgumentList.Add("-c"); 840process.StartInfo.ArgumentList.Add(command);
WorkflowScripts\NodeCommand.cs (2)
191psi.ArgumentList.Add(scriptPath); 194psi.ArgumentList.Add(arg);
WorkflowScripts\PrDocsCheckWorkflowTests.cs (8)
197startInfo.ArgumentList.Add("-m"); 198startInfo.ArgumentList.Add("unittest"); 199startInfo.ArgumentList.Add("discover"); 200startInfo.ArgumentList.Add("-s"); 201startInfo.ArgumentList.Add(".github/workflows/pr-docs-check"); 202startInfo.ArgumentList.Add("-p"); 203startInfo.ArgumentList.Add("test_*.py"); 204startInfo.ArgumentList.Add("-v");
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
358processStartInfo.ArgumentList.Add(argument);
Microsoft.DotNet.HotReload.Watch (1)
Process\ProcessRunner.cs (1)
166process.StartInfo.ArgumentList.Add(processSpec.Arguments[i]);
Microsoft.Extensions.DataIngestion.MarkItDown (2)
MarkItDownReader.cs (2)
65startInfo.ArgumentList.Add(source.FullName); 68startInfo.ArgumentList.Add("--keep-data-uris");
Microsoft.Extensions.Http.Resilience.Tests (1)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (1)
297processStartInfo.ArgumentList.Add(argument);
Microsoft.NET.Build.Containers (2)
LocalDaemons\ContainerRuntimeOperations.cs (2)
52loadInfo.ArgumentList.Add(argument); 197startInfo.ArgumentList.Add(argument);
SelectTests (3)
GraphAffectedProjects.cs (2)
537startInfo.ArgumentList.Add("--no-pager"); 540startInfo.ArgumentList.Add(argument);
Program.cs (1)
1353psi.ArgumentList.Add(arg);
System.Diagnostics.Process (3)
System\Diagnostics\ProcessStartInfo.cs (2)
454int argumentCount = ArgumentList.Count; 457if (ArgumentList[i] is null)
System\Diagnostics\ProcessUtils.Unix.cs (1)
326argvList.AddRange(psi.ArgumentList);