Build log throwing InvalidOperationException
See original GitHub issueI’m using https://github.com/dotnet/project-system-tools to capture build logs. When viewing the design-time logs, everything is fine, but when I view a regular build log, I keep seeing the following:
The exception is:
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at Microsoft.Build.Logging.StructuredLogger.MessageProcessor.AddCommandLine(TaskCommandLineEventArgs args) in C:\MSBuildStructuredLog\src\StructuredLogger\Construction\MessageProcessor.cs:line 408
at Microsoft.Build.Logging.StructuredLogger.Construction.MessageRaised(Object sender, BuildMessageEventArgs args) in C:\MSBuildStructuredLog\src\StructuredLogger\Construction\Construction.cs:line 307
This log was created with Visual Studio 2017 15.4.4 using a new project created with the Console App (.NET Core) template.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
When is a good time to throw InvalidOperationException?
The exception that is thrown when a method call is invalid for the object's current state. There are clear-cut cases, and the one...
Read more >InvalidOperationException Class (System)
An InvalidOperationException is thrown when you try to access a UI element from a thread other than the UI thread. The text of...
Read more >Throwing ArgumentException and InvalidOperationException
An exception is thrown when an error is encountered in a running application, whether from bad code or bad user input.
Read more >C# Exception Guide: InvalidOperationException
The InvalidOperationException exception type is thrown when a method call is invalid for the object's current state. Some common causes of the ...
Read more >Cannot dispose the build manager
The project compiles ( According to the Activity log of the TFS Build Agent) but then the part where SA should come in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, sounds good, thanks!
@panopticoncentral Should a file a new issue on https://github.com/dotnet/project-system-tools about this?