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


Exception thrown on duplicate sections


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
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.)
Closed Jul 30, 2015 at 8:49 PM by christianwarren


wrote Jul 30, 2015 at 8:49 PM

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:
  • CompareSolutions,MergeSolutions => Considered as error unless "-IgnoreWarning" is used on the command line.
  • CreateFilterFileFromSolution,EditFilterFile => Ignored.
  • OpenFilterFile => Writen in console output but ignored.