2

Closed

Error when using Solution Sorter - System.ArgumentOutOfRangeException

description

When I try to use the solution sorter I get following error:
 
Unhandled Exception: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at SolutionSorter.Core.ContentSorter.SortProjectContent(String content)
at SolutionSorter.Core.ContentSorter.SortContent(String content)
at SolutionSorter.Core.SortManager.SortSolutionFile()
at SolutionSorter.Console.Program.Main(String[] args)
 
Any idea?
Closed Oct 28, 2009 at 12:06 AM by jeffdoolittle

comments

jeffdoolittle wrote Mar 17, 2009 at 5:32 AM

If you send me your .sln file, I can check it out.

--Jeff

wrote Mar 17, 2009 at 5:33 AM

Depechie wrote Mar 17, 2009 at 7:34 PM

Hey Jeff... I here it is.

wrote Mar 17, 2009 at 7:35 PM

wrote Mar 17, 2009 at 8:04 PM

wrote Mar 17, 2009 at 10:30 PM

jeffdoolittle wrote Mar 17, 2009 at 10:34 PM

Fixed in the latest release. Your .sln file had the work "Global" in it, so I had to modify the file parser to search for "Global\r\n" to define the end of the Project section of the .sln file. This fixed the problem. Let me know how it works for you now.

--Jeff

Depechie wrote Mar 18, 2009 at 11:49 AM

Jeff, works like a charm :D !

wrote Mar 18, 2009 at 5:21 PM

wrote Mar 18, 2009 at 5:21 PM

wrote Oct 28, 2009 at 12:06 AM

wrote Feb 13, 2013 at 2:06 AM

wrote May 15, 2013 at 1:34 AM