dotnet core v3.1/3.0 Process.Start execute shell command Memory Leak
System: Ubuntu 18.04 / CentOS 7.6 / SUSE 15
SDK: 3.1.100
ex:
var psi = new ProcessStartInfo("dotnet");
psi.RedirectStandardOutput = true;
psi.Arguments = $"--version";
using (var proc = Process.Start(psi))
{
var output = proc.StandardOutput.ReadToEnd();
var version = output.Trim();
if (!proc.HasExited)
{
proc.Kill();
}
}
dotnet core v3.1/3.0 Process.Start execute shell command Memory Leak
System: Ubuntu 18.04 / CentOS 7.6 / SUSE 15
SDK: 3.1.100
ex: