439 instantiations of ProcessStartInfo
AnalyzeCiFailure (2)
tools\Aspire.TestTools\GitHubApiClient.cs (1)
607StartInfo = new ProcessStartInfo("gh")
tools\Aspire.TestTools\ProcessRunner.cs (1)
29StartInfo = new ProcessStartInfo(fileName)
AnalyzeCiFailure.Tests (1)
tests\Infrastructure.Tests\ExecutableFile.cs (1)
35var startInfo = new ProcessStartInfo("/bin/sh")
aspire (40)
Acquisition\PeerInstallProbe.cs (1)
200var startInfo = new ProcessStartInfo
Agents\ClaudeCode\ClaudeCodeCliRunner.cs (1)
30var result = await Process.RunAndCaptureTextAsync(new ProcessStartInfo(executablePath, "--version")
Agents\Copilot\CopilotCliRunner.cs (1)
30var result = await Process.RunAndCaptureTextAsync(new ProcessStartInfo(executablePath, "--version")
Agents\OpenCode\OpenCodeCliRunner.cs (1)
30var result = await Process.RunAndCaptureTextAsync(new ProcessStartInfo(executablePath, "--version")
Agents\Playwright\PlaywrightCliRunner.cs (2)
27var result = await Process.RunAndCaptureTextAsync(new ProcessStartInfo(executablePath, "--version") 81var startInfo = new ProcessStartInfo(executablePath, ["install", "--skills"])
Agents\VsCode\VsCodeCliRunner.cs (1)
31var result = await Process.RunAndCaptureTextAsync(new ProcessStartInfo(executablePath, "--version")
Certificates\CertificateGeneration\MacOSCertificateManager.cs (6)
116var exitStatus = Process.Run(new ProcessStartInfo(MacOSTrustCertificateCommandLine, s_macOSTrustCertificateCommandLineArguments + tmpFile)); 177var checkTrustProcessStartInfo = new ProcessStartInfo( 226var processInfo = new ProcessStartInfo( 257var processInfo = new ProcessStartInfo( 304using var findCertificateProcess = Process.Start(new ProcessStartInfo( 359var processInfo = new ProcessStartInfo(
Certificates\CertificateGeneration\UnixCertificateManager.cs (3)
839var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 880var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}") 1062var startInfo = new ProcessStartInfo(CertificateHelpers.CertUtilCommand);
Certificates\CertificateHelpers.cs (1)
115var processInfo = new ProcessStartInfo("openssl", "version -d")
DotNet\DotNetSdkInstaller.cs (1)
119return new ProcessStartInfo
DotNet\ProcessExecutionFactory.cs (1)
133var startInfo = new ProcessStartInfo(fileName, arguments)
Git\GitCommandRunner.cs (1)
67var startInfo = new ProcessStartInfo("git", unattended
Git\GitRepository.cs (1)
129new("git", arguments)
Npm\NpmRunner.cs (1)
216var startInfo = new ProcessStartInfo
OpenCode\OpenCodeCliRunner.cs (1)
23var result = await Process.RunAndCaptureTextAsync(new ProcessStartInfo("opencode", "--version")
Projects\DotNetBasedAppHostServerProject.cs (1)
562var startInfo = new ProcessStartInfo(dotnetExe)
Projects\NativeAppHostServerProject.cs (2)
138var start = new ProcessStartInfo(managed) { WorkingDirectory = AppDirectoryPath, UseShellExecute = false }; 197var startInfo = new ProcessStartInfo(_executable) { WorkingDirectory = AppDirectoryPath, UseShellExecute = false };
Projects\PrebuiltAppHostServer.cs (1)
855var startInfo = new ProcessStartInfo(serverPath)
Projects\ProcessGuestLauncher.cs (1)
108var startInfo = new ProcessStartInfo
src\Shared\ContainerRuntimeProbe.cs (3)
131var startInfo = new ProcessStartInfo 265var startInfo = new ProcessStartInfo 361var startInfo = new ProcessStartInfo
src\Shared\ProcessSupervisor.cs (2)
35var startInfo = new ProcessStartInfo 113var startInfo = new ProcessStartInfo
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
1138var startInfo = new ProcessStartInfo
Telemetry\AgentTelemetryUploader.cs (1)
41var startInfo = new ProcessStartInfo(command, args)
Utils\ConfigurationHelper.cs (1)
552var start = new ProcessStartInfo(executable)
Utils\EnvironmentChecker\DeprecatedWorkloadCheck.cs (1)
36var processInfo = new ProcessStartInfo(DotNetSdkInstaller.ResolveDotNetPath(environment), "workload list")
Utils\EnvironmentChecker\GoAppHostToolingCheck.cs (2)
324var startInfo = new ProcessStartInfo(executablePath, ["version"]); 334return new ProcessStartInfo(executablePath, ["env", ToolchainVariable])
Utils\EnvironmentChecker\TypeScriptAppHostToolingCheck.cs (1)
253new ProcessStartInfo(executablePath, ["--version"])
aspire-managed (2)
Program.cs (1)
78var startInfo = new ProcessStartInfo
TerminalHostForwarder.cs (1)
25var startInfo = new ProcessStartInfo(Path.Combine(directory, BundleDiscovery.GetExecutableFileName(BundleDiscovery.TerminalHostExecutableName)))
aspire-tray (5)
FolderApplication.cs (1)
139return new(executable) { UseShellExecute = false, WorkingDirectory = directory };
src\Aspire.Tray\Common\CliProcess.cs (1)
17var startInfo = new ProcessStartInfo(cliPath)
src\Aspire.Tray\Common\TrayLaunchCommand.cs (2)
32var startInfo = new ProcessStartInfo(executable) 95var startInfo = new ProcessStartInfo(executable)
src\Aspire.Tray\Common\WindowsTrayStartupSettings.cs (1)
44var start = new ProcessStartInfo(bootstrap);
Aspire.Acquisition.Tests (3)
Scripts\Common\FileHelper.cs (1)
33var startInfo = new ProcessStartInfo("/bin/sh")
Scripts\FileHelperTests.cs (1)
37var startInfo = new ProcessStartInfo(path) { UseShellExecute = false, RedirectStandardOutput = true };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
210var psi = new ProcessStartInfo
Aspire.Cli.EndToEnd.Tests (7)
Helpers\CliE2ETestHelpers.cs (2)
489var startInfo = new ProcessStartInfo("docker") 541var startInfo = new ProcessStartInfo("docker")
Helpers\GitHttpServer.cs (1)
43var startInfo = new ProcessStartInfo("git")
Helpers\KubernetesDeployTestHelpersTests.cs (1)
81var startInfo = new ProcessStartInfo("bash") { RedirectStandardOutput = true, RedirectStandardError = true };
Helpers\LocalDeploymentTestHelpers.cs (1)
76StartInfo = new ProcessStartInfo("docker")
McpDocsE2ETests.cs (1)
415var startInfo = new ProcessStartInfo(fileName)
SettledNpmReleasesTests.cs (1)
74var startInfo = new ProcessStartInfo("bash", ["-c", command])
Aspire.Cli.Tests (52)
Agents\TelemetryHookScriptTests.cs (1)
646var psi = new ProcessStartInfo
Backchannel\AuxiliaryBackchannelMonitorTests.cs (1)
797var startInfo = new ProcessStartInfo
Backchannel\OrphanedAppHostCollectorTests.cs (2)
171? new ProcessStartInfo("ping", "-t localhost") { CreateNoWindow = true } 172: new ProcessStartInfo("tail", "-f /dev/null") { CreateNoWindow = true };
Commands\AppHostLauncherTests.cs (3)
622startedProcess = Process.Start(new ProcessStartInfo 632forkProcess = Process.Start(new ProcessStartInfo 1532return new ProcessStartInfo(fileName)
Commands\CompletionScriptTests.cs (1)
308var startInfo = new ProcessStartInfo(executable)
Configuration\ConfigSourceServiceGitTests.cs (2)
198var startInfo = new ProcessStartInfo 735var result = await System.Diagnostics.Process.RunAndCaptureTextAsync(new("git", arguments)
DotNet\DotNetCliRunnerTests.cs (2)
450var startInfo = new ProcessStartInfo(GetDotNetExecutablePath()) 2726var processStartInfo = new ProcessStartInfo(GetDotNetExecutablePath())
DotNet\ProcessExecutionFactoryEnvironmentTests.cs (5)
26var startInfo = new ProcessStartInfo("dotnet") 43var startInfo = new ProcessStartInfo(); 56var startInfo = new ProcessStartInfo(); 86var startInfo = new ProcessStartInfo { WorkingDirectory = directory.FullName }; 131var startInfo = new ProcessStartInfo("dotnet")
DotNet\ProcessExecutionTests.cs (3)
279var startInfo = new ProcessStartInfo("powershell.exe", ["-NoProfile", "-NonInteractive", "-EncodedCommand", Convert.ToBase64String(Encoding.Unicode.GetBytes(script))]) 325return new ProcessStartInfo("cmd.exe") 337return new ProcessStartInfo("/bin/bash")
DotNetSdkInstallerTests.cs (3)
37return new ProcessStartInfo(dotnetPath, arguments) 337var startInfo = new ProcessStartInfo("powershell.exe") 366return new ProcessStartInfo(shellFile)
Git\GitCommandRunnerTests.cs (3)
178var startInfo = new ProcessStartInfo(Path.Combine(workspace.Path, "missing-private-executable")) 196var startInfo = new ProcessStartInfo("missing-executable"); 434var startInfo = new ProcessStartInfo(OperatingSystem.IsWindows() ? "powershell.exe" : "/bin/sh")
Npm\AspireJsLauncherTests.cs (4)
305var result = RunProcess(new ProcessStartInfo 319var psi = new ProcessStartInfo 344var psi = new ProcessStartInfo 359var psi = new ProcessStartInfo
Processes\ProcessTreeGracefulShutdownServiceTests.cs (2)
419var startInfo = new ProcessStartInfo("/bin/sh") 435var startInfo = new ProcessStartInfo("/bin/sh")
Projects\AppHostServerProjectTests.cs (1)
122var startInfo = new ProcessStartInfo("dotnet")
Projects\AppHostServerSessionTests.cs (2)
702var startInfo = new ProcessStartInfo("dotnet") 751var startInfo = new ProcessStartInfo(fileName)
Projects\JavaAppHostToolchainResolverTests.cs (1)
633var startInfo = new ProcessStartInfo(command.Command)
Projects\PrebuiltAppHostServerTests.cs (3)
166var startInfo = new ProcessStartInfo("dotnet") 606var startInfo = new ProcessStartInfo("dotnet") 817var startInfo = new ProcessStartInfo("dotnet")
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1023var startInfo = new ProcessStartInfo("/usr/bin/app-sso")
tests\Shared\Processes\ProcessSupervisorTests.cs (1)
47var startInfo = new ProcessStartInfo { WorkingDirectory = directory.FullName };
tests\Shared\Processes\ProcessTestFixture.cs (2)
95var startInfo = new ProcessStartInfo("dotnet") 191StartInfo = new ProcessStartInfo("dotnet", arguments)
tests\Shared\TemporaryWorkspaceGitExtensions.cs (1)
35StartInfo = new ProcessStartInfo("git", arguments)
tests\Shared\TestProcesses.cs (2)
42? new ProcessStartInfo("ping", $"-n {seconds} 127.0.0.1") { CreateNoWindow = true } 43: new ProcessStartInfo("sleep", seconds) { CreateNoWindow = true };
Utils\ProcessCaptureRunnerTests.cs (6)
20? new ProcessStartInfo("cmd.exe", ["/d", "/c", "exit 0"]) 21: new ProcessStartInfo("/bin/sh", ["-c", "exit 0"]); 59? new ProcessStartInfo("cmd.exe", ["/d", "/c", "exit 0"]) 60: new ProcessStartInfo("/bin/sh", ["-c", "exit 0"]); 112? new ProcessStartInfo("cmd.exe", ["/d", "/c", "exit 0"]) 113: new ProcessStartInfo("/bin/sh", ["-c", "exit 0"]);
Aspire.Dashboard (6)
Model\VolumePathLauncher.cs (3)
80startInfo = new ProcessStartInfo("explorer.exe", isDirectory ? $"\"{fullPath}\"" : $"/select,\"{fullPath}\""); 83startInfo = new ProcessStartInfo("open") { ArgumentList = { "-R", fullPath } }; 92startInfo = new ProcessStartInfo("xdg-open") { ArgumentList = { folder } };
src\Shared\ProcessSupervisor.cs (2)
35var startInfo = new ProcessStartInfo 113var startInfo = new ProcessStartInfo
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
1138var startInfo = new ProcessStartInfo
Aspire.Dashboard.Playwright.Tests (1)
Integration\Playwright\NativeAotDashboardTests.cs (1)
39var startInfo = new ProcessStartInfo
Aspire.Deployment.EndToEnd.Tests (57)
AcaCompactNamingDeploymentTests.cs (1)
346StartInfo = new System.Diagnostics.ProcessStartInfo
AcaCompactNamingUpgradeDeploymentTests.cs (1)
402StartInfo = new System.Diagnostics.ProcessStartInfo
AcaCustomRegistryDeploymentTests.cs (1)
232StartInfo = new System.Diagnostics.ProcessStartInfo
AcaDeploymentErrorOutputTests.cs (1)
184StartInfo = new System.Diagnostics.ProcessStartInfo
AcaExistingRegistryDeploymentTests.cs (1)
268StartInfo = new System.Diagnostics.ProcessStartInfo
AcaExpressDeploymentTests.cs (1)
410StartInfo = new ProcessStartInfo("az")
AcaManagedRedisDeploymentTests.cs (1)
269StartInfo = new System.Diagnostics.ProcessStartInfo
AcrPurgeTaskDeploymentTests.cs (1)
265StartInfo = new System.Diagnostics.ProcessStartInfo
AksAzureKubernetesEnvironmentCertManagerDeploymentTests.cs (1)
421StartInfo = new System.Diagnostics.ProcessStartInfo
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs (1)
410StartInfo = new System.Diagnostics.ProcessStartInfo
AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs (1)
323StartInfo = new System.Diagnostics.ProcessStartInfo
AksBlazorRedisDeploymentTests.cs (1)
254StartInfo = new System.Diagnostics.ProcessStartInfo
AksCrossResourceGroupRegistryDeploymentTests.cs (1)
404StartInfo = new ProcessStartInfo("az")
AksMultipleNodePoolsDeploymentTests.cs (1)
278StartInfo = new System.Diagnostics.ProcessStartInfo
AksPersistentVolumeDeploymentTests.cs (1)
537StartInfo = new System.Diagnostics.ProcessStartInfo
AksStarterDeploymentTests.cs (1)
421StartInfo = new System.Diagnostics.ProcessStartInfo
AksStarterWithRedisHelmDeploymentTests.cs (1)
397StartInfo = new System.Diagnostics.ProcessStartInfo
AksVnetInfraDeploymentTests.cs (1)
208StartInfo = new System.Diagnostics.ProcessStartInfo
AksVnetWithAzureResourcesDeploymentTests.cs (1)
358StartInfo = new System.Diagnostics.ProcessStartInfo
AksWithAzureResourcesDeploymentTests.cs (1)
339StartInfo = new System.Diagnostics.ProcessStartInfo
AksWithHelmChartDeploymentTests.cs (1)
275StartInfo = new System.Diagnostics.ProcessStartInfo
ApiManagementDeploymentTests.cs (1)
188StartInfo = new System.Diagnostics.ProcessStartInfo
ApiManagementInfraDeploymentTests.cs (1)
179StartInfo = new System.Diagnostics.ProcessStartInfo
AppServicePythonDeploymentTests.cs (1)
217StartInfo = new System.Diagnostics.ProcessStartInfo
AppServiceReactDeploymentTests.cs (1)
489StartInfo = new System.Diagnostics.ProcessStartInfo
AppServiceStoragePrivateEndpointDeploymentTests.cs (1)
390StartInfo = new System.Diagnostics.ProcessStartInfo
AzureAppConfigDeploymentTests.cs (1)
184StartInfo = new System.Diagnostics.ProcessStartInfo
AzureConnectorNamespaceDeploymentTests.cs (1)
287StartInfo = new System.Diagnostics.ProcessStartInfo
AzureContainerRegistryDeploymentTests.cs (1)
167StartInfo = new System.Diagnostics.ProcessStartInfo
AzureEventHubsDeploymentTests.cs (1)
184StartInfo = new System.Diagnostics.ProcessStartInfo
AzureKeyVaultDeploymentTests.cs (1)
184StartInfo = new System.Diagnostics.ProcessStartInfo
AzureLogAnalyticsDeploymentTests.cs (1)
167StartInfo = new System.Diagnostics.ProcessStartInfo
AzureResourceScopeDeploymentTests.cs (1)
235StartInfo = new System.Diagnostics.ProcessStartInfo
AzureRoleAssignmentRunModeTests.cs (1)
246StartInfo = new System.Diagnostics.ProcessStartInfo
AzureSandboxesDeploymentTests.cs (1)
725var startInfo = new ProcessStartInfo
AzureServiceBusDeploymentTests.cs (1)
186StartInfo = new System.Diagnostics.ProcessStartInfo
AzureStorageDeploymentTests.cs (1)
392StartInfo = new System.Diagnostics.ProcessStartInfo
AzureStorageRunModeTests.cs (1)
229StartInfo = new System.Diagnostics.ProcessStartInfo
FoundryHostedAgentDeploymentTests.cs (1)
703StartInfo = new System.Diagnostics.ProcessStartInfo
FrontDoorDeploymentTests.cs (1)
236StartInfo = new System.Diagnostics.ProcessStartInfo
Helpers\DeploymentE2ETestHelpers.cs (1)
149StartInfo = new ProcessStartInfo
Helpers\DotnetProjectDeploymentHelpers.cs (1)
107StartInfo = new ProcessStartInfo("az")
KubernetesGatewayTlsDeploymentTests.cs (1)
469StartInfo = new System.Diagnostics.ProcessStartInfo
KubernetesHelmChartDeploymentTests.cs (1)
319StartInfo = new System.Diagnostics.ProcessStartInfo
NspStorageKeyVaultDeploymentTests.cs (1)
348StartInfo = new System.Diagnostics.ProcessStartInfo
PythonFastApiDeploymentTests.cs (1)
219StartInfo = new System.Diagnostics.ProcessStartInfo
RadiusStarterDeploymentTests.cs (1)
672StartInfo = new System.Diagnostics.ProcessStartInfo
TypeScriptAzureContainerAppJobDeploymentTests.cs (1)
176StartInfo = new System.Diagnostics.ProcessStartInfo
TypeScriptExpressDeploymentTests.cs (1)
206StartInfo = new System.Diagnostics.ProcessStartInfo
TypeScriptJavaScriptHostingDeploymentTests.cs (1)
209StartInfo = new System.Diagnostics.ProcessStartInfo
TypeScriptVnetSqlServerInfraDeploymentTests.cs (1)
274StartInfo = new System.Diagnostics.ProcessStartInfo
VnetKeyVaultConnectivityDeploymentTests.cs (1)
260StartInfo = new System.Diagnostics.ProcessStartInfo
VnetKeyVaultInfraDeploymentTests.cs (1)
195StartInfo = new System.Diagnostics.ProcessStartInfo
VnetSqlServerConnectivityDeploymentTests.cs (1)
327StartInfo = new System.Diagnostics.ProcessStartInfo
VnetSqlServerInfraDeploymentTests.cs (1)
196StartInfo = new System.Diagnostics.ProcessStartInfo
VnetStorageBlobConnectivityDeploymentTests.cs (1)
267StartInfo = new System.Diagnostics.ProcessStartInfo
VnetStorageBlobInfraDeploymentTests.cs (1)
197StartInfo = new System.Diagnostics.ProcessStartInfo
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
182AppHostProcess.StartInfo = new ProcessStartInfo(_buildEnv.DotNet, processArguments)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
210var psi = new ProcessStartInfo
Aspire.Hosting (4)
Dcp\Process\ProcessUtil.Capture.cs (1)
25StartInfo = new ProcessStartInfo(executablePath)
src\Shared\ContainerRuntimeProbe.cs (3)
131var startInfo = new ProcessStartInfo 265var startInfo = new ProcessStartInfo 361var startInfo = new ProcessStartInfo
Aspire.Hosting.Azure.Tests (3)
FoundryExtensionsTests.cs (3)
222? new ProcessStartInfo("cmd.exe", "/d /s /c \"ping -n 300 127.0.0.1 > nul\"") 223: new ProcessStartInfo("sleep", "300"); 238StartInfo = new ProcessStartInfo
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
299StartInfo = new ProcessStartInfo("gofmt")
Aspire.Hosting.CodeGeneration.Go.Tests (9)
AtsGoCodeGeneratorTests.cs (6)
107StartInfo = new ProcessStartInfo("go") 237process.StartInfo = new ProcessStartInfo("go") 1310var startInfo = new ProcessStartInfo("go") 1786var startInfo = new ProcessStartInfo("go") 2324process.StartInfo = new ProcessStartInfo("go") 2463process.StartInfo = new ProcessStartInfo("go")
AtsGoDerivedBuilderTests.cs (1)
418process.StartInfo = new ProcessStartInfo("go")
GoDocCommentTests.cs (1)
383process.StartInfo = new ProcessStartInfo(fileName)
GoScaffoldTests.cs (1)
258process.StartInfo = new ProcessStartInfo("gofmt")
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
4083var startInfo = new ProcessStartInfo
Aspire.Hosting.CodeGeneration.Python (1)
PythonLanguageSupport.cs (1)
259var startInfo = new ProcessStartInfo
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
772process.StartInfo = new ProcessStartInfo(pythonExecutable)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
113StartInfo = new ProcessStartInfo("cargo")
Aspire.Hosting.DevTunnels (1)
DevTunnelCli.cs (1)
360var psi = new ProcessStartInfo
Aspire.Hosting.Dotnet (1)
DotnetProjectRunPropertiesResolver.cs (1)
45var startInfo = new ProcessStartInfo("dotnet")
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
528var startInfo = new ProcessStartInfo(executableAnnotation.Command)
Aspire.Hosting.Foundry (1)
FoundryLocalService.cs (1)
493var startInfo = new ProcessStartInfo("foundry")
Aspire.Hosting.Java.Tests (4)
AddJavaAppPublishTests.cs (3)
55using var process = Process.Start(new ProcessStartInfo("sh") 1716using var process = Process.Start(new ProcessStartInfo 1880using var process = Process.Start(new ProcessStartInfo("/bin/sh")
AddJavaAppTests.cs (1)
826using var process = Process.Start(new ProcessStartInfo(app.Resource.Command)
Aspire.Hosting.JavaScript.Tests (4)
AddDenoAppTests.cs (1)
2705var processStartInfo = new ProcessStartInfo
AddJavaScriptAppTests.cs (3)
647var processStartInfo = new ProcessStartInfo 669using var cleanupProcess = Process.Start(new ProcessStartInfo 754var processStartInfo = new ProcessStartInfo
Aspire.Hosting.Maui (2)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
202var psi = new ProcessStartInfo("dotnet")
Utilities\ProjectFileReader.cs (1)
60var startInfo = new ProcessStartInfo
Aspire.Hosting.Native.Client (1)
NativeProviderHost.cs (1)
93var start = new ProcessStartInfo(executable) { RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false };
Aspire.Hosting.Native.Core.Tests (10)
NativeComposeCSharpDockerTests.cs (1)
81var start = new ProcessStartInfo(executable)
NativeComposeCSharpTests.cs (1)
139var start = new ProcessStartInfo(Environment.GetEnvironmentVariable("ASPIRE_NATIVE_SYMBOLIC_TEST_NODE") ?? "node")
NativeIpcSecurityTests.cs (1)
67var start = new ProcessStartInfo(Environment.UserName == "root" ? "runuser" : "sudo")
NativeProductCliTests.cs (1)
97var start = new ProcessStartInfo(cli)
NativeRedisAppHostTests.cs (2)
48var verify = new ProcessStartInfo("docker") 70var start = new ProcessStartInfo("docker") { RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false };
NativeRpcAuthoringTests.cs (1)
297var start = new ProcessStartInfo(node)
TestServices\NativeClientTestHost.cs (1)
51var start = new ProcessStartInfo(executable)
TestServices\NativeIntegrationAppHostRunner.cs (1)
12var start = new ProcessStartInfo(executable) { RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false };
TestServices\NativeProviderProcessTestHost.cs (1)
16var start = new ProcessStartInfo("/bin/sh")
Aspire.Hosting.Native.Server (1)
Dcp\DcpApiClient.cs (1)
62var start = new ProcessStartInfo(executable)
Aspire.Hosting.Python (1)
PythonVersionDetector.cs (1)
68var startInfo = new ProcessStartInfo
Aspire.Hosting.Python.Tests (2)
AddPythonAppTests.cs (2)
327var prepareVirtualEnvironmentStartInfo = new ProcessStartInfo() 367var installRequirementsStartInfo = new ProcessStartInfo()
Aspire.Hosting.Radius (6)
Publishing\RadCredentialRegisterStep.cs (1)
258process.StartInfo = new ProcessStartInfo
Publishing\RadiusDeploymentPipelineStep.cs (3)
329process.StartInfo = new ProcessStartInfo 458process.StartInfo = new ProcessStartInfo 555process.StartInfo = new ProcessStartInfo
Publishing\SealedSecretApplyStep.cs (2)
708StartInfo = new ProcessStartInfo 764StartInfo = new ProcessStartInfo
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
817var startInfo = new ProcessStartInfo(redis.Resource.Entrypoint!)
Aspire.Hosting.RemoteHost (3)
Language\IntegrationHostProcessLauncher.cs (1)
108var startInfo = new ProcessStartInfo
src\Shared\ProcessSupervisor.cs (2)
35var startInfo = new ProcessStartInfo 113var startInfo = new ProcessStartInfo
Aspire.Hosting.RemoteHost.Tests (7)
CapabilityDispatcherTests.cs (1)
86StartInfo = new ProcessStartInfo(pythonExecutable)
tests\Shared\Processes\ProcessSupervisorTests.cs (1)
47var startInfo = new ProcessStartInfo { WorkingDirectory = directory.FullName };
tests\Shared\Processes\ProcessTestFixture.cs (2)
95var startInfo = new ProcessStartInfo("dotnet") 191StartInfo = new ProcessStartInfo("dotnet", arguments)
TestServices\IntegrationHostProcessFixture.cs (3)
108StartInfo = new ProcessStartInfo("dotnet", arguments) 344var startInfo = useAppHostExecutable ? new ProcessStartInfo(executable) : new ProcessStartInfo("dotnet", [hostAssembly]);
Aspire.Hosting.Rust (1)
CargoMetadataReader.cs (1)
65var startInfo = new ProcessStartInfo("cargo")
Aspire.Hosting.Rust.Tests (1)
RustDockerfileShellTests.cs (1)
203var startInfo = new ProcessStartInfo("/bin/sh")
Aspire.Hosting.Sdk.Tests (2)
AppHostSdkTargetsTests.cs (2)
2610using var process = Process.Start(new ProcessStartInfo("dotnet", arguments) 2652var startInfo = new ProcessStartInfo(fileName)
Aspire.Hosting.Tasks (2)
ResolveAspireCliInvocation.cs (1)
150var startInfo = new ProcessStartInfo(dotnetPath, "--list-sdks")
RunAspireCliCommand.cs (1)
155var startInfo = new ProcessStartInfo
Aspire.Hosting.Tests (6)
MSBuildTests.cs (2)
407process.StartInfo = new ProcessStartInfo("dotnet", arguments) 1818process.StartInfo = new ProcessStartInfo("dotnet", "build --disable-build-servers")
Pipelines\PipelineOutputGitTestHelper.cs (2)
24StartInfo = new ProcessStartInfo("git", arguments) 54StartInfo = new ProcessStartInfo("cmd.exe", ["/c", "mklink", "/J", path, target])
tests\Shared\TestProcesses.cs (2)
42? new ProcessStartInfo("ping", $"-n {seconds} 127.0.0.1") { CreateNoWindow = true } 43: new ProcessStartInfo("sleep", seconds) { CreateNoWindow = true };
Aspire.Managed.Tests (1)
TerminalHostSignalTests.cs (1)
357var startInfo = new ProcessStartInfo("dotnet")
Aspire.Playground.Tests (1)
tests\Aspire.TestUtilities\TestcontainersPodmanConfiguration.cs (1)
236var startInfo = new ProcessStartInfo(KnownContainerRuntimes.Podman)
Aspire.Templates.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
182AppHostProcess.StartInfo = new ProcessStartInfo(_buildEnv.DotNet, processArguments)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
210var psi = new ProcessStartInfo
Aspire.TestTools (4)
GitHubApiClient.cs (1)
607StartInfo = new ProcessStartInfo("gh")
GitHubCli.cs (2)
248ProcessStartInfo processStartInfo = new() 298ProcessStartInfo processStartInfo = new()
ProcessRunner.cs (1)
29StartInfo = new ProcessStartInfo(fileName)
Aspire.TestUtilities (1)
TestcontainersPodmanConfiguration.cs (1)
236var startInfo = new ProcessStartInfo(KnownContainerRuntimes.Podman)
Aspire.Tray.Tests (11)
Helpers\TestNativeCommand.cs (1)
12var startInfo = new ProcessStartInfo(command)
MacTrayLauncherTests.cs (1)
223var start = new ProcessStartInfo("/bin/sh") { WorkingDirectory = workingDirectory };
src\Aspire.Tray\Common\CliProcess.cs (1)
17var startInfo = new ProcessStartInfo(cliPath)
src\Aspire.Tray\Common\TrayLaunchCommand.cs (2)
32var startInfo = new ProcessStartInfo(executable) 95var startInfo = new ProcessStartInfo(executable)
src\Aspire.Tray\Common\WindowsTrayStartupSettings.cs (1)
44var start = new ProcessStartInfo(bootstrap);
src\Aspire.Tray\Linux\LinuxFolderApplication.cs (1)
37var start = new ProcessStartInfo(Executable)
src\Aspire.Tray\Linux\LinuxTrayRuntime.cs (1)
132var info = new ProcessStartInfo(executable)
WindowsTrayLaunchCommandTests.cs (1)
73var start = new ProcessStartInfo(@"C:\Aspire Tray\aspire-tray.exe");
WindowsTrayLauncherTests.cs (2)
113var start = new ProcessStartInfo(Path.Combine(Environment.SystemDirectory, "ping.exe")) 141using var child = Process.Start(new ProcessStartInfo(Path.Combine(Environment.SystemDirectory, "cmd.exe"))
CreateLayout (1)
Program.cs (1)
485var psi = new ProcessStartInfo
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
dotnet-aot (2)
parent\dotnet\CommandFactory\CommandFactoryUsingResolver.cs (1)
103var psi = new ProcessStartInfo
parent\dotnet\Commands\Test\MTP\TestApplication.cs (1)
290var processStartInfo = new ProcessStartInfo
dotnet-dev-certs (12)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (6)
106var exitStatus = Process.Run(new ProcessStartInfo(MacOSTrustCertificateCommandLine, MacOSTrustCertificateCommandLineArguments + tmpFile)); 160var checkTrustProcessStartInfo = new ProcessStartInfo( 208var processInfo = new ProcessStartInfo( 239var processInfo = new ProcessStartInfo( 284using var findCertificateProcess = Process.Start(new ProcessStartInfo( 341var processInfo = new ProcessStartInfo(
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
690var startInfo = new ProcessStartInfo(PowerShellCommand, $"-NoProfile -NonInteractive -EncodedCommand {encodedCommand}") 710var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} {operation}") 738var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} -A -i {certificatePath} -t \"{usage},,\"") 761var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -D -n {nickname}") 933var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 975var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}")
dotnet-format (1)
Utilities\ProcessRunner.cs (1)
175var processStartInfo = new ProcessStartInfo(executable, arguments);
dotnet-getdocument (1)
Exe.cs (1)
23var startInfo = new ProcessStartInfo
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
221var startInfo = new ProcessStartInfo
dotnet-suggest (1)
SuggestionStore.cs (1)
30var processStartInfo = new ProcessStartInfo(
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (2)
60var psi = new ProcessStartInfo 144var psi = new ProcessStartInfo
dotnet-user-secrets (2)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (2)
60var psi = new ProcessStartInfo 144var psi = new ProcessStartInfo
GenerateTemplateManifest (1)
Program.cs (1)
117var startInfo = new ProcessStartInfo("dotnet")
Infrastructure.Common (1)
CertificateManager.cs (1)
301var psi = new ProcessStartInfo
Infrastructure.Tests (20)
CreateFailingTestIssue\CreateFailingTestIssueFixture.cs (1)
32ProcessStartInfo processStartInfo = new()
CreateFailingTestIssue\CreateFailingTestIssueToolTests.cs (1)
622ProcessStartInfo processStartInfo = new()
DownloadFailingJobLogs\DownloadFailingJobLogsToolTests.cs (1)
88ProcessStartInfo processStartInfo = new()
ExecutableFile.cs (1)
35var startInfo = new ProcessStartInfo("/bin/sh")
ExecutableFileTests.cs (2)
28using var process = Process.Start(new ProcessStartInfo("/bin/sh", ["-c", "exit 0"]) { UseShellExecute = false })!; 43using var process = Process.Start(new ProcessStartInfo(path) { UseShellExecute = false })!;
ExtractTestPartitions\ExtractTestPartitionsFixture.cs (1)
22var psi = new ProcessStartInfo
ExtractTestPartitions\ExtractTestPartitionsTests.cs (1)
289var psi = new ProcessStartInfo
GenerateTestSummary\GenerateTestSummaryFixture.cs (1)
25ProcessStartInfo processStartInfo = new()
GenerateTestSummary\GenerateTestSummaryToolTests.cs (1)
241ProcessStartInfo processStartInfo = new()
Hex1bNativePublishingTests.cs (1)
485var startInfo = new ProcessStartInfo
PowerShellScripts\PowerShellCommand.cs (1)
202var psi = new ProcessStartInfo
Shared\GitCli.cs (1)
24var psi = new ProcessStartInfo("git")
TestTriggerMap\TestTriggerMapTests.cs (1)
533var startInfo = new System.Diagnostics.ProcessStartInfo("git")
tools\GenerateCITimeline\GitHubApi.cs (1)
11var psi = new ProcessStartInfo("gh", ["api", endpoint, "--paginate"])
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (3)
352var startInfo = new ProcessStartInfo(pythonExecutable) 402process.StartInfo = new ProcessStartInfo(pythonExecutable) 435process.StartInfo = new ProcessStartInfo("bash")
WorkflowScripts\NodeCommand.cs (1)
182ProcessStartInfo psi = new()
WorkflowScripts\PrDocsCheckWorkflowTests.cs (1)
24var startInfo = new ProcessStartInfo(python)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
33var processStartInfo = new ProcessStartInfo(FileName, Arguments)
Microsoft.Arcade.Common (1)
Command.cs (1)
37var psi = new ProcessStartInfo()
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerInstance.cs (1)
285var startInfo = new ProcessStartInfo(executable, args)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
65var processStartInfo = new ProcessStartInfo
Microsoft.AspNetCore.DeveloperCertificates.XPlat (12)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (6)
106var exitStatus = Process.Run(new ProcessStartInfo(MacOSTrustCertificateCommandLine, MacOSTrustCertificateCommandLineArguments + tmpFile)); 160var checkTrustProcessStartInfo = new ProcessStartInfo( 208var processInfo = new ProcessStartInfo( 239var processInfo = new ProcessStartInfo( 284using var findCertificateProcess = Process.Start(new ProcessStartInfo( 341var processInfo = new ProcessStartInfo(
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
690var startInfo = new ProcessStartInfo(PowerShellCommand, $"-NoProfile -NonInteractive -EncodedCommand {encodedCommand}") 710var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} {operation}") 738var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} -A -i {certificatePath} -t \"{usage},,\"") 761var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -D -n {nickname}") 933var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 975var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}")
Microsoft.AspNetCore.Server.IntegrationTesting (7)
ApplicationPublisher.cs (1)
61var startInfo = new ProcessStartInfo
Deployers\NginxDeployer.cs (2)
157var startInfo = new ProcessStartInfo 199var startInfo = new ProcessStartInfo
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
236var startInfo = new ProcessStartInfo
Deployers\SelfHostDeployer.cs (1)
121var startInfo = new ProcessStartInfo
src\aspnetcore\src\Shared\Process\ProcessEx.cs (1)
113var startInfo = new ProcessStartInfo(command, args)
src\aspnetcore\src\Shared\Process\ProcessExtensions.cs (1)
97var startInfo = new ProcessStartInfo
Microsoft.AspNetCore.Server.Kestrel.Core (12)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (6)
106var exitStatus = Process.Run(new ProcessStartInfo(MacOSTrustCertificateCommandLine, MacOSTrustCertificateCommandLineArguments + tmpFile)); 160var checkTrustProcessStartInfo = new ProcessStartInfo( 208var processInfo = new ProcessStartInfo( 239var processInfo = new ProcessStartInfo( 284using var findCertificateProcess = Process.Start(new ProcessStartInfo( 341var processInfo = new ProcessStartInfo(
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
690var startInfo = new ProcessStartInfo(PowerShellCommand, $"-NoProfile -NonInteractive -EncodedCommand {encodedCommand}") 710var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} {operation}") 738var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} -A -i {certificatePath} -t \"{usage},,\"") 761var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -D -n {nickname}") 933var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 975var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}")
Microsoft.AspNetCore.SpaProxy (3)
SpaProxyLaunchManager.cs (3)
186var info = new ProcessStartInfo(command, arguments) 238var stopScriptInfo = new ProcessStartInfo( 302var stopScriptInfo = new ProcessStartInfo("/bin/bash", scriptPath)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Npm\NodeScriptRunner.cs (1)
42var processStartInfo = new ProcessStartInfo(exeToRun)
Microsoft.Build (3)
BackEnd\BuildManager\CoordinatorClient.cs (2)
529return new ProcessStartInfo 541return new ProcessStartInfo
BackEnd\Components\Communications\NodeLauncher.cs (1)
122var processStartInfo = new ProcessStartInfo
Microsoft.Build.Framework (2)
MultiProcessTaskEnvironmentDriver.cs (1)
79return new ProcessStartInfo();
MultiThreadedTaskEnvironmentDriver.cs (1)
227var startInfo = new ProcessStartInfo
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
Microsoft.Build.Tasks.Core (1)
ManifestUtil\SecurityUtil.cs (1)
807var startInfo = new ProcessStartInfo(
Microsoft.CodeAnalysis.BuildClient.Package (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProcessManager.cs (3)
254var processStartInfo = new ProcessStartInfo() 296var processStartInfo = new ProcessStartInfo() 308var processStartInfo = new ProcessStartInfo
Microsoft.DotNet.Cli.InternalMicrosoft (1)
Internal\InternalMicrosoftDetectionContext.cs (1)
199StartInfo = new ProcessStartInfo
Microsoft.DotNet.Cli.Utils (2)
BuiltInCommand.cs (1)
72ProcessStartInfo startInfo = new(new Muxer().MuxerPath, $"{CommandName} {CommandArgs}");
ForwardingAppImplementation.cs (1)
74var processInfo = new ProcessStartInfo
Microsoft.DotNet.MacOsPkg.Core (1)
ExecuteHelper.cs (1)
37new ProcessStartInfo
Microsoft.DotNet.StrongName (2)
Signing.cs (1)
111var process = Process.Start(new ProcessStartInfo()
Verification.cs (1)
152var process = Process.Start(new ProcessStartInfo()
Microsoft.Extensions.AI.Evaluation.Console (1)
Commands\ReportCommand.cs (1)
152new ProcessStartInfo
Microsoft.Extensions.AI.Templates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
33var processStartInfo = new ProcessStartInfo(FileName, Arguments)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownReader.cs (1)
49ProcessStartInfo startInfo = new()
Microsoft.Extensions.DataIngestion.Tests (1)
Readers\MarkItDownConditionHelper.cs (1)
20ProcessStartInfo startInfo = new()
Microsoft.Extensions.Http.Resilience.Tests (1)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (1)
282var processStartInfo = new ProcessStartInfo(GetDotNetPath())
Microsoft.NET.Build.Containers (7)
LocalDaemons\ContainerRuntimeOperations.cs (3)
45ProcessStartInfo loadInfo = new(commandPath) 177ProcessStartInfo startInfo = new(commandPath, arguments) 190ProcessStartInfo startInfo = new(commandPath)
LocalDaemons\ContainerRuntimes.cs (1)
143StartInfo = new ProcessStartInfo(dockerPath, "info --format=\"{{json .}}\"")
LocalDaemons\DockerCli.cs (3)
105ProcessStartInfo loadInfo = new(commandPath, $"load") 205StartInfo = new ProcessStartInfo(dockerPath, "info --format=\"{{json .}}\"") 662ProcessStartInfo psi = new(command, "version")
Microsoft.NET.HostModel (1)
HostModelUtils.cs (1)
85var psi = new ProcessStartInfo()
Microsoft.NET.ProjectData (1)
Donor\ProjectDataDonorIndex.Git.cs (1)
119 StartInfo = new ProcessStartInfo
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\GenerateEFSQLScripts.cs (1)
88ProcessStartInfo psi = new("dotnet", $@"ef migrations script --no-build --idempotent --configuration {Configuration} --output ""{sqlFileFullPath}"" --context {dbContextName} {EFMigrationsAdditionalArgs}")
Microsoft.NET.Sdk.Razor.Tasks (1)
parent\Tool\ServerProtocol\ServerConnection.cs (1)
387var startInfo = new ProcessStartInfo()
Microsoft.TemplateEngine.Cli (2)
PostActionProcessors\ChmodPostActionProcessor.cs (1)
42Process? commandResult = System.Diagnostics.Process.Start(new ProcessStartInfo
PostActionProcessors\ProcessStartPostActionProcessor.cs (1)
53Process? commandResult = System.Diagnostics.Process.Start(new ProcessStartInfo
Microsoft.TestPlatform.Build (1)
Tasks\VSTestTask.cs (1)
72var processInfo = new ProcessStartInfo
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
VsTestConsoleProcessManager.cs (1)
134var info = new ProcessStartInfo(consoleRunnerPath, arguments)
NativeIntegrations.DockerCompose (1)
DockerCommand.cs (1)
22StartInfo = new(executable)
NuGet.Build.Tasks (1)
StaticGraphRestoreTaskBase.cs (1)
122process.StartInfo = new ProcessStartInfo
NuGet.CommandLine.XPlat (1)
Commands\Package\Update\PackageUpdateIO.cs (1)
112ProcessStartInfo processStartInfo = new ProcessStartInfo(dotnetPath)
NuGet.Common (1)
Migrations\Migration1.cs (1)
193ProcessStartInfo startInfo = new ProcessStartInfo(command)
NuGet.Credentials (1)
PluginCredentialProvider.cs (1)
193var startInfo = new ProcessStartInfo
NuGet.Protocol (2)
Plugins\PluginFactory.cs (2)
180startInfo = new ProcessStartInfo 198startInfo = new ProcessStartInfo(pluginFile.Path)
Pipelines.AppHost (4)
AppHost.cs (4)
72var getUserProcess = System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo 107var getSubscriptionProcess = System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo 142var getResourceGroupProcess = System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo 180var assignRoleProcess = System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
80var publishProcess = Process.Start(new ProcessStartInfo
RepoTasks (12)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (6)
106var exitStatus = Process.Run(new ProcessStartInfo(MacOSTrustCertificateCommandLine, MacOSTrustCertificateCommandLineArguments + tmpFile)); 160var checkTrustProcessStartInfo = new ProcessStartInfo( 208var processInfo = new ProcessStartInfo( 239var processInfo = new ProcessStartInfo( 284using var findCertificateProcess = Process.Start(new ProcessStartInfo( 341var processInfo = new ProcessStartInfo(
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
690var startInfo = new ProcessStartInfo(PowerShellCommand, $"-NoProfile -NonInteractive -EncodedCommand {encodedCommand}") 710var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} {operation}") 738var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} -A -i {certificatePath} -t \"{usage},,\"") 761var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -D -n {nickname}") 933var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 975var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}")
rzc (1)
ServerProtocol\ServerConnection.cs (1)
387var startInfo = new ProcessStartInfo()
SelectTests (2)
GraphAffectedProjects.cs (1)
553var startInfo = new ProcessStartInfo("git")
Program.cs (1)
1329var psi = new ProcessStartInfo(fileName)
SuperFileCheck (1)
Program.cs (1)
103var startInfo = new ProcessStartInfo();
System.CodeDom (1)
System\CodeDom\Compiler\Executor.cs (1)
60var psi = new ProcessStartInfo(cmd)
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceCounterLib.cs (1)
1196ProcessStartInfo processStartInfo = new ProcessStartInfo();
System.Diagnostics.Process (6)
System\Diagnostics\Process.cs (4)
565_startInfo = new ProcessStartInfo(); 1519return Start(new ProcessStartInfo(fileName))!; 1538return Start(new ProcessStartInfo(fileName, arguments))!; 1549return Start(new ProcessStartInfo(fileName, arguments))!;
System\Diagnostics\Process.Scenarios.cs (2)
365return arguments is not null ? new ProcessStartInfo(fileName, arguments) : new ProcessStartInfo(fileName);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
43ProcessStartInfo psi = new ProcessStartInfo(pingExecutable, processArgs);
System.Windows.Forms (1)
System\Windows\Forms\Application.cs (1)
1466ProcessStartInfo currentStartInfo = new()
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
689 references to ProcessStartInfo
AnalyzeCiFailure.Tests (3)
tests\Infrastructure.Tests\ExecutableFile.cs (1)
35var startInfo = new ProcessStartInfo("/bin/sh")
tests\Infrastructure.Tests\Shared\CommandResult.cs (2)
11public ProcessStartInfo StartInfo { get; } 15public CommandResult(ProcessStartInfo startInfo, int exitCode, string output)
aspire (101)
Acquisition\PeerInstallProbe.cs (1)
200var startInfo = new ProcessStartInfo
Agents\Playwright\PlaywrightCliRunner.cs (1)
81var startInfo = new ProcessStartInfo(executablePath, ["install", "--skills"])
Bundles\BundleLayoutLease.cs (1)
42public void AddEnvironment(ProcessStartInfo startInfo)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (4)
177var checkTrustProcessStartInfo = new ProcessStartInfo( 226var processInfo = new ProcessStartInfo( 257var processInfo = new ProcessStartInfo( 359var processInfo = new ProcessStartInfo(
Certificates\CertificateGeneration\UnixCertificateManager.cs (13)
47private readonly Action<ProcessStartInfo> _configureCertUtilStartInfo = static _ => { }; 59Action<ProcessStartInfo> configureCertUtilStartInfo) 744private bool RunCertUtil(ProcessStartInfo startInfo, CancellationToken cancellationToken = default) 839var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 880var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}") 990internal ProcessStartInfo CreateCheckProcessStartInfo(string nickname) 992var startInfo = CreateProcessStartInfo(nickname); 1001internal ProcessStartInfo CreateAddProcessStartInfo(string certificatePath, string nickname) 1003var startInfo = CreateProcessStartInfo(nickname); 1013internal ProcessStartInfo CreateRemoveProcessStartInfo(string nickname) 1015var startInfo = CreateProcessStartInfo(nickname); 1060private ProcessStartInfo CreateProcessStartInfo(string nickname) 1062var startInfo = new ProcessStartInfo(CertificateHelpers.CertUtilCommand);
Certificates\CertificateHelpers.cs (1)
115var processInfo = new ProcessStartInfo("openssl", "version -d")
DotNet\DotNetCliRunner.cs (3)
121public Func<ProcessStartInfo, string?, TimeSpan, ProcessStartInfo> CreateSupervisorStartInfo { get; set; } = ProcessSupervisor.CreateStartInfo; 128/// On Unix the child starts in a new session (<see cref="System.Diagnostics.ProcessStartInfo.StartDetached"/>).
DotNet\DotNetSdkInstaller.cs (3)
16private readonly Func<string, string, ProcessStartInfo> _createProcessStartInfo = CreateProcessStartInfo; 18internal DotNetSdkInstaller(IConfiguration configuration, IEnvironment environment, Func<string, string, ProcessStartInfo> createProcessStartInfo) 117private static ProcessStartInfo CreateProcessStartInfo(string dotnetPath, string arguments)
DotNet\IProcessExecutionFactory.cs (3)
28/// Creates a configured process execution from a fully-populated <see cref="System.Diagnostics.ProcessStartInfo"/>. 33/// <see cref="System.Diagnostics.ProcessStartInfo"/> (including explicit env suppression). 39System.Diagnostics.ProcessStartInfo startInfo,
DotNet\ProcessExecution.cs (1)
16ProcessStartInfo startInfo,
DotNet\ProcessExecutionFactory.cs (6)
71var startInfo = CreateProcessStartInfo(fileName, args, workingDirectory.FullName, options); 88public IProcessExecution CreateExecution(ProcessStartInfo startInfo, ProcessInvocationOptions options) 99var childStartInfo = CreateProcessStartInfo(startInfo.FileName, startInfo.ArgumentList, startInfo.WorkingDirectory, options); 128/// Maps the launch options onto a <see cref="ProcessStartInfo"/>. Standard handles are assigned by 131internal static ProcessStartInfo CreateProcessStartInfo(string fileName, IEnumerable<string> arguments, string workingDirectory, ProcessInvocationOptions options) 133var startInfo = new ProcessStartInfo(fileName, arguments)
Git\GitCommandRunner.cs (14)
44var startInfo = CreateStartInfo(workingDirectory.FullName, arguments, mode); 58internal ProcessStartInfo CreateStartInfo(string directory, string[] arguments, GitCommandMode mode) 67var startInfo = new ProcessStartInfo("git", unattended 107private ProcessStartInfo CreateUnattendedQuery(ProcessStartInfo source, string[] arguments) 109var query = CreateStartInfo(source.WorkingDirectory, arguments, GitCommandMode.Unattended); 120internal async Task ConfigureUnattendedSshAsync(ProcessStartInfo startInfo, string[] arguments, CancellationToken cancellationToken) 131var urlQuery = CreateUnattendedQuery(startInfo, 142var configQuery = CreateUnattendedQuery(startInfo, 210private async Task<string?> GetOpenSshExecutableAsync(ProcessStartInfo gitStartInfo, string executable, CancellationToken cancellationToken) 238var pathQuery = CreateUnattendedQuery(gitStartInfo, 278var probe = CreateUnattendedQuery(gitStartInfo, ["version"]); 286internal async Task<bool> VerifyOpenSshAsync(ProcessStartInfo probe, CancellationToken cancellationToken) 351internal async Task<string> RunProcessAsync(ProcessStartInfo startInfo, bool captureCancellationOutput, GitCommandMode mode, CancellationToken cancellationToken)
Git\GitRepository.cs (4)
27var startInfo = CreateGitStartInfo(executionContext.WorkingDirectory, ["rev-parse", "--show-toplevel"]); 84var startInfo = CreateGitStartInfo(searchRoot, ["ls-files", "--cached", "--others", "--exclude-standard", "-z"]); 128private static ProcessStartInfo CreateGitStartInfo(DirectoryInfo workingDirectory, string[] arguments) => 137private async Task<ProcessTextOutput> RunGitAsync(ProcessStartInfo startInfo, ProfilingTelemetry.ActivityScope activity, CancellationToken cancellationToken)
Npm\NpmRunner.cs (4)
204/// Creates a <see cref="ProcessStartInfo"/> configured to run an npm command. 214internal static ProcessStartInfo CreateNpmProcessStartInfo(string npmPath, string[] args, string workingDirectory, IEnvironment environment, SafeFileHandle? standardInput) 216var startInfo = new ProcessStartInfo 279var startInfo = CreateNpmProcessStartInfo(npmPath, args, workingDirectory, environment, nullInput);
Processes\OrphanDetectionEnvironment.cs (1)
44/// <see cref="System.Diagnostics.ProcessStartInfo.Environment"/> so it can be stamped directly.
Projects\DotNetBasedAppHostServerProject.cs (1)
562var startInfo = new ProcessStartInfo(dotnetExe)
Projects\GuestAppHostProject.cs (1)
1112var startInfo = NpmRunner.CreateNpmProcessStartInfo(npmPath, ["install"], hostDir, _environment, null);
Projects\IAppHostServerProject.cs (2)
50/// (<see cref="System.Diagnostics.ProcessStartInfo.CreateNoWindow"/>) so a graceful shutdown can 56/// <see cref="System.Diagnostics.ProcessStartInfo.KillOnParentExit"/>.
Projects\IGuestProcessLauncher.cs (1)
19/// (<see cref="System.Diagnostics.ProcessStartInfo.CreateNoWindow"/>). Required on Windows so the graceful CTRL+C signal (issued by
Projects\NativeAppHostServerProject.cs (2)
138var start = new ProcessStartInfo(managed) { WorkingDirectory = AppDirectoryPath, UseShellExecute = false }; 197var startInfo = new ProcessStartInfo(_executable) { WorkingDirectory = AppDirectoryPath, UseShellExecute = false };
Projects\PrebuiltAppHostServer.cs (3)
793var startInfo = CreateStartInfo(hostPid, environmentVariables, additionalArgs, debug); 846internal ProcessStartInfo CreateStartInfo( 855var startInfo = new ProcessStartInfo(serverPath)
Projects\ProcessGuestLauncher.cs (1)
108var startInfo = new ProcessStartInfo
src\Shared\ChildProcess.cs (3)
29private readonly ProcessStartInfo _startInfo; 45ProcessStartInfo startInfo, 121var startInfo = _startInfo;
src\Shared\ChildProcessOptions.cs (2)
29public Func<ProcessStartInfo, string?, TimeSpan, ProcessStartInfo> CreateSupervisorStartInfo { get; init; } = ProcessSupervisor.CreateStartInfo;
src\Shared\ContainerRuntimeProbe.cs (3)
131var startInfo = new ProcessStartInfo 265var startInfo = new ProcessStartInfo 361var startInfo = new ProcessStartInfo
src\Shared\ProcessStartInfoHelper.cs (2)
19public static void SetCommand(ProcessStartInfo startInfo, string command, IEnumerable<string> args, bool isWindows) 69private static void SetEnvironmentVariable(ProcessStartInfo startInfo, string name, string value)
src\Shared\ProcessSupervisor.cs (6)
25internal static ProcessStartInfo CreateStartInfo(ProcessStartInfo runtimeStartInfo, string? exitCodePath = null) 28internal static ProcessStartInfo CreateStartInfo(ProcessStartInfo runtimeStartInfo, string? exitCodePath, TimeSpan terminationTimeout) 35var startInfo = new ProcessStartInfo 113var startInfo = new ProcessStartInfo
src\Shared\Telemetry\InternalMicrosoftDetector.cs (4)
54private readonly Func<ProcessStartInfo, Action<string>, Action<string>, IChildProcess> _createProcess; 67Func<ProcessStartInfo, Action<string>, Action<string>, IChildProcess> createProcess, bool isCIEnvironment) 89Func<ProcessStartInfo, Action<string>, Action<string>, IChildProcess> createProcess, 1138var startInfo = new ProcessStartInfo
Telemetry\AgentTelemetryUploader.cs (1)
41var startInfo = new ProcessStartInfo(command, args)
Utils\ConfigurationHelper.cs (1)
552var start = new ProcessStartInfo(executable)
Utils\EnvironmentChecker\DeprecatedWorkloadCheck.cs (3)
22private readonly Func<ProcessStartInfo, CancellationToken, Task<ProcessTextOutput>> _runProcess = Process.RunAndCaptureTextAsync; 24internal DeprecatedWorkloadCheck(ILogger<DeprecatedWorkloadCheck> logger, IEnvironment environment, Func<ProcessStartInfo, CancellationToken, Task<ProcessTextOutput>> runProcess) 36var processInfo = new ProcessStartInfo(DotNetSdkInstaller.ResolveDotNetPath(environment), "workload list")
Utils\EnvironmentChecker\GoAppHostToolingCheck.cs (4)
322internal static ProcessStartInfo CreateVersionProbeStartInfo(string executablePath) 324var startInfo = new ProcessStartInfo(executablePath, ["version"]); 332internal static ProcessStartInfo CreateToolchainProbeStartInfo(string executablePath, string workingDirectory) 347ProcessStartInfo startInfo,
Utils\ProcessCaptureRunner.cs (1)
36ProcessStartInfo startInfo,
aspire-managed (6)
Program.cs (3)
34var startInfo = CreateStartInfo(AppContext.BaseDirectory, args); 73static ProcessStartInfo CreateStartInfo(string managedDirectory, string[] args) 78var startInfo = new ProcessStartInfo
TerminalHostForwarder.cs (3)
22internal static ProcessStartInfo CreateStartInfo(string managedDirectory, string[] args) 25var startInfo = new ProcessStartInfo(Path.Combine(directory, BundleDiscovery.GetExecutableFileName(BundleDiscovery.TerminalHostExecutableName))) 45var startInfo = CreateStartInfo(AppContext.BaseDirectory, args);
aspire-tray (21)
FolderApplication.cs (4)
88internal ProcessStartInfo CreateFolderStartInfo(string directory) 95var start = CreateStartInfo(Executable, directory); 133private static ProcessStartInfo CreateStartInfo(string executable, string directory) 142private static void Start(ProcessStartInfo start)
NativeSmokeHarness.cs (1)
105var launch = terminal.CreateFolderStartInfo(folder);
src\Aspire.Tray\Common\CliAppHostClient.cs (1)
100internal static ProcessStartInfo CreateWatchStartInfo(string executable)
src\Aspire.Tray\Common\CliAppHostCommands.cs (4)
17internal static ProcessStartInfo CreateStopStartInfo(string executable, AppHostId target) 37internal static ProcessStartInfo CreateStartStartInfo(string executable, string appHostPath) 40var startInfo = CliProcess.CreateStartInfo(executable, "start", "--apphost", path, "--non-interactive", "--nologo"); 48ProcessStartInfo startInfo;
src\Aspire.Tray\Common\CliProcess.cs (2)
10public static ProcessStartInfo CreateStartInfo(string cliPath, params string[] arguments) 17var startInfo = new ProcessStartInfo(cliPath)
src\Aspire.Tray\Common\TrayLaunchCommand.cs (6)
11public static ProcessStartInfo CreateWindowsStartInfo(TrayOptions options) 32var startInfo = new ProcessStartInfo(executable) 47internal static string BuildWindowsCommandLine(ProcessStartInfo startInfo) 84public static ProcessStartInfo CreateStartInfo(TrayOptions options) 95var startInfo = new ProcessStartInfo(executable) 112private static void AddStartupCli(ProcessStartInfo startInfo, string? startupCli)
src\Aspire.Tray\Common\WindowsLoginBootstrap.cs (1)
13internal static ProcessStartInfo CreateStartInfo(string cliPath)
src\Aspire.Tray\Common\WindowsTrayStartupSettings.cs (1)
44var start = new ProcessStartInfo(bootstrap);
WindowsTrayLauncher.cs (1)
36var startInfo = TrayLaunchCommand.CreateWindowsStartInfo(options);
Aspire.Acquisition.Tests (7)
Scripts\Common\FileHelper.cs (1)
33var startInfo = new ProcessStartInfo("/bin/sh")
Scripts\FileHelperTests.cs (1)
37var startInfo = new ProcessStartInfo(path) { UseShellExecute = false, RedirectStandardOutput = true };
tests\Shared\TemplatesTesting\CommandResult.cs (2)
11public struct CommandResult(ProcessStartInfo startInfo, int exitCode, string output) 15public ProcessStartInfo StartInfo { get; } = startInfo;
tests\Shared\TemplatesTesting\ToolCommand.cs (3)
210var psi = new ProcessStartInfo 252private void AddEnvironmentVariablesTo(ProcessStartInfo psi) 261private void AddWorkingDirectoryTo(ProcessStartInfo psi)
Aspire.Cli.EndToEnd.Tests (7)
Helpers\CliE2ETestHelpers.cs (3)
489var startInfo = new ProcessStartInfo("docker") 541var startInfo = new ProcessStartInfo("docker") 637private static void AddUbuntuAptMirrorBuildArg(ProcessStartInfo startInfo)
Helpers\GitHttpServer.cs (1)
43var startInfo = new ProcessStartInfo("git")
Helpers\KubernetesDeployTestHelpersTests.cs (1)
81var startInfo = new ProcessStartInfo("bash") { RedirectStandardOutput = true, RedirectStandardError = true };
McpDocsE2ETests.cs (1)
415var startInfo = new ProcessStartInfo(fileName)
SettledNpmReleasesTests.cs (1)
74var startInfo = new ProcessStartInfo("bash", ["-c", command])
Aspire.Cli.Tests (112)
Agents\TelemetryHookScriptTests.cs (1)
646var psi = new ProcessStartInfo
Backchannel\AuxiliaryBackchannelMonitorTests.cs (1)
797var startInfo = new ProcessStartInfo
Backchannel\OrphanedAppHostCollectorTests.cs (1)
170var psi = OperatingSystem.IsWindows()
Certificates\UnixCertificateManagerTests.cs (1)
720private static void AssertProcessStartInfo(ProcessStartInfo startInfo, params string[] expectedArguments)
Commands\AppHostLauncherTests.cs (2)
1478public IProcessExecution CreateExecution(ProcessStartInfo startInfo, ProcessInvocationOptions options) 1526private ProcessStartInfo CreateProcessStartInfo(string workingDirectory)
Commands\CompletionScriptTests.cs (1)
308var startInfo = new ProcessStartInfo(executable)
Commands\GoAppHostToolingCheckTests.cs (2)
392var startInfo = GoAppHostToolingCheck.CreateVersionProbeStartInfo("/usr/bin/go"); 402var startInfo = GoAppHostToolingCheck.CreateToolchainProbeStartInfo("/usr/bin/go", "/tmp/aspire-go-doctor");
Commands\StartCommandTests.cs (1)
767public IProcessExecution CreateExecution(ProcessStartInfo startInfo, ProcessInvocationOptions options)
Configuration\ConfigSourceServiceGitTests.cs (5)
198var startInfo = new ProcessStartInfo 294var startInfo = client.CreateStartInfo(workspace.Path, ["fetch"], GitCommandMode.Unattended); 319var startInfo = client.CreateStartInfo(workspace.Path, ["fetch", "--depth", "1", "--", "https://example.com/configuration", "HEAD"], GitCommandMode.Interactive); 344var startInfo = runner.CreateStartInfo(workspace.Path, ["ls-remote", "--", "repository", "HEAD"], GitCommandMode.Interactive); 363var startInfo = client.CreateStartInfo(workspace.Path, [command], GitCommandMode.Interactive);
DotNet\DotNetCliRunnerTests.cs (2)
450var startInfo = new ProcessStartInfo(GetDotNetExecutablePath()) 2726var processStartInfo = new ProcessStartInfo(GetDotNetExecutablePath())
DotNet\ProcessExecutionFactoryEnvironmentTests.cs (5)
26var startInfo = new ProcessStartInfo("dotnet") 43var startInfo = new ProcessStartInfo(); 56var startInfo = new ProcessStartInfo(); 86var startInfo = new ProcessStartInfo { WorkingDirectory = directory.FullName }; 131var startInfo = new ProcessStartInfo("dotnet")
DotNet\ProcessExecutionTests.cs (4)
181var startInfo = ProcessExecutionFactory.CreateProcessStartInfo( 279var startInfo = new ProcessStartInfo("powershell.exe", ["-NoProfile", "-NonInteractive", "-EncodedCommand", Convert.ToBase64String(Encoding.Unicode.GetBytes(script))]) 321private static ProcessStartInfo CreateStartInfo(FileInfo scriptFile) 354var startInfo = CreateStartInfo(scriptFile);
DotNetSdkInstallerTests.cs (4)
63var startInfo = await CreateBlockingDotNetShimAsync(tempDirectory, parentPidFile, childPidFile); 305Func<string, string, ProcessStartInfo>? createProcessStartInfo = null) 325private static async Task<ProcessStartInfo> CreateBlockingDotNetShimAsync(DirectoryInfo directory, string parentPidFile, string childPidFile) 337var startInfo = new ProcessStartInfo("powershell.exe")
Git\GitCommandRunnerTests.Authentication.cs (14)
26var info = runner.CreateStartInfo(Environment.CurrentDirectory, ["ls-remote", "--", "repository"], Enum.Parse<GitCommandMode>(mode)); 66var info = runner.CreateStartInfo(workspace.Path, ["ls-remote", "--", server.Repository], mode); 112var info = runner.CreateStartInfo(workspace.Path, ["ls-remote", "--", server.Repository], GitCommandMode.Unattended); 181var info = runner.CreateStartInfo(workspace.Path, arguments, GitCommandMode.Unattended); 218var info = runner.CreateStartInfo(workspace.Path, arguments, GitCommandMode.Unattended); 238var probe = CreateShellStartInfo( 252var probe = CreateShellStartInfo( 263var probe = CreateShellStartInfo("sleep 60", "Start-Sleep -Seconds 60"); 285var info = runner.CreateStartInfo(directory.FullName, arguments, GitCommandMode.Unattended); 308var info = runner.CreateStartInfo(workspace.Path, arguments, GitCommandMode.Unattended); 335var info = runner.CreateStartInfo(workspace.Path, arguments, GitCommandMode.Unattended); 386private async Task<string> GetGitSelectedSshAsync(ProcessStartInfo source) 393var query = CreateRunner().CreateStartInfo(source.WorkingDirectory, 405private static void IsolateGit(ProcessStartInfo info, string home, string config)
Git\GitCommandRunnerTests.cs (16)
31var startInfo = runner.CreateStartInfo(Environment.CurrentDirectory, 142var startInfo = CreateShellStartInfo($"printf '%s' '{message}' >&2; exit 128", 178var startInfo = new ProcessStartInfo(Path.Combine(workspace.Path, "missing-private-executable")) 196var startInfo = new ProcessStartInfo("missing-executable"); 207var startInfo = CreateShellStartInfo("printf 'first\\r\\nsecond\\000last'", "[Console]::Out.Write(\"first`r`nsecond`0last\")"); 222var startInfo = CreateShellStartInfo( 249var startInfo = CreateShellStartInfo( 282var startInfo = runner.CreateStartInfo(Environment.CurrentDirectory, [command], GitCommandMode.Interactive); 283var shell = CreateShellStartInfo( 320var startInfo = CreateShellStartInfo( 349var startInfo = CreateShellStartInfo("printf 'refs\\000blob'; printf 'Git warning' >&2", 375var startInfo = CreateShellStartInfo( 405var startInfo = runner.CreateStartInfo(workspace.Path, ["fetch"], GitCommandMode.Captured); 406var shell = CreateShellStartInfo( 432private static ProcessStartInfo CreateShellStartInfo(string unixCommand, string windowsCommand) 434var startInfo = new ProcessStartInfo(OperatingSystem.IsWindows() ? "powershell.exe" : "/bin/sh")
Npm\AspireJsLauncherTests.cs (4)
319var psi = new ProcessStartInfo 344var psi = new ProcessStartInfo 359var psi = new ProcessStartInfo 375private static ProcessResult RunProcess(ProcessStartInfo psi)
Npm\NpmRunnerTests.cs (8)
35var startInfo = NpmRunner.CreateNpmProcessStartInfo("/usr/bin/npm", ["view", "express", "version"], "/tmp/workdir", new TestEnvironment(), stdin); 53var startInfo = NpmRunner.CreateNpmProcessStartInfo( 74var startInfo = NpmRunner.CreateNpmProcessStartInfo( 91var startInfo = NpmRunner.CreateNpmProcessStartInfo( 107var startInfo = NpmRunner.CreateNpmProcessStartInfo( 124var startInfo = NpmRunner.CreateNpmProcessStartInfo( 140var startInfo = NpmRunner.CreateNpmProcessStartInfo("/usr/bin/npm", [], "/tmp", new TestEnvironment(), stdin); 152var startInfo = NpmRunner.CreateNpmProcessStartInfo(@"C:\Program Files\nodejs\npm.cmd", [], @"C:\temp", new TestEnvironment(), stdin);
Processes\ProcessTreeGracefulShutdownServiceTests.cs (2)
419var startInfo = new ProcessStartInfo("/bin/sh") 435var startInfo = new ProcessStartInfo("/bin/sh")
Projects\AppHostServerProjectTests.cs (1)
122var startInfo = new ProcessStartInfo("dotnet")
Projects\AppHostServerSessionTests.cs (3)
549private static IProcessExecution CreateServerExecution(ProcessStartInfo startInfo, AppHostServerRunControl? runControl) 702var startInfo = new ProcessStartInfo("dotnet") 751var startInfo = new ProcessStartInfo(fileName)
Projects\JavaAppHostToolchainResolverTests.cs (1)
633var startInfo = new ProcessStartInfo(command.Command)
Projects\PrebuiltAppHostServerTests.cs (13)
166var startInfo = new ProcessStartInfo("dotnet") 606var startInfo = new ProcessStartInfo("dotnet") 817var startInfo = new ProcessStartInfo("dotnet") 2577var startInfo = server.CreateStartInfo(123); 4449var startInfo = server.CreateStartInfo(123); 5278var startInfo = server.CreateStartInfo(123); 5301var startInfo = server.CreateStartInfo(123); 5322var startInfo = server.CreateStartInfo(123); 5344var startInfo = server.CreateStartInfo(123); 5365var startInfo = server.CreateStartInfo(123); 5382var startInfo = server.CreateStartInfo(123, environmentVariables); 5399var startInfo = server.CreateStartInfo(123, environmentVariables); 5478var startInfo = server.CreateStartInfo(123);
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1023var startInfo = new ProcessStartInfo("/usr/bin/app-sso")
tests\Shared\Processes\ChildProcessTests.cs (1)
486var startInfo = fixture.CreateStartInfo("output", "0");
tests\Shared\Processes\ProcessSupervisorTests.cs (1)
47var startInfo = new ProcessStartInfo { WorkingDirectory = directory.FullName };
tests\Shared\Processes\ProcessTestFixture.cs (9)
93internal ProcessStartInfo CreateStartInfo(params string[] arguments) 95var startInfo = new ProcessStartInfo("dotnet") 111internal ProcessStartInfo CreateSupervisorStartInfo(ProcessStartInfo command, string? completionPath = null) 114internal ProcessStartInfo CreateSupervisorStartInfo(ProcessStartInfo command, string? completionPath, TimeSpan terminationTimeout) 116var startInfo = ProcessSupervisor.CreateStartInfo(command, completionPath, terminationTimeout); 131internal static ChildProcess CreateProcess(ProcessStartInfo startInfo, ChildProcessOptions options) => 134internal static ChildProcess CreateProcess(ProcessStartInfo startInfo, ILogger logger, ChildProcessOptions options) =>
tests\Shared\TestProcesses.cs (1)
41var psi = OperatingSystem.IsWindows()
TestServices\TestProcessExecutionFactory.cs (3)
30var guardian = ProcessSupervisor.CreateStartInfo(command, completionPath, timeout); 60public Func<System.Diagnostics.ProcessStartInfo, ProcessInvocationOptions, IProcessExecution>? CreateExecutionFromStartInfoCallback { get; set; } 149public IProcessExecution CreateExecution(System.Diagnostics.ProcessStartInfo startInfo, ProcessInvocationOptions options)
Utils\DeprecatedWorkloadCheckTests.cs (1)
17ProcessStartInfo? capturedStartInfo = null;
Utils\ProcessCaptureRunnerTests.cs (3)
19var startInfo = OperatingSystem.IsWindows() 58var startInfo = OperatingSystem.IsWindows() 111var startInfo = OperatingSystem.IsWindows()
Aspire.Dashboard (18)
Model\VolumePathLauncher.cs (3)
38var startInfo = CreateStartInfo(fullPath, Directory.Exists(fullPath), GetCurrentPlatform()); 66internal static ProcessStartInfo? CreateStartInfo(string fullPath, bool isDirectory, VolumePathPlatform platform) 68ProcessStartInfo startInfo;
src\Shared\ChildProcess.cs (3)
29private readonly ProcessStartInfo _startInfo; 45ProcessStartInfo startInfo, 121var startInfo = _startInfo;
src\Shared\ChildProcessOptions.cs (2)
29public Func<ProcessStartInfo, string?, TimeSpan, ProcessStartInfo> CreateSupervisorStartInfo { get; init; } = ProcessSupervisor.CreateStartInfo;
src\Shared\ProcessSupervisor.cs (6)
25internal static ProcessStartInfo CreateStartInfo(ProcessStartInfo runtimeStartInfo, string? exitCodePath = null) 28internal static ProcessStartInfo CreateStartInfo(ProcessStartInfo runtimeStartInfo, string? exitCodePath, TimeSpan terminationTimeout) 35var startInfo = new ProcessStartInfo 113var startInfo = new ProcessStartInfo
src\Shared\Telemetry\InternalMicrosoftDetector.cs (4)
54private readonly Func<ProcessStartInfo, Action<string>, Action<string>, IChildProcess> _createProcess; 67Func<ProcessStartInfo, Action<string>, Action<string>, IChildProcess> createProcess, bool isCIEnvironment) 89Func<ProcessStartInfo, Action<string>, Action<string>, IChildProcess> createProcess, 1138var startInfo = new ProcessStartInfo
Aspire.Dashboard.Playwright.Tests (1)
Integration\Playwright\NativeAotDashboardTests.cs (1)
39var startInfo = new ProcessStartInfo
Aspire.Dashboard.Tests (4)
Model\VolumePathLauncherTests.cs (4)
18var startInfo = VolumePathLauncher.CreateStartInfo(path, isDirectory, VolumePathPlatform.Windows); 38var startInfo = VolumePathLauncher.CreateStartInfo("/src/my \"scripts\"/init.command", isDirectory, VolumePathPlatform.MacOS); 52var startInfo = VolumePathLauncher.CreateStartInfo(path, isDirectory: false, VolumePathPlatform.Linux); 63var startInfo = VolumePathLauncher.CreateStartInfo("/src/data", isDirectory: true, VolumePathPlatform.Linux);
Aspire.Deployment.EndToEnd.Tests (1)
AzureSandboxesDeploymentTests.cs (1)
725var startInfo = new ProcessStartInfo
Aspire.EndToEnd.Tests (6)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
163public async Task StartAppHostAsync(string[]? extraArgs = default, Action<ProcessStartInfo>? configureProcess = null, bool noBuild = true, bool waitForDashboardUrl = true, CancellationToken token = default)
tests\Shared\TemplatesTesting\CommandResult.cs (2)
11public struct CommandResult(ProcessStartInfo startInfo, int exitCode, string output) 15public ProcessStartInfo StartInfo { get; } = startInfo;
tests\Shared\TemplatesTesting\ToolCommand.cs (3)
210var psi = new ProcessStartInfo 252private void AddEnvironmentVariablesTo(ProcessStartInfo psi) 261private void AddWorkingDirectoryTo(ProcessStartInfo psi)
Aspire.Hosting (4)
ApplicationModel\ProcessCommandSpec.cs (1)
39/// Arguments are passed using <see cref="System.Diagnostics.ProcessStartInfo.ArgumentList"/> so that each item is
src\Shared\ContainerRuntimeProbe.cs (3)
131var startInfo = new ProcessStartInfo 265var startInfo = new ProcessStartInfo 361var startInfo = new ProcessStartInfo
Aspire.Hosting.Azure.Tests (1)
FoundryExtensionsTests.cs (1)
221var daemonStartInfo = OperatingSystem.IsWindows()
Aspire.Hosting.CodeGeneration.Go.Tests (3)
AtsGoCodeGeneratorTests.cs (3)
1310var startInfo = new ProcessStartInfo("go") 1786var startInfo = new ProcessStartInfo("go") 1818private static void EnableGoRaceDetection(ProcessStartInfo startInfo)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
4083var startInfo = new ProcessStartInfo
Aspire.Hosting.CodeGeneration.Python (1)
PythonLanguageSupport.cs (1)
259var startInfo = new ProcessStartInfo
Aspire.Hosting.DevTunnels (2)
DevTunnelCli.cs (2)
358private ProcessStartInfo BuildStartInfo(IEnumerable<string> args, bool useShellExecute = false) 360var psi = new ProcessStartInfo
Aspire.Hosting.Dotnet (1)
DotnetProjectRunPropertiesResolver.cs (1)
45var startInfo = new ProcessStartInfo("dotnet")
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
528var startInfo = new ProcessStartInfo(executableAnnotation.Command)
Aspire.Hosting.Foundry (3)
FoundryLocalService.cs (3)
270var startInfo = CreateFoundryStartInfo(["service", "start"]); 491private static ProcessStartInfo CreateFoundryStartInfo(string[] arguments) 493var startInfo = new ProcessStartInfo("foundry")
Aspire.Hosting.JavaScript.Tests (3)
AddDenoAppTests.cs (1)
2705var processStartInfo = new ProcessStartInfo
AddJavaScriptAppTests.cs (2)
647var processStartInfo = new ProcessStartInfo 754var processStartInfo = new ProcessStartInfo
Aspire.Hosting.Maui (2)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
202var psi = new ProcessStartInfo("dotnet")
Utilities\ProjectFileReader.cs (1)
60var startInfo = new ProcessStartInfo
Aspire.Hosting.Native.Client (1)
NativeProviderHost.cs (1)
93var start = new ProcessStartInfo(executable) { RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false };
Aspire.Hosting.Native.Core.Tests (13)
NativeComposeCSharpDockerTests.cs (1)
81var start = new ProcessStartInfo(executable)
NativeComposeCSharpTests.cs (1)
139var start = new ProcessStartInfo(Environment.GetEnvironmentVariable("ASPIRE_NATIVE_SYMBOLIC_TEST_NODE") ?? "node")
NativeIpcSecurityTests.cs (1)
67var start = new ProcessStartInfo(Environment.UserName == "root" ? "runuser" : "sudo")
NativeProductCliTests.cs (3)
52var start = StartInfo(["run"]); 95ProcessStartInfo StartInfo(string[] arguments) 97var start = new ProcessStartInfo(cli)
NativeRedisAppHostTests.cs (2)
48var verify = new ProcessStartInfo("docker") 70var start = new ProcessStartInfo("docker") { RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false };
NativeRpcAuthoringTests.cs (1)
297var start = new ProcessStartInfo(node)
TestServices\NativeClientTestHost.cs (1)
51var start = new ProcessStartInfo(executable)
TestServices\NativeIntegrationAppHostRunner.cs (2)
12var start = new ProcessStartInfo(executable) { RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false }; 22public static async Task<string> RunAsync(ProcessStartInfo start, TimeProvider clock)
TestServices\NativeProviderProcessTestHost.cs (1)
16var start = new ProcessStartInfo("/bin/sh")
Aspire.Hosting.Native.Server (1)
Dcp\DcpApiClient.cs (1)
62var start = new ProcessStartInfo(executable)
Aspire.Hosting.Python (1)
PythonVersionDetector.cs (1)
68var startInfo = new ProcessStartInfo
Aspire.Hosting.Python.Tests (2)
AddPythonAppTests.cs (2)
327var prepareVirtualEnvironmentStartInfo = new ProcessStartInfo() 367var installRequirementsStartInfo = new ProcessStartInfo()
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
817var startInfo = new ProcessStartInfo(redis.Resource.Entrypoint!)
Aspire.Hosting.RemoteHost (18)
Language\IntegrationHostProcessLauncher.cs (3)
46var startInfo = CreateProcessStartInfo(command!, hostSpec.Execute.Args, descriptor.HostEntryPoint, OperatingSystem.IsWindows()); 106internal static ProcessStartInfo CreateProcessStartInfo(string command, IReadOnlyList<string> argumentTemplates, string entryPoint, bool isWindows) 108var startInfo = new ProcessStartInfo
src\Shared\ChildProcess.cs (3)
29private readonly ProcessStartInfo _startInfo; 45ProcessStartInfo startInfo, 121var startInfo = _startInfo;
src\Shared\ChildProcessFactory.cs (2)
14IChildProcess Create(ProcessStartInfo startInfo, ILogger logger, ChildProcessOptions options, bool isWindows); 22public IChildProcess Create(ProcessStartInfo startInfo, ILogger logger, ChildProcessOptions options, bool isWindows)
src\Shared\ChildProcessOptions.cs (2)
29public Func<ProcessStartInfo, string?, TimeSpan, ProcessStartInfo> CreateSupervisorStartInfo { get; init; } = ProcessSupervisor.CreateStartInfo;
src\Shared\ProcessStartInfoHelper.cs (2)
19public static void SetCommand(ProcessStartInfo startInfo, string command, IEnumerable<string> args, bool isWindows) 69private static void SetEnvironmentVariable(ProcessStartInfo startInfo, string name, string value)
src\Shared\ProcessSupervisor.cs (6)
25internal static ProcessStartInfo CreateStartInfo(ProcessStartInfo runtimeStartInfo, string? exitCodePath = null) 28internal static ProcessStartInfo CreateStartInfo(ProcessStartInfo runtimeStartInfo, string? exitCodePath, TimeSpan terminationTimeout) 35var startInfo = new ProcessStartInfo 113var startInfo = new ProcessStartInfo
Aspire.Hosting.RemoteHost.Tests (19)
IntegrationHostLauncherTests.cs (3)
208var startInfo = IntegrationHostProcessLauncher.CreateProcessStartInfo( 252var startInfo = IntegrationHostProcessLauncher.CreateProcessStartInfo("integration-runtime", [], entryPoint, isWindows: false); 267var startInfo = IntegrationHostProcessLauncher.CreateProcessStartInfo(
IntegrationHostProcessLauncherTests.cs (2)
101var startInfo = Assert.IsType<ProcessStartInfo>(factory.StartInfo);
tests\Shared\Processes\ProcessSupervisorTests.cs (1)
47var startInfo = new ProcessStartInfo { WorkingDirectory = directory.FullName };
tests\Shared\Processes\ProcessTestFixture.cs (9)
93internal ProcessStartInfo CreateStartInfo(params string[] arguments) 95var startInfo = new ProcessStartInfo("dotnet") 111internal ProcessStartInfo CreateSupervisorStartInfo(ProcessStartInfo command, string? completionPath = null) 114internal ProcessStartInfo CreateSupervisorStartInfo(ProcessStartInfo command, string? completionPath, TimeSpan terminationTimeout) 116var startInfo = ProcessSupervisor.CreateStartInfo(command, completionPath, terminationTimeout); 131internal static ChildProcess CreateProcess(ProcessStartInfo startInfo, ChildProcessOptions options) => 134internal static ChildProcess CreateProcess(ProcessStartInfo startInfo, ILogger logger, ChildProcessOptions options) =>
TestServices\IntegrationHostProcessFixture.cs (1)
344var startInfo = useAppHostExecutable ? new ProcessStartInfo(executable) : new ProcessStartInfo("dotnet", [hostAssembly]);
TestServices\TestIntegrationHostProcessFactory.cs (3)
13public ProcessStartInfo? StartInfo { get; private set; } 22public IChildProcess Create(ProcessStartInfo startInfo, ILogger logger, ChildProcessOptions options, bool isWindows) 31private sealed class TestChildProcess(TestIntegrationHostProcessFactory factory, ProcessStartInfo startInfo) : IChildProcess
Aspire.Hosting.Rust (1)
CargoMetadataReader.cs (1)
65var startInfo = new ProcessStartInfo("cargo")
Aspire.Hosting.Rust.Tests (1)
RustDockerfileShellTests.cs (1)
203var startInfo = new ProcessStartInfo("/bin/sh")
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
2652var startInfo = new ProcessStartInfo(fileName)
Aspire.Hosting.Tasks (5)
ResolveAspireCliInvocation.cs (1)
150var startInfo = new ProcessStartInfo(dotnetPath, "--list-sdks")
RunAspireCliCommand.cs (2)
153private ProcessStartInfo CreateStartInfo(IReadOnlyList<string> arguments) 155var startInfo = new ProcessStartInfo
src\Shared\ProcessStartInfoHelper.cs (2)
19public static void SetCommand(ProcessStartInfo startInfo, string command, IEnumerable<string> args, bool isWindows) 69private static void SetEnvironmentVariable(ProcessStartInfo startInfo, string name, string value)
Aspire.Hosting.Tests (1)
tests\Shared\TestProcesses.cs (1)
41var psi = OperatingSystem.IsWindows()
Aspire.Managed.Tests (6)
TerminalHostSignalTests.cs (6)
41var startInfo = CreateTerminalHostStartInfo(producerPath, consumerPath, controlPath); 186var startInfo = CreateTerminalHostStartInfo(paths[0], paths[1], paths[2]); 223var startInfo = CreateTerminalHostStartInfo(Path.Combine(root.FullName, "s", "p.sock"), "consumer", "control"); 284var startInfo = CreateTerminalHostStartInfo( 351private static ProcessStartInfo CreateTerminalHostStartInfo( 357var startInfo = new ProcessStartInfo("dotnet")
Aspire.Playground.Tests (1)
tests\Aspire.TestUtilities\TestcontainersPodmanConfiguration.cs (1)
236var startInfo = new ProcessStartInfo(KnownContainerRuntimes.Podman)
Aspire.Templates.Tests (6)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
163public async Task StartAppHostAsync(string[]? extraArgs = default, Action<ProcessStartInfo>? configureProcess = null, bool noBuild = true, bool waitForDashboardUrl = true, CancellationToken token = default)
tests\Shared\TemplatesTesting\CommandResult.cs (2)
11public struct CommandResult(ProcessStartInfo startInfo, int exitCode, string output) 15public ProcessStartInfo StartInfo { get; } = startInfo;
tests\Shared\TemplatesTesting\ToolCommand.cs (3)
210var psi = new ProcessStartInfo 252private void AddEnvironmentVariablesTo(ProcessStartInfo psi) 261private void AddWorkingDirectoryTo(ProcessStartInfo psi)
Aspire.TestTools (2)
GitHubCli.cs (2)
248ProcessStartInfo processStartInfo = new() 298ProcessStartInfo processStartInfo = new()
Aspire.TestUtilities (1)
TestcontainersPodmanConfiguration.cs (1)
236var startInfo = new ProcessStartInfo(KnownContainerRuntimes.Podman)
Aspire.Tray.Tests (39)
CliAppHostClientTests.cs (1)
19var startInfo = CliAppHostClient.CreateWatchStartInfo(executable);
CliAppHostCommandsTests.cs (3)
19var startInfo = CliAppHostCommands.CreateStopStartInfo(Path.GetFullPath("aspire"), host.Id); 29var startInfo = CliAppHostCommands.CreateStopStartInfo(executable, host); 216var info = CliAppHostCommands.CreateStartStartInfo(executable, appHost);
Helpers\TestNativeCommand.cs (1)
12var startInfo = new ProcessStartInfo(command)
LinuxFolderApplicationTests.cs (1)
41var start = application.CreateStartInfo(folder);
LinuxTrayTests.cs (1)
777var start = LinuxTrayRuntime.CreateStartInfo(options);
MacTrayLauncherTests.cs (4)
23var start = CreateCommand(directory.Root, "printf 'stdout\\n'; printf 'stderr\\n' >&2; /bin/ps -o pgid= -p $$"); 116var start = CreateCommand(directory.Root, command); 221private static ProcessStartInfo CreateCommand(string workingDirectory, string command) 223var start = new ProcessStartInfo("/bin/sh") { WorkingDirectory = workingDirectory };
src\Aspire.Tray\Common\CliAppHostClient.cs (1)
100internal static ProcessStartInfo CreateWatchStartInfo(string executable)
src\Aspire.Tray\Common\CliAppHostCommands.cs (4)
17internal static ProcessStartInfo CreateStopStartInfo(string executable, AppHostId target) 37internal static ProcessStartInfo CreateStartStartInfo(string executable, string appHostPath) 40var startInfo = CliProcess.CreateStartInfo(executable, "start", "--apphost", path, "--non-interactive", "--nologo"); 48ProcessStartInfo startInfo;
src\Aspire.Tray\Common\CliProcess.cs (2)
10public static ProcessStartInfo CreateStartInfo(string cliPath, params string[] arguments) 17var startInfo = new ProcessStartInfo(cliPath)
src\Aspire.Tray\Common\TrayLaunchCommand.cs (6)
11public static ProcessStartInfo CreateWindowsStartInfo(TrayOptions options) 32var startInfo = new ProcessStartInfo(executable) 47internal static string BuildWindowsCommandLine(ProcessStartInfo startInfo) 84public static ProcessStartInfo CreateStartInfo(TrayOptions options) 95var startInfo = new ProcessStartInfo(executable) 112private static void AddStartupCli(ProcessStartInfo startInfo, string? startupCli)
src\Aspire.Tray\Common\WindowsLoginBootstrap.cs (1)
13internal static ProcessStartInfo CreateStartInfo(string cliPath)
src\Aspire.Tray\Common\WindowsTrayStartupSettings.cs (1)
44var start = new ProcessStartInfo(bootstrap);
src\Aspire.Tray\Linux\LinuxFolderApplication.cs (2)
30internal ProcessStartInfo CreateStartInfo(string directory) 37var start = new ProcessStartInfo(Executable)
src\Aspire.Tray\Linux\LinuxTrayRuntime.cs (3)
121internal static ProcessStartInfo CreateStartInfo(TrayOptions options) 132var info = new ProcessStartInfo(executable) 151var startInfo = CreateStartInfo(options);
src\Aspire.Tray\Mac\MacDetachedProcess.cs (1)
42public static MacDetachedProcess Start(ProcessStartInfo startInfo, SafeFileHandle log)
src\Aspire.Tray\Windows\WindowsTrayLauncher.cs (1)
36var startInfo = TrayLaunchCommand.CreateWindowsStartInfo(options);
TrayLaunchCommandTests.cs (1)
16var start = TrayLaunchCommand.CreateStartInfo(options);
TrayStartupOptionsTests.cs (1)
24var start = windows ? TrayLaunchCommand.CreateWindowsStartInfo(options)
WindowsTrayLaunchCommandTests.cs (2)
18var start = TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.Root, null)); 73var start = new ProcessStartInfo(@"C:\Aspire Tray\aspire-tray.exe");
WindowsTrayLauncherTests.cs (1)
113var start = new ProcessStartInfo(Path.Combine(Environment.SystemDirectory, "ping.exe"))
WindowsTrayStartupSettingsTests.cs (1)
251var start = WindowsLoginBootstrap.CreateStartInfo(installation.WindowsCli);
CreateLayout (1)
Program.cs (1)
485var psi = new ProcessStartInfo
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
dotnet-aot (6)
parent\dotnet\CommandFactory\CommandFactoryUsingResolver.cs (1)
103var psi = new ProcessStartInfo
parent\dotnet\Commands\MSBuild\MSBuildForwardingApp.cs (1)
116public ProcessStartInfo GetProcessStartInfo() => _forwardingAppWithoutLogging.GetProcessStartInfo();
parent\dotnet\Commands\Test\MTP\TestApplication.cs (3)
94var processStartInfo = CreateProcessStartInfo(); 288internal ProcessStartInfo CreateProcessStartInfo() 290var processStartInfo = new ProcessStartInfo
parent\dotnet\ForwardingApp.cs (1)
27public ProcessStartInfo GetProcessStartInfo()
dotnet-dev-certs (10)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
160var checkTrustProcessStartInfo = new ProcessStartInfo( 208var processInfo = new ProcessStartInfo( 239var processInfo = new ProcessStartInfo( 341var processInfo = new ProcessStartInfo(
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
690var startInfo = new ProcessStartInfo(PowerShellCommand, $"-NoProfile -NonInteractive -EncodedCommand {encodedCommand}") 710var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} {operation}") 738var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} -A -i {certificatePath} -t \"{usage},,\"") 761var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -D -n {nickname}") 933var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 975var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}")
dotnet-format (5)
Utilities\ProcessRunner.cs (5)
28public ProcessStartInfo StartInfo { get; } 33public ProcessInfo(Process process, ProcessStartInfo startInfo, Task<ProcessResult> result) 68ProcessStartInfo processStartInfo, 167public static ProcessStartInfo CreateProcessStartInfo( 175var processStartInfo = new ProcessStartInfo(executable, arguments);
dotnet-getdocument (1)
Exe.cs (1)
23var startInfo = new ProcessStartInfo
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
221var startInfo = new ProcessStartInfo
dotnet-suggest (1)
SuggestionStore.cs (1)
30var processStartInfo = new ProcessStartInfo(
dotnet-user-jwts (3)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (3)
60var psi = new ProcessStartInfo 144var psi = new ProcessStartInfo 230private static void DisableBuildServerReuse(ProcessStartInfo psi) =>
dotnet-user-secrets (3)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (3)
60var psi = new ProcessStartInfo 144var psi = new ProcessStartInfo 230private static void DisableBuildServerReuse(ProcessStartInfo psi) =>
GenerateTemplateManifest (1)
Program.cs (1)
117var startInfo = new ProcessStartInfo("dotnet")
Infrastructure.Common (1)
CertificateManager.cs (1)
301var psi = new ProcessStartInfo
Infrastructure.Tests (24)
CreateFailingTestIssue\CreateFailingTestIssueFixture.cs (1)
32ProcessStartInfo processStartInfo = new()
CreateFailingTestIssue\CreateFailingTestIssueToolTests.cs (1)
622ProcessStartInfo processStartInfo = new()
DownloadFailingJobLogs\DownloadFailingJobLogsToolTests.cs (1)
88ProcessStartInfo processStartInfo = new()
ExecutableFile.cs (1)
35var startInfo = new ProcessStartInfo("/bin/sh")
ExtractTestPartitions\ExtractTestPartitionsFixture.cs (1)
22var psi = new ProcessStartInfo
ExtractTestPartitions\ExtractTestPartitionsTests.cs (1)
289var psi = new ProcessStartInfo
GenerateTestSummary\GenerateTestSummaryFixture.cs (1)
25ProcessStartInfo processStartInfo = new()
GenerateTestSummary\GenerateTestSummaryToolTests.cs (1)
241ProcessStartInfo processStartInfo = new()
Hex1bNativePublishingTests.cs (1)
485var startInfo = new ProcessStartInfo
PowerShellScripts\PowerShellCommand.cs (3)
202var psi = new ProcessStartInfo 231private void AddEnvironmentVariablesTo(ProcessStartInfo psi) 240private void AddWorkingDirectoryTo(ProcessStartInfo psi)
Shared\CommandResult.cs (2)
11public ProcessStartInfo StartInfo { get; } 15public CommandResult(ProcessStartInfo startInfo, int exitCode, string output)
Shared\GitCli.cs (1)
24var psi = new ProcessStartInfo("git")
src\Shared\ProcessStartInfoHelper.cs (2)
19public static void SetCommand(ProcessStartInfo startInfo, string command, IEnumerable<string> args, bool isWindows) 69private static void SetEnvironmentVariable(ProcessStartInfo startInfo, string name, string value)
TestTriggerMap\TestTriggerMapTests.cs (1)
533var startInfo = new System.Diagnostics.ProcessStartInfo("git")
tools\GenerateCITimeline\GitHubApi.cs (1)
11var psi = new ProcessStartInfo("gh", ["api", endpoint, "--paginate"])
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (1)
352var startInfo = new ProcessStartInfo(pythonExecutable)
WorkflowScripts\NodeCommand.cs (3)
182ProcessStartInfo psi = new() 207private void AddEnvironmentVariablesTo(ProcessStartInfo psi) 216private void AddWorkingDirectoryTo(ProcessStartInfo psi)
WorkflowScripts\PrDocsCheckWorkflowTests.cs (1)
24var startInfo = new ProcessStartInfo(python)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
33var processStartInfo = new ProcessStartInfo(FileName, Arguments)
Microsoft.Arcade.Common (4)
Command.cs (2)
37var psi = new ProcessStartInfo() 210private string FormatProcessInfo(ProcessStartInfo info, bool includeWorkingDirectory)
CommandResult.cs (2)
14public ProcessStartInfo StartInfo { get; } 19public CommandResult(ProcessStartInfo startInfo, int exitCode, string stdOut, string stdErr)
Microsoft.AspNetCore.Components.Testing (4)
Infrastructure\ServerInstance.cs (4)
80var startInfo = BuildProcessStartInfo(appEntry); 268internal static ProcessStartInfo BuildProcessStartInfo(E2EAppEntry appEntry) 285var startInfo = new ProcessStartInfo(executable, args) 302ProcessStartInfo startInfo,
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
65var processStartInfo = new ProcessStartInfo
Microsoft.AspNetCore.DeveloperCertificates.XPlat (10)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
160var checkTrustProcessStartInfo = new ProcessStartInfo( 208var processInfo = new ProcessStartInfo( 239var processInfo = new ProcessStartInfo( 341var processInfo = new ProcessStartInfo(
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
690var startInfo = new ProcessStartInfo(PowerShellCommand, $"-NoProfile -NonInteractive -EncodedCommand {encodedCommand}") 710var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} {operation}") 738var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} -A -i {certificatePath} -t \"{usage},,\"") 761var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -D -n {nickname}") 933var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 975var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}")
Microsoft.AspNetCore.Server.IntegrationTesting (9)
ApplicationPublisher.cs (1)
61var startInfo = new ProcessStartInfo
Deployers\ApplicationDeployer.cs (1)
138protected void AddEnvironmentVariablesToProcess(ProcessStartInfo startInfo, IDictionary<string, string> environmentVariables)
Deployers\NginxDeployer.cs (2)
157var startInfo = new ProcessStartInfo 199var startInfo = new ProcessStartInfo
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
236var startInfo = new ProcessStartInfo
Deployers\SelfHostDeployer.cs (1)
121var startInfo = new ProcessStartInfo
ProcessHelpers.cs (1)
11public static void AddEnvironmentVariablesToProcess(ProcessStartInfo startInfo, IDictionary<string, string> environmentVariables, ILogger logger)
src\aspnetcore\src\Shared\Process\ProcessEx.cs (1)
113var startInfo = new ProcessStartInfo(command, args)
src\aspnetcore\src\Shared\Process\ProcessExtensions.cs (1)
97var startInfo = new ProcessStartInfo
Microsoft.AspNetCore.Server.Kestrel.Core (10)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
160var checkTrustProcessStartInfo = new ProcessStartInfo( 208var processInfo = new ProcessStartInfo( 239var processInfo = new ProcessStartInfo( 341var processInfo = new ProcessStartInfo(
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
690var startInfo = new ProcessStartInfo(PowerShellCommand, $"-NoProfile -NonInteractive -EncodedCommand {encodedCommand}") 710var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} {operation}") 738var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} -A -i {certificatePath} -t \"{usage},,\"") 761var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -D -n {nickname}") 933var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 975var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}")
Microsoft.AspNetCore.SpaProxy (3)
SpaProxyLaunchManager.cs (3)
186var info = new ProcessStartInfo(command, arguments) 238var stopScriptInfo = new ProcessStartInfo( 302var stopScriptInfo = new ProcessStartInfo("/bin/bash", scriptPath)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Npm\NodeScriptRunner.cs (2)
42var processStartInfo = new ProcessStartInfo(exeToRun) 123private static Process LaunchNodeProcess(ProcessStartInfo startInfo, string commandName)
Microsoft.Build (3)
BackEnd\BuildManager\CoordinatorClient.cs (2)
498ProcessStartInfo? startInfo = TryGetStartInfo(); 518private static ProcessStartInfo? TryGetStartInfo()
BackEnd\Components\Communications\NodeLauncher.cs (1)
122var processStartInfo = new ProcessStartInfo
Microsoft.Build.Framework (5)
ITaskEnvironmentDriver.cs (1)
67ProcessStartInfo GetProcessStartInfo();
MultiProcessTaskEnvironmentDriver.cs (1)
77public ProcessStartInfo GetProcessStartInfo()
MultiThreadedTaskEnvironmentDriver.cs (2)
225public ProcessStartInfo GetProcessStartInfo() 227var startInfo = new ProcessStartInfo
TaskEnvironment.cs (1)
124public ProcessStartInfo GetProcessStartInfo() => _driver.GetProcessStartInfo();
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
Microsoft.Build.Tasks.Core (1)
ManifestUtil\SecurityUtil.cs (1)
807var startInfo = new ProcessStartInfo(
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (2)
630protected virtual ProcessStartInfo GetProcessStartInfo( 658ProcessStartInfo startInfo = TaskEnvironment.GetProcessStartInfo();
Microsoft.CodeAnalysis.BuildClient.Package (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
Microsoft.CodeAnalysis.Workspaces (1)
Utilities\ProcessStartInfoExtensions.cs (1)
14public static void RemoveInheritedDotNetDiagnosticPorts(this ProcessStartInfo processStartInfo)
Microsoft.CodeAnalysis.Workspaces.MSBuild (10)
MSBuild\BuildHostProcessManager.cs (10)
122var processStartInfo = CreateBuildHostStartInfo(buildHostKind, pipeName, dotnetPath); 197internal static ProcessStartInfo CreateBuildHostStartInfo(BuildHostProcessKind buildHostKind, string pipeName, string? dotnetPath) 252private static ProcessStartInfo CreateDotNetCoreBuildHostStartInfo(string pipeName, string? dotnetPath) 254var processStartInfo = new ProcessStartInfo() 293private static ProcessStartInfo CreateDotNetFrameworkBuildHostStartInfo(string pipeName) 296var processStartInfo = new ProcessStartInfo() 306private static ProcessStartInfo CreateMonoBuildHostStartInfo(string pipeName) 308var processStartInfo = new ProcessStartInfo 352private static void AppendBuildHostCommandLineArgumentsAndConfigureProcess(ProcessStartInfo processStartInfo, string pipeName) 370private static void AddArgument(ProcessStartInfo processStartInfo, string argument)
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
161var startInfo = TaskEnvironment.GetProcessStartInfo();
Microsoft.DotNet.Cli.Utils (11)
BuiltInCommand.cs (1)
72ProcessStartInfo startInfo = new(new Muxer().MuxerPath, $"{CommandName} {CommandArgs}");
Command.cs (2)
191public ProcessStartInfo StartInfo => _process.StartInfo; 205private static string FormatProcessInfo(ProcessStartInfo info)
CommandResult.cs (2)
8public readonly struct CommandResult(ProcessStartInfo startInfo, int exitCode, string? stdOut, string? stdErr) 12public ProcessStartInfo StartInfo { get; } = startInfo;
Extensions\ProcessStartInfoExtensions.cs (2)
10public static int Execute(this ProcessStartInfo startInfo) 29public static int ExecuteAndCaptureOutput(this ProcessStartInfo startInfo, out string? stdOut, out string? stdErr)
ForwardingAppImplementation.cs (2)
72public ProcessStartInfo GetProcessStartInfo() 74var processInfo = new ProcessStartInfo
MSBuildForwardingAppWithoutLogging.cs (2)
126public ProcessStartInfo GetProcessStartInfo() 200ProcessStartInfo startInfo = GetProcessStartInfo();
Microsoft.DotNet.MacOsPkg.Core (2)
ExecuteHelper.cs (2)
22ProcessStartInfo processStartInfo = CreateProcessStartInfo("sh", escapedArgs, workingDirectory); 36private static ProcessStartInfo CreateProcessStartInfo(string command, string arguments, string workingDirectory = "") =>
Microsoft.Extensions.AI.Templates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
33var processStartInfo = new ProcessStartInfo(FileName, Arguments)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownReader.cs (1)
49ProcessStartInfo startInfo = new()
Microsoft.Extensions.DataIngestion.Tests (1)
Readers\MarkItDownConditionHelper.cs (1)
20ProcessStartInfo startInfo = new()
Microsoft.Extensions.Http.Resilience.Tests (1)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (1)
282var processStartInfo = new ProcessStartInfo(GetDotNetPath())
Microsoft.NET.Build.Containers (6)
LocalDaemons\ContainerRuntimeOperations.cs (4)
45ProcessStartInfo loadInfo = new(commandPath) 177ProcessStartInfo startInfo = new(commandPath, arguments) 190ProcessStartInfo startInfo = new(commandPath) 203ProcessStartInfo startInfo,
LocalDaemons\DockerCli.cs (2)
105ProcessStartInfo loadInfo = new(commandPath, $"load") 662ProcessStartInfo psi = new(command, "version")
Microsoft.NET.HostModel (1)
HostModelUtils.cs (1)
85var psi = new ProcessStartInfo()
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\GenerateEFSQLScripts.cs (1)
88ProcessStartInfo psi = new("dotnet", $@"ef migrations script --no-build --idempotent --configuration {Configuration} --output ""{sqlFileFullPath}"" --context {dbContextName} {EFMigrationsAdditionalArgs}")
Microsoft.NET.Sdk.Razor.Tasks (1)
parent\Tool\ServerProtocol\ServerConnection.cs (1)
387var startInfo = new ProcessStartInfo()
Microsoft.TestPlatform.Build (1)
Tasks\VSTestTask.cs (1)
72var processInfo = new ProcessStartInfo
Microsoft.TestPlatform.PlatformAbstractions (1)
netcore\System\ProcessStartInfoExtensions.cs (1)
18public static void AddEnvironmentVariable(this ProcessStartInfo startInfo, string name, string? value)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
VsTestConsoleProcessManager.cs (1)
134var info = new ProcessStartInfo(consoleRunnerPath, arguments)
netstandard (1)
netstandard.cs (1)
669[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.ProcessStartInfo))]
NuGet.CommandLine.XPlat (1)
Commands\Package\Update\PackageUpdateIO.cs (1)
112ProcessStartInfo processStartInfo = new ProcessStartInfo(dotnetPath)
NuGet.Common (1)
Migrations\Migration1.cs (1)
193ProcessStartInfo startInfo = new ProcessStartInfo(command)
NuGet.Credentials (2)
PluginCredentialProvider.cs (2)
193var startInfo = new ProcessStartInfo 256public virtual int Execute(ProcessStartInfo startInfo, CancellationToken cancellationToken, out string stdOut)
NuGet.Protocol (3)
Plugins\PluginFactory.cs (1)
176ProcessStartInfo startInfo;
Plugins\PluginProcess.cs (2)
20private readonly ProcessStartInfo? _startInfo; 79public PluginProcess(ProcessStartInfo startInfo)
RepoTasks (10)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
160var checkTrustProcessStartInfo = new ProcessStartInfo( 208var processInfo = new ProcessStartInfo( 239var processInfo = new ProcessStartInfo( 341var processInfo = new ProcessStartInfo(
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
690var startInfo = new ProcessStartInfo(PowerShellCommand, $"-NoProfile -NonInteractive -EncodedCommand {encodedCommand}") 710var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} {operation}") 738var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -n {nickname} -A -i {certificatePath} -t \"{usage},,\"") 761var startInfo = new ProcessStartInfo(CertUtilCommand, $"-d sql:{nssDb.Path} -D -n {nickname}") 933var processInfo = new ProcessStartInfo(OpenSslCommand, $"version -d") 975var processInfo = new ProcessStartInfo(OpenSslCommand, $"x509 -hash -noout -in {certificatePath}")
rzc (1)
ServerProtocol\ServerConnection.cs (1)
387var startInfo = new ProcessStartInfo()
sdk-tasks (2)
DotNetTool.cs (2)
20protected override ProcessStartInfo GetProcessStartInfo(string pathToTool, string commandLineCommands, string responseFileSwitch) 22var psi = base.GetProcessStartInfo(pathToTool, commandLineCommands, responseFileSwitch);
SelectTests (2)
GraphAffectedProjects.cs (1)
553var startInfo = new ProcessStartInfo("git")
Program.cs (1)
1329var psi = new ProcessStartInfo(fileName)
SuperFileCheck (1)
Program.cs (1)
103var startInfo = new ProcessStartInfo();
System (1)
parent\ref\System.cs (1)
524[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.ProcessStartInfo))]
System.CodeDom (1)
System\CodeDom\Compiler\Executor.cs (1)
60var psi = new ProcessStartInfo(cmd)
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceCounterLib.cs (1)
1196ProcessStartInfo processStartInfo = new ProcessStartInfo();
System.Diagnostics.Process (73)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (6)
145/// Starts a process using the specified <see cref="ProcessStartInfo"/>. 150/// On Windows, when <see cref="ProcessStartInfo.UseShellExecute"/> is <see langword="true"/>, 157public static SafeProcessHandle Start(ProcessStartInfo startInfo) 167internal static SafeProcessHandle Start(ProcessStartInfo startInfo, bool fallbackToNull) 202ProcessStartInfo.ValidateInheritedHandles(childInputHandle, childOutputHandle, childErrorHandle, inheritedHandles); 209/// Resumes the process that was started with <see cref="ProcessStartInfo.StartSuspended" /> set to <see langword="true" />.
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (6)
202private delegate SafeProcessHandle StartWithShellExecuteDelegate(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, out ProcessWaitState.Holder? waitStateHolder); 205private static SafeProcessHandle StartCore(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, SafeHandle[]? inheritedHandlesSnapshot = null) 208internal static SafeProcessHandle StartCore(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, 246internal static unsafe SafeProcessHandle StartWithCallback(ProcessStartInfo startInfo, SafeFileHandle? stdinFd, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, 356private static SafeProcessHandle StartWithShellExecute(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, 429ProcessStartInfo startInfo, string? resolvedFilename, string[] argv,
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ForkAndExecProcess.cs (1)
19ProcessStartInfo startInfo, SafeHandle[]? inheritedHandles = null)
System\Diagnostics\Process.cs (11)
50private ProcessStartInfo? _startInfo; 551/// Gets or sets the properties to pass into the <see cref='System.Diagnostics.Process.Start(System.Diagnostics.ProcessStartInfo)'/> method for the <see cref='System.Diagnostics.Process'/>. 554public ProcessStartInfo StartInfo 1272ProcessStartInfo startInfo = StartInfo; 1299ProcessStartInfo.ValidateInheritedHandles(childInputHandle, childOutputHandle, childErrorHandle, inheritedHandles); 1329ProcessStartInfo startInfo, 1407private static void CloseChildHandles(ProcessStartInfo startInfo, SafeFileHandle? childInputHandle, SafeFileHandle? childOutputHandle, SafeFileHandle? childErrorHandle) 1429private void CreateStandardStreams(ProcessStartInfo startInfo, SafeFileHandle? parentInputPipeHandle, SafeFileHandle? parentOutputPipeHandle, SafeFileHandle? parentErrorPipeHandle) 1454internal bool StartCoreWithCallback(ProcessStartInfo startInfo, 1479ProcessStartInfo.ValidateInheritedHandles(childInputHandle, childOutputHandle, childErrorHandle, inheritedHandles); 1563public static Process? Start(ProcessStartInfo startInfo)
System\Diagnostics\Process.Scenarios.cs (32)
19/// <param name="startInfo">The <see cref="ProcessStartInfo"/> that contains the information used to start the process.</param> 23/// <para>One or more of <see cref="ProcessStartInfo.RedirectStandardInput"/>, 24/// <see cref="ProcessStartInfo.RedirectStandardOutput"/>, or 25/// <see cref="ProcessStartInfo.RedirectStandardError"/> is set to <see langword="true"/>. 29/// <para><see cref="ProcessStartInfo.UseShellExecute"/> is set to <see langword="true"/>. 35/// When a standard handle (<see cref="ProcessStartInfo.StandardInputHandle"/>, 36/// <see cref="ProcessStartInfo.StandardOutputHandle"/>, or <see cref="ProcessStartInfo.StandardErrorHandle"/>) 48public static int StartAndForget(ProcessStartInfo startInfo) 89/// <param name="startInfo">The <see cref="ProcessStartInfo"/> that contains the information used to start the process.</param> 98/// <see cref="ProcessStartInfo.UseShellExecute"/> is set to <see langword="true"/>. 103public static ProcessExitStatus Run(ProcessStartInfo startInfo, TimeSpan? timeout = default) 142ProcessStartInfo startInfo = CreateStartInfo(fileName, arguments); 155/// <param name="startInfo">The <see cref="ProcessStartInfo"/> that contains the information used to start the process.</param> 163/// <see cref="ProcessStartInfo.UseShellExecute"/> is set to <see langword="true"/>. 168public static async Task<ProcessExitStatus> RunAsync(ProcessStartInfo startInfo, CancellationToken cancellationToken = default) 204ProcessStartInfo startInfo = CreateStartInfo(fileName, arguments); 218/// <param name="startInfo">The <see cref="ProcessStartInfo"/> that contains the information used to start the process.</param> 227/// <para><see cref="ProcessStartInfo.UseShellExecute"/> is set to <see langword="true"/>.</para> 229/// <para><see cref="ProcessStartInfo.RedirectStandardOutput"/> or <see cref="ProcessStartInfo.RedirectStandardError"/> is not set to <see langword="true"/>.</para> 234public static ProcessTextOutput RunAndCaptureText(ProcessStartInfo startInfo, TimeSpan? timeout = default) 299/// <param name="startInfo">The <see cref="ProcessStartInfo"/> that contains the information used to start the process.</param> 307/// <para><see cref="ProcessStartInfo.UseShellExecute"/> is set to <see langword="true"/>.</para> 309/// <para><see cref="ProcessStartInfo.RedirectStandardOutput"/> or <see cref="ProcessStartInfo.RedirectStandardError"/> is not set to <see langword="true"/>.</para> 314public static async Task<ProcessTextOutput> RunAndCaptureTextAsync(ProcessStartInfo startInfo, CancellationToken cancellationToken = default) 361private static ProcessStartInfo CreateStartInfo(string fileName, IEnumerable<string>? arguments) 368private static ProcessStartInfo CreateStartInfoForCapture(string fileName, IEnumerable<string>? arguments) 370ProcessStartInfo startInfo = CreateStartInfo(fileName, arguments); 377private static void ThrowIfUseShellExecute(ProcessStartInfo startInfo, string methodName) 385private static void ThrowIfNotRedirected(ProcessStartInfo startInfo, string methodName)
System\Diagnostics\Process.Unix.cs (2)
436private bool StartCore(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, SafeHandle[]? inheritedHandles) 442private bool StartCoreWithCallback(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, Func<UnixProcessStartArguments, int> callback)
System\Diagnostics\ProcessStartInfo.cs (3)
36/// Default constructor. At least the <see cref='System.Diagnostics.ProcessStartInfo.FileName'/> 154/// on the <see cref="SafeProcessHandle" /> returned by <see cref="SafeProcessHandle.Start(ProcessStartInfo)" />. 262/// causes <see cref="Process.Start(ProcessStartInfo)"/> to throw <see cref="PlatformNotSupportedException"/>.
System\Diagnostics\ProcessUtils.Unix.cs (2)
116internal static (uint userId, uint groupId, uint[] groups) GetUserAndGroupIds(ProcessStartInfo startInfo) 298internal static string[] ParseArgv(ProcessStartInfo psi, string? resolvedExe = null, bool ignoreArguments = false)
System\Runtime\InteropServices\UnixProcessStartArguments.cs (5)
11/// This ref struct is populated by the <see cref="Start(ProcessStartInfo, Func{UnixProcessStartArguments, int})"/> method. 15internal unsafe UnixProcessStartArguments(byte* resolvedPath, byte** arguments, byte** environmentVariables, nint standardInput, nint standardOutput, nint standardError, ProcessStartInfo processStartInfo) 78public ProcessStartInfo ProcessStartInfo { get; } 96/// <exception cref="InvalidOperationException"><see cref="ProcessStartInfo.UseShellExecute"/> is set to <see langword="true"/>.</exception> 101public static Process Start(ProcessStartInfo startInfo, Func<UnixProcessStartArguments, int> callback)
System\Runtime\InteropServices\WindowsProcessStartArguments.cs (5)
11/// This ref struct is populated by the <see cref="Start(ProcessStartInfo, Func{WindowsProcessStartArguments, nint})"/> method. 15internal unsafe WindowsProcessStartArguments(char* arguments, char* environmentVariables, nint standardInput, nint standardOutput, nint standardError, ProcessStartInfo processStartInfo) 66public ProcessStartInfo ProcessStartInfo { get; } 84/// <exception cref="InvalidOperationException"><see cref="ProcessStartInfo.UseShellExecute"/> is set to <see langword="true"/>.</exception> 86public static Process Start(ProcessStartInfo startInfo, Func<WindowsProcessStartArguments, nint> callback)
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
43ProcessStartInfo psi = new ProcessStartInfo(pingExecutable, processArgs);
System.Windows.Forms (1)
System\Windows\Forms\Application.cs (1)
1466ProcessStartInfo currentStartInfo = new()
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
654var startInfo = new ProcessStartInfo()