Fix deadlock in GetDotNetSdkVersion (#2622)
* Fix deadlock in GetDotNetSdkVersion * Remove newline at the end of file
This commit is contained in:
Родитель
a739e2cc9a
Коммит
c8105aab56
|
@ -56,7 +56,7 @@ namespace BenchmarkDotNet.Toolchains.DotNetCli
|
|||
|
||||
internal static string? GetDotNetSdkVersion()
|
||||
{
|
||||
using (var process = new Process { StartInfo = BuildStartInfo(customDotNetCliPath: null, workingDirectory: string.Empty, arguments: "--version") })
|
||||
using (var process = new Process { StartInfo = BuildStartInfo(customDotNetCliPath: null, workingDirectory: string.Empty, arguments: "--version", redirectStandardError: false) })
|
||||
using (new ConsoleExitHandler(process, NullLogger.Instance))
|
||||
{
|
||||
try
|
||||
|
|
Загрузка…
Ссылка в новой задаче