mtherien / slntools

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

Exception thrown on duplicate sections #9

Closed mtherien closed 6 years ago

mtherien commented 6 years ago

Some SLN files can have duplicate sections. For example I encountered one with two copies of:   GlobalSection(SubversionScc) = preSolution Svn-Managed = True Manager = AnkhSVN - Subversion Support for Visual Studio EndGlobalSection

  Currently (r69120) this results in an ArgumentException. It would be useful if the tool could deal this.   (I am not sure how the solution file ended up with duplicate sections, but VS2010 will open such a SLN file.)

This work item was migrated from CodePlex

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

mtherien commented 6 years ago

[UnknownUser@7/30/2015] Resolved with changeset 73312: Added the concept of "warning" while reading a solution file. Right now, the only warning detected is when a duplicate section is found.

Warnings are treated the following way by the application: