Create Solution Folder in Visual Studio Express 2013

Liam Flaherty picture Liam Flaherty · Nov 13, 2013 · Viewed 8.7k times · Source

I noticed that when you open a solution in VS 2013 Express which contains solution folders, they load properly and the solutions builds properly. Unlike the express versions of Visual Studio 2010 which showed error messages when the solution loaded.

Here's a screenshot of the AvalonDock solution which is open in Visual Studio 2013 Express: enter image description here

Since Visual Studio 2013 Express can clearly use solution folders, my question is: How do you (if you can at all) create one?

Whether it is a straightforward way from inside Visual Studio or a "hacky" way (for example) of manipulating the .sln file.

Answer

Island Playa picture Island Playa · Nov 22, 2013

To create a new solution folder in VS2013 Express... Open your solution file in a text editor. Add the Project line to the top of the file. If you want to add more than one then you'll have to invent some new GUIDs. Open in VS2013, you can now rename, drag/drop projects into it etc.

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "New Folder", "New Folder", "   {765E7B51-3482-4523-AE2F-6299401EDD0B}"
EndProject
.
.
.