mtherien / slntools

Solution Tools for Visual Studio - manages solution files
MIT License
28 stars 14 forks source link

Reading solutions with whitespace throws SolutionFileException #12

Open mtherien opened 6 years ago

mtherien commented 6 years ago

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:

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!

Attachments

SLNTools.sln

This work item was migrated from CodePlex

CodePlex work item ID: '8069' Vote count: '1'

mtherien commented 6 years ago

[kromb@5/23/2016] 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.