Comments (3)
Found another:
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)
--- End of inner exception stack trace ---
at Microsoft.Build.Exceptions.InternalLoggerException.Throw(Exception innerException, BuildEventArgs e, String messageResourceName, Boolean initializationException, String[] messageArgs)
at Microsoft.Build.BackEnd.Logging.LoggingService.ShutdownLogger(ILogger logger)
at Microsoft.Build.BackEnd.Logging.LoggingService.ShutdownComponent()
at Microsoft.Build.Evaluation.ProjectCollection.ShutDownLoggingService()
at Microsoft.Build.Evaluation.ProjectCollection.Dispose(Boolean disposing)
at Microsoft.Build.Evaluation.ProjectCollection.Dispose()
at Microsoft.VisualStudio.SlnGen.Program.Execute(ProgramArguments arguments, IConsole console)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.Invoke(MethodInfo method, Object instance, Object[] arguments)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<OnExecute>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
[slngen-logs.zip](https://github.com/microsoft/slngen/files/10572819/slngen-logs.zip)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<ExecuteAsync>d__154.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<ExecuteAsync>d__183`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](CommandLineContext context)
at Microsoft.VisualStudio.SlnGen.Program.Execute(String[] args, IConsole console)
Can see this in our CI run here: https://github.com/CommunityToolkit/Labs-Windows/actions/runs/4077929697/jobs/7027560709#step:8:1138
Logs from our CI as well:
slngen-logs.zip
from slngen.
Interestingly, on a linux environment on Codespaces things seem to work, so these may be issues with the loggers on Windows only? (Saw them locally and in our CI, so Win10 and Server 2022.)
Logs from linux environment in codespaces attached here.
from slngen.
SlnGen is faking a project started event so that the binary log shows SUCCESS vs FAILURE. It would appear that the SerialConsoleLogger
doesn't like this...
from slngen.
Related Issues (20)
- --collapsefolders true doesn't collapse nested single items
- SlnGenSolutionItem Include doesn't support wildcard expansion HOT 1
- Solution generation fails when multiple projects include the same shared items project HOT 3
- Discussion: Custom Solution/Project Config Mapping HOT 6
- Example for CustomBeforeSlnGenTargets HOT 4
- Logging Parameters help examples don't work
- slngen failing when running on Windows Server 2022 and Linux intermittently HOT 4
- Freeze .NET 8 runtime version requirement HOT 1
- Support MSBuild Target for .NET 7 and 8 HOT 2
- Project file paths get scrambled with error MSB4025 HOT 2
- Support for nested folders in SlnGenSolutionFolder HOT 1
- Cannot build - either with our without .NET 8.0 HOT 6
- Place solution items in the respective folder hierarchy HOT 3
- Gather solution items from entire project list HOT 1
- Feature request: Customize solution using MSBuild properties when using tool HOT 3
- --collapsefolders = true not working for single sub-folders HOT 2
- error MSB4006: There is a circular dependency in the target dependency graph involving target "_GenerateRestoreProjectPathWalk" HOT 2
- The solution folder is not created properly if the driver letters are different. HOT 5
- Drop net5.0 and remove conditions from net8.0 TFM HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slngen.