21 lines
425 B
C#
21 lines
425 B
C#
![]() |
using System.Diagnostics;
|
|||
|
|
|||
|
namespace Microsoft.DotNet.Cli
|
|||
|
{
|
|||
|
internal static class ProcessStartInfoExtensions
|
|||
|
{
|
|||
|
public static int Execute(this ProcessStartInfo startInfo)
|
|||
|
{
|
|||
|
var process = new Process
|
|||
|
{
|
|||
|
StartInfo = startInfo
|
|||
|
};
|
|||
|
|
|||
|
process.Start();
|
|||
|
process.WaitForExit();
|
|||
|
|
|||
|
return process.ExitCode;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|