question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build log throwing InvalidOperationException

See original GitHub issue

I’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:

image

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.

problem.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
panopticoncentralcommented, Nov 29, 2017

Yeah, sounds good, thanks!

0reactions
bordingcommented, Nov 29, 2017

@panopticoncentral Should a file a new issue on https://github.com/dotnet/project-system-tools about this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found