This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Reading solutions with whitespace throws SolutionFileException

description

Hello,

I'm currently using SLNTools to manage my branches. Recently we hit an issue with an empty line. The solution file is valid, but leads to the following exception:

Image

I looked at the file, and found there is a line of whitespace at line 1079, and confirmed that removing the line of whitespace resolves the issue.

Is there a reason to consider empty lines invalid, or would it be safe to adjust the check to ignore empty lines?

Thanks!

file attachments

comments

kromb wrote May 23, 2016 at 2:16 PM

A simple visual studio solution which can not be parsed by sln tools.
It is enought to add empty line between GlobalSections to crash parsing. Sometimes VS creates such solutions with empty lines for unknown reasons.