42 writes to StartInfo
Aspire.EndToEnd.Tests (2)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
161AppHostProcess.StartInfo = new ProcessStartInfo(_buildEnv.DotNet, processArguments)
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
230StartInfo = psi,
Aspire.Hosting (1)
Dcp\Process\ProcessUtil.cs (1)
24StartInfo =
Aspire.Hosting.Azure (1)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
24StartInfo =
Aspire.Hosting.Tests (1)
MSBuildTests.cs (1)
98process.StartInfo = new ProcessStartInfo("dotnet", $"build -nodereuse:false -p:UseSharedCompilation=false")
Aspire.Workload.Tests (2)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
161AppHostProcess.StartInfo = new ProcessStartInfo(_buildEnv.DotNet, processArguments)
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
230StartInfo = psi,
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
80StartInfo = psi,
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
80StartInfo = psi,
HelixTestRunner (1)
ProcessUtil.cs (1)
86StartInfo =
InteropTests (2)
Helpers\ClientProcess.cs (1)
24_process.StartInfo = new ProcessStartInfo
Helpers\WebsiteProcess.cs (1)
29_process.StartInfo = new ProcessStartInfo
Microsoft.Arcade.Common (1)
Command.cs (1)
45StartInfo = psi
Microsoft.AspNetCore.Components.WebViewE2E.Test (1)
WebViewManagerE2ETests.cs (1)
30StartInfo = new ProcessStartInfo
Microsoft.AspNetCore.Server.IntegrationTesting (6)
ApplicationPublisher.cs (1)
64var hostProcess = new Process() { StartInfo = startInfo };
Deployers\NginxDeployer.cs (3)
116StartInfo = 169using (var runNginx = new Process() { StartInfo = startInfo }) 211using (var runNginx = new Process() { StartInfo = startInfo })
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
247using (var runScriptsOnRemoteServerProcess = new Process() { StartInfo = startInfo })
Deployers\SelfHostDeployer.cs (1)
145HostProcess = new Process() { StartInfo = startInfo };
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
193var process = new Process() { StartInfo = startInfo };
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
199StartInfo = new ProcessStartInfo
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\Executable.cs (1)
37StartInfo = new ProcessStartInfo()
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
550StartInfo = 594StartInfo =
Microsoft.Build.UnitTests.Shared (1)
RunnerUtilities.cs (1)
122using (var p = new Process { EnableRaisingEvents = true, StartInfo = psi })
Microsoft.Build.Utilities.Core (1)
ToolTask.cs (1)
746proc.StartInfo = GetProcessStartInfo(pathToTool, commandLineCommands, responseFileSwitch);
Microsoft.Build.Utilities.UnitTests (1)
ToolTask_Tests.cs (1)
747customProcess.StartInfo = proc.StartInfo;
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
142StartInfo = new ProcessStartInfo(hostPath)
Microsoft.CodeAnalysis.Test.Utilities (2)
FX\ProcessUtilities.cs (2)
58using (var process = new Process { StartInfo = startInfo }) 115Process p = new Process { StartInfo = startInfo };
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestApp.cs (1)
89StartInfo = psi,
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\GeneralUtils.cs (1)
279StartInfo = info,
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
444StartInfo = info
Microsoft.DotNet.MacOsPkg (1)
ExecuteHelper.cs (1)
23using (Process process = new Process { StartInfo = processStartInfo })
Microsoft.DotNet.RemoteExecutor (1)
RemoteExecutor.cs (1)
477return new RemoteInvokeHandle(options.Start ? Process.Start(psi) : new Process() { StartInfo = psi },
Microsoft.ML.Sweeper (1)
ConfigRunner.cs (1)
228StartInfo =
Roslyn.Test.Performance.Utilities (1)
TestUtilities.cs (1)
134StartInfo = startInfo,
RunTests (1)
ProcessRunner.cs (1)
88process.StartInfo = processStartInfo;
System.Diagnostics.Process (1)
System\Diagnostics\Process.cs (1)
1351process.StartInfo = startInfo;
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
48return new Process() { StartInfo = psi };
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
117process.StartInfo = startInfo;
108 references to StartInfo
Aspire.EndToEnd.Tests (4)
tests\Shared\WorkloadTesting\AspireProject.cs (3)
173AppHostProcess.StartInfo.Environment[item.Key] = item.Value; 177_testOutput.WriteLine($"Starting the process: {_buildEnv.DotNet} {processArguments} in {AppHostProcess.StartInfo.WorkingDirectory}"); 241configureProcess?.Invoke(AppHostProcess.StartInfo);
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
173CurrentProcess.StartInfo,
Aspire.Hosting (2)
Dcp\Process\ProcessUtil.cs (2)
39process.StartInfo.Environment.Clear(); 44process.StartInfo.Environment[key] = value;
Aspire.Hosting.Azure (2)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
39process.StartInfo.Environment.Clear(); 44process.StartInfo.Environment[key] = value;
Aspire.Workload.Tests (4)
tests\Shared\WorkloadTesting\AspireProject.cs (3)
173AppHostProcess.StartInfo.Environment[item.Key] = item.Value; 177_testOutput.WriteLine($"Starting the process: {_buildEnv.DotNet} {processArguments} in {AppHostProcess.StartInfo.WorkingDirectory}"); 241configureProcess?.Invoke(AppHostProcess.StartInfo);
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
173CurrentProcess.StartInfo,
dotnet-svcutil-lib (10)
Shared\Utilities\ProcessRunner.cs (10)
70proc.StartInfo.WorkingDirectory = Path.GetFullPath(currentDir); 71proc.StartInfo.UseShellExecute = false; 72proc.StartInfo.CreateNoWindow = redirectOutput; 73proc.StartInfo.RedirectStandardError = redirectOutput; 74proc.StartInfo.RedirectStandardOutput = redirectOutput; 75proc.StartInfo.FileName = processName; 76proc.StartInfo.Arguments = processArgs; 81proc.StartInfo.Environment.Add(environmentVar); 88proc.StartInfo.StandardErrorEncoding = Encoding.UTF8; 89proc.StartInfo.StandardOutputEncoding = Encoding.UTF8;
HelixTestRunner (6)
ProcessUtil.cs (6)
100process.StartInfo.WorkingDirectory = workingDirectory; 107process.StartInfo.EnvironmentVariables["COMPlus_DbgEnableMiniDump"] = "1"; 108process.StartInfo.EnvironmentVariables["COMPlus_DbgMiniDumpName"] = Path.Combine(dumpDirectoryPath, $"{Path.GetFileName(filename)}.%d.dmp"); 115process.StartInfo.Environment.Add(kvp); 155PrintMessage($"'{process.StartInfo.FileName} {process.StartInfo.Arguments}' completed with exit code '{process.ExitCode}'");
Interop.FunctionalTests (6)
H2SpecCommands.cs (6)
220process.StartInfo.FileName = GetToolLocation(); 221process.StartInfo.RedirectStandardOutput = true; 222process.StartInfo.RedirectStandardError = true; 223process.StartInfo.Arguments = $"{testId} -p {port.ToString(CultureInfo.InvariantCulture)} --strict -v -j {tempFile} --timeout {TimeoutSeconds}" 225process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; 226process.StartInfo.CreateNoWindow = true;
InteropTests (1)
src\Shared\Process\ProcessEx.cs (1)
60var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";
Microsoft.Arcade.Common (20)
Command.cs (20)
60if (_process.StartInfo.RedirectStandardOutput) 68if (_process.StartInfo.RedirectStandardError) 78if (_process.StartInfo.RedirectStandardOutput || 79_process.StartInfo.RedirectStandardInput || 80_process.StartInfo.RedirectStandardError) 82_process.StartInfo.UseShellExecute = false; 90if (_process.StartInfo.RedirectStandardOutput) 95if (_process.StartInfo.RedirectStandardError) 107_process.StartInfo, 115_process.StartInfo.WorkingDirectory = projectDirectory; 124_process.StartInfo.Environment[name] = value; 126_process.StartInfo.UseShellExecute = false; 147_process.StartInfo.RedirectStandardOutput = true; 155_process.StartInfo.RedirectStandardError = true; 163_process.StartInfo.RedirectStandardOutput = true; 178_process.StartInfo.RedirectStandardError = true; 193_process.StartInfo.RedirectStandardOutput = true; 205_process.StartInfo.RedirectStandardError = true; 232_statusForward($"[EXEC Begin] {FormatProcessInfo(_process.StartInfo, includeWorkingDirectory: false)}"); 242var message = $"{FormatProcessInfo(_process.StartInfo, includeWorkingDirectory: !success)} exited with {exitCode}";
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (2)
383 launchBrowser.StartInfo.UseShellExecute = true; 384 launchBrowser.StartInfo.FileName = uri.ToString();
Microsoft.AspNetCore.Components.WebView.Wpf (2)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (2)
383 launchBrowser.StartInfo.UseShellExecute = true; 384 launchBrowser.StartInfo.FileName = uri.ToString();
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\Shared\Process\ProcessEx.cs (1)
60var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";
Microsoft.Build.Utilities.UnitTests (1)
ToolTask_Tests.cs (1)
747customProcess.StartInfo = proc.StartInfo;
Microsoft.DotNet.Arcade.Sdk.Tests (2)
Utilities\TestApp.cs (2)
94output.WriteLine($"Starting: {process.StartInfo.FileName} {process.StartInfo.Arguments}");
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
60var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";
Microsoft.ML.CodeGenerator (12)
Utils.cs (12)
199proc.StartInfo.FileName = @"dotnet"; 200proc.StartInfo.Arguments = $"sln \"{solutionPath}\" add {string.Join(" ", projectPaths)}"; 201proc.StartInfo.UseShellExecute = false; 202proc.StartInfo.RedirectStandardOutput = true; 224proc.StartInfo.FileName = @"dotnet"; 225proc.StartInfo.Arguments = $"sln \"{solutionPath}\" add \"{Path.Combine(consoleAppProjectDir, consoleAppProjectName)}\" \"{Path.Combine(modelprojectDir, modelProjectName)}\""; 226proc.StartInfo.UseShellExecute = false; 227proc.StartInfo.RedirectStandardOutput = true; 245proc.StartInfo.FileName = @"dotnet"; 246proc.StartInfo.Arguments = $"new sln --name \"{solutionFile}\" --output \"{outputPath}\" --force"; 247proc.StartInfo.UseShellExecute = false; 248proc.StartInfo.RedirectStandardOutput = true;
Microsoft.ML.Sweeper (3)
ConfigRunner.cs (3)
238p.StartInfo.WorkingDirectory = workingDir; 242p.StartInfo.RedirectStandardOutput = true; 248p.StartInfo.RedirectStandardError = true;
PrepareTests (5)
TestDiscovery.cs (5)
82pipeClient.StartInfo.FileName = dotnetPath; 86pipeClient.StartInfo.FileName = pathToWorker; 95pipeClient.StartInfo.Arguments = string.Join(" ", arguments); 96pipeClient.StartInfo.UseShellExecute = false; 99pipeClient.StartInfo.RedirectStandardError = true;
PresentationUI (4)
InstallationError.xaml.cs (2)
214Notepad.StartInfo.FileName = "Notepad.exe"; 215Notepad.StartInfo.Arguments = LogFilePath;
TenFeetInstallationError.xaml.cs (2)
217Notepad.StartInfo.FileName = "Notepad.exe"; 218Notepad.StartInfo.Arguments = LogFilePath;
RunTests (1)
Program.cs (1)
171var startInfo = process.StartInfo;
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (2)
1232/// Starts a process specified by the <see cref='System.Diagnostics.Process.StartInfo'/> property of this <see cref='System.Diagnostics.Process'/> 1246ProcessStartInfo startInfo = StartInfo;
System.Windows.Forms.Tests (2)
System\Windows\Forms\InputLanguageTests.cs (2)
206process.StartInfo.FileName = "powershell.exe"; 207process.StartInfo.Arguments = $"-NoProfile -ExecutionPolicy ByPass -File \"{path}\"";
Templates.Blazor.Tests (3)
src\ProjectTemplates\Shared\ProcessResult.cs (2)
12Process = process.Process.StartInfo.FileName + " " + process.Process.StartInfo.Arguments;
src\Shared\Process\ProcessEx.cs (1)
60var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\ProcessResult.cs (2)
12Process = process.Process.StartInfo.FileName + " " + process.Process.StartInfo.Arguments;
src\Shared\Process\ProcessEx.cs (1)
60var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\ProcessResult.cs (2)
12Process = process.Process.StartInfo.FileName + " " + process.Process.StartInfo.Arguments;
src\Shared\Process\ProcessEx.cs (1)
60var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\ProcessResult.cs (2)
12Process = process.Process.StartInfo.FileName + " " + process.Process.StartInfo.Arguments;
src\Shared\Process\ProcessEx.cs (1)
60var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";
Templates.Tests (3)
src\ProjectTemplates\Shared\ProcessResult.cs (2)
12Process = process.Process.StartInfo.FileName + " " + process.Process.StartInfo.Arguments;
src\Shared\Process\ProcessEx.cs (1)
60var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";