How to collapse Error List rows to a single line?

Steve Hall 21 Reputation points
2022-05-07T10:08:59.063+00:00

I have some errors deliberately generated by a pre-build batch script via echo Error: blah and also Exit 1 Last night this provided a nice and tidy output to the error window. There seems to be an unavoidable error when you do Exit 1 (of there's an error in the Batch script) which is something like "The command [lists full batch script] exited with error code 1" Last night, this was reduced to 1 line, so not so inconvenient. However, today, it posts the full batch script in the error and I can find no way to manually or automatically collapse errors to one line. Images below:

199901-errorlist1.png

199827-errorlist2.png

How do I collapse (preferably automatically) the error list rows?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,171 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.