Sort Visual Studio 2008 Projects alphabetically inside Solution Folders

It is a known bug that Visual Studio does not sort projects alphabetically when the projects are located inside Solution Folders. Since I am working on pretty large solutions (more than 20 projects for 1 solution), and I like to order the projects via Solution Folders, this is a very irritating bug.

However, I accidently found the solution to this problem. Follow the steps below to sort your projects alphabetically inside Solution Folders.

  1. Right-click on a project and select rename (or simple select a project, wait 1 second, and click it again or press F2)
  2. Don’t change the name, simply select another project

Et voila, your projects are sorted like Visual Studio should do!

kick it on DotNetKicks.com

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Comments

January 10. 2009 06:11

David Adsit

Hey! Thanks! We have one solution with 65+ projects and folders seemed natural to help with organizing them.  This bug has been driving me nuts for the last month.  We have one guy on the team who was actually going to write a tool to parse the solution file and resort the projects directly.

David Adsit

February 5. 2009 18:21

Rohan Cragg

At last! Hooray! thanks for posting.

Rohan Cragg

March 3. 2009 18:35

Jeff Doolittle

Unfortunately, when I re-open the solution, the projects are out of order again.  Any idea how to persist the correct sort order?

Jeff Doolittle

March 4. 2009 18:34

Geert van Horrik

I was thinking about writing a simple add-in for Visual Studio that would do this. However, when I finally find the time, VS 2010 will be released.

No, seriously, I hope to find some time soon since this bug is bothering me a lot. The only thing stopping me from developing it right now is that I hope that Microsoft will come with a solution (SP2, since VS2008 is very, very buggy when developing for WPF).

Geert van Horrik

June 29. 2010 20:45

pingback

Pingback from philippetruche.wordpress.com

How to sort projects alphabetically in Visual Studio « Philippe Truche’s Blog

philippetruche.wordpress.com

July 29. 2010 13:16

pingback

Pingback from blog.catenalogic.com

BlogEngine.NET extension: Detailed Download Counter

blog.catenalogic.com

Comments are closed