225 instantiations of ProcessStartInfo
aspire (34)
Aspire.Cli.EndToEnd.Tests (1)
Aspire.Cli.Tests (1)
Aspire.Deployment.EndToEnd.Tests (28)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.JavaScript.Tests (2)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Python (1)
Aspire.Hosting.Python.Tests (2)
Aspire.Hosting.Tests (4)
Aspire.Templates.Tests (2)
csc (1)
dotnet (10)
dotnet-aot (4)
dotnet-dev-certs (12)
dotnet-format (1)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-suggest (1)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
Infrastructure.Tests (4)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Components.Testing (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (12)
Microsoft.AspNetCore.Server.IntegrationTesting (7)
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Microsoft.AspNetCore.SpaProxy (3)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.Build (3)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Cli.Utils (2)
Microsoft.DotNet.MacOsPkg.Core (1)
Microsoft.DotNet.StrongName (2)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.McpServer.ProjectTemplates.Tests (1)
Microsoft.NET.Build.Containers (3)
Microsoft.NET.HostModel (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.Sdk.Razor.Tasks (1)
Microsoft.TemplateEngine.Cli (2)
Microsoft.TestPlatform.Build (1)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
NuGet.Build.Tasks (1)
NuGet.CommandLine.XPlat (1)
NuGet.Common (1)
NuGet.Credentials (1)
NuGet.Protocol (2)
Pipelines.AppHost (4)
Pipelines.Library (1)
RepoTasks (12)
rzc (1)
SuperFileCheck (1)
System.CodeDom (1)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (5)
System.Net.Ping (1)
System.Windows.Forms (1)
vbc (1)
VBCSCompiler (1)
292 references to ProcessStartInfo
aspire (32)
Aspire.EndToEnd.Tests (6)
Aspire.Hosting.DevTunnels (2)
Aspire.Hosting.JavaScript.Tests (1)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Python (1)
Aspire.Hosting.Python.Tests (2)
Aspire.Hosting.Tests (1)
Aspire.Templates.Tests (6)
csc (1)
dotnet (9)
dotnet-aot (3)
dotnet-dev-certs (10)
dotnet-format (5)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-suggest (1)
dotnet-user-jwts (3)
dotnet-user-secrets (3)
Infrastructure.Tests (10)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.Arcade.Common (4)
Microsoft.AspNetCore.Components.Testing (3)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (10)
Microsoft.AspNetCore.Server.IntegrationTesting (9)
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Microsoft.AspNetCore.SpaProxy (3)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.Build (3)
Microsoft.Build.Framework (5)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.Build.Utilities.Core (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild (10)
Microsoft.DotNet.Cli.Utils (11)
Microsoft.DotNet.MacOsPkg.Core (2)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.McpServer.ProjectTemplates.Tests (1)
Microsoft.NET.Build.Containers (2)
Microsoft.NET.HostModel (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.Sdk.Razor.Tasks (1)
Microsoft.TestPlatform.Build (1)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.PlatformAbstractions (1)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
netstandard (1)
NuGet.CommandLine.XPlat (1)
NuGet.Common (1)
NuGet.Credentials (2)
NuGet.Protocol (3)
RepoTasks (10)
rzc (1)
sdk-tasks (2)
SuperFileCheck (1)
System (1)
System.CodeDom (1)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (73)
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,
System\Diagnostics\Process.cs (11)
51private ProcessStartInfo? _startInfo;
528/// 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'/>.
531public ProcessStartInfo StartInfo
1249ProcessStartInfo startInfo = StartInfo;
1276ProcessStartInfo.ValidateInheritedHandles(childInputHandle, childOutputHandle, childErrorHandle, inheritedHandles);
1306ProcessStartInfo startInfo,
1384private static void CloseChildHandles(ProcessStartInfo startInfo, SafeFileHandle? childInputHandle, SafeFileHandle? childOutputHandle, SafeFileHandle? childErrorHandle)
1406private void CreateStandardStreams(ProcessStartInfo startInfo, SafeFileHandle? parentInputPipeHandle, SafeFileHandle? parentOutputPipeHandle, SafeFileHandle? parentErrorPipeHandle)
1431internal bool StartCoreWithCallback(ProcessStartInfo startInfo,
1456ProcessStartInfo.ValidateInheritedHandles(childInputHandle, childOutputHandle, childErrorHandle, inheritedHandles);
1540public static Process? Start(ProcessStartInfo startInfo)
System\Diagnostics\Process.Scenarios.cs (33)
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, IList<string>? arguments)
365ProcessStartInfo startInfo = new(fileName);
377private static ProcessStartInfo CreateStartInfoForCapture(string fileName, IList<string>? arguments)
379ProcessStartInfo startInfo = CreateStartInfo(fileName, arguments);
386private static void ThrowIfUseShellExecute(ProcessStartInfo startInfo, string methodName)
394private static void ThrowIfNotRedirected(ProcessStartInfo startInfo, string methodName)
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.Net.Ping (1)
System.Windows.Forms (1)
vbc (1)
VBCSCompiler (1)