1

Closed

Fixes to sorting nested solution folders

description

Thanks for the Solution Sorter. Unfortunately it does not work when a solution contains a hierarchy of folders and projects. My current solution has a hierarchy about 3-4 items deep. I have enhanced the Solution Sorted code to cope with this. I parse the GlobalSection(NestedProjects) section of the solution file, which contains the hierarchy info, represented as child-parent relationships between project guids; I create a sorted tree from this data which I then use to sort the main project items into the tree order.
 
What would you like me to do with the source code?

file attachments

Closed Oct 28, 2009 at 12:05 AM by jeffdoolittle

comments

AdrianStanley wrote Apr 14, 2009 at 8:59 AM

Please find attached my changes to this project.

wrote Apr 14, 2009 at 8:59 AM

jeffdoolittle wrote Apr 14, 2009 at 5:00 PM

Hi Adrian,

Thanks for the contribution! Can you also send me a copy of a solution file that contains a hierarchy of folders and projects? I'd like to update the test data to include a solution file that demonstrates this bug before I apply your changes. This will help prevent regression moving forward.

Thanks!

--Jeff

AdrianStanley wrote Apr 15, 2009 at 8:57 AM

Please find attached a new solution that contains an unsorted hierarchy of projects and folders. I reused your existing test projects; you can see the incorrect sorting within Folders A & B. I hope this helps.

wrote Apr 15, 2009 at 8:57 AM

wrote May 14, 2009 at 9:37 PM

jeffdoolittle wrote May 14, 2009 at 9:37 PM

Fixed with patches provided by AdrianStanley.

** Closed by jeffdoolittle 5/14/2009 2:37 PM

jeffdoolittle wrote May 14, 2009 at 9:37 PM

wrote May 14, 2009 at 9:38 PM

wrote Oct 28, 2009 at 12:05 AM

wrote Feb 13, 2013 at 2:06 AM

wrote May 15, 2013 at 1:34 AM