Visual Studio 2008 : Where is my Solution Explorer item sort gone ?

By Jerome at December 11, 2007 13:58
Filed Under: .NET

As a new user of VS2008 and senior user of VS2005, you may just just start to convert your projects to VS2008. Good. Then you look at your solution and start to look for your favorite project in the Solution Explorer and have trouble finding it... Of course ! The list is not sorted...

You may wonder, where is that sorting gone ? Well, I don't know exactly but it seems that if you select a project, press F2, then enter without modifying a thing... The tree sorts itself out! The bad thing is that you can't save that sorted list, as it seems that it is only the TreeView that sorts the item list, not the internal list that is sorted... I know for a fact that there are some PowerToys that sort the entries in the SLN file, I'll try to look for that.

How could something as visible as this has passed through the beta phase ? :)

Comments

2/23/2009 11:05:47 AM #

Thanks for the workaround, our office is now happy again and no longer drifting into insanity. I still can't explain myself how VS sorts the thing, other than plugging rand() into qsort().

Extra notes: make sure to select a _project_, not the solution. The sort will (unfortunately) only occur within the folder solution. If you have multiple folder solutions, you'll have to repeat the operation.

Also, F2 seem to not work on some versions of VS 2008, but other methods (the Rename command, or re-clicking it after 1 second) work.

Setz United States

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading




About me

My name is Jerome Laban, I am a Software developer and .NET enthustiast from Montréal, QC. You will find my blog on this site, where I'm adding my thoughts on current events, or the things I'm working on, such as the Bluetooth Remote Control Software for Windows Mobile.