MSBuildLocator.QueryVisualStudioInstances hangs if COREHOST_TRACE is set to 1
FiniteReality opened this issue · comments
Monica S. commented
A hang can occur when locating the .NET SDK using dotnet --info
, if the COREHOST_TRACE
environment variable is set to 1
. This is because RedirectStandardError is set to true
, and nothing reads from the standard error stream.
Rainer Sigwald commented
Thanks for the report! This would be avoided by #111 but I think we'd also take a patch to stop reading stderr.