GitVersion icon indicating copy to clipboard operation
GitVersion copied to clipboard

[Improvement] Report xml file location when xml parsing fails

Open chhh opened this issue 1 year ago • 0 comments

Is your improvement request related to a problem? Please describe. I was confused when in a solution with 20+ projects I ran gitversion and got an XmlException printed that didn't mention the exact file that was causing problems. And 100 lines of git log were printed in addition.

Detailed Description

I was trying to update csproject filesin a solution with 20+ projects. I ran gitversion and got an XmlException printed that didn't mention the exact file that was causing problems. At this point I had no idea what files gitversion was even trying to parse that made it fail.

Context

Updating version info in multiple csproject files in a large solution.

Possible Implementation

Simply wrap xml reading call in try/catch and add file location in XmlException message.

chhh avatar Aug 26 '22 20:08 chhh