Skip to content

Commit 341a9dd

Browse files
committed
Disable consolelogger due to CI issues
Full error text: ``` Microsoft.Build.Exceptions.InternalLoggerException: The build stopped unexpectedly because the "ReusableLogger" logger failed unexpectedly during shutdown. ---> System.ObjectDisposedException: Cannot write to a closed TextWriter. at System.IO.__Error.WriterClosed() at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) at Microsoft.Build.Framework.BuildFinishedEventHandler.Invoke(Object sender, BuildFinishedEventArgs e) at Microsoft.Build.Logging.EventArgsDispatcher.Dispatch(BuildEventArgs buildEvent) at Microsoft.VisualStudio.SlnGen.ForwardingLogger.Shutdown() at Microsoft.Build.BackEnd.Logging.LoggingService.ShutdownLogger(ILogger logger) ```
1 parent 7cce0a6 commit 341a9dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

GenerateSingleSolution.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,12 @@ $projects = $projects + "$PSScriptRoot\CommunityToolkit.Tooling.XamlNamedPropert
212212
if ($UseDiagnostics.IsPresent)
213213
{
214214
$sdkoptions = " -d"
215-
$diagnostics = '-bl:slngen.binlog --consolelogger:"ShowEventId;Summary;Verbosity=Detailed" --filelogger:"LogFile=slngen.log;Append;Verbosity=Diagnostic;Encoding=UTF-8" '
215+
$diagnostics = @(
216+
'-bl:slngen.binlog'
217+
# Console logger + binlog causes exception and failure
218+
# Track https://github.com/microsoft/slngen/issues/451
219+
#'--consolelogger:ShowEventId;Summary;Verbosity=Detailed'
220+
)
216221
}
217222
else
218223
{

0 commit comments

Comments
 (0)