We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97cc1c1 commit e2b4f9eCopy full SHA for e2b4f9e
src/Cli/dotnet/commands/dotnet-run/RunCommand.cs
@@ -480,7 +480,9 @@ public void Shutdown()
480
static ILogger MakeTerminalLogger(VerbosityOptions? verbosity)
481
{
482
var msbuildVerbosity = ToLoggerVerbosity(verbosity);
483
- var thing = Assembly.Load("MSBuild").GetType("Microsoft.Build.Logging.TerminalLogger.TerminalLogger")!.GetConstructor([typeof(LoggerVerbosity)])!.Invoke([msbuildVerbosity]) as ILogger;
+
484
+ // Temporary fix for 9.0.1xx. 9.0.2xx will use the TerminalLogger in the safe way.
485
+ var thing = new ConsoleLogger(msbuildVerbosity);
486
return thing!;
487
}
488
0 commit comments