8

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.

Liam Flaherty
  • 337
  • 1
  • 7
  • 19

3 Answers3

11

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
.
.
.
Island Playa
  • 126
  • 1
  • 3
  • I saw this when looking at hacky ways to do it. But it must be an acceptable way to create the folders. Thanks – Liam Flaherty Nov 22 '13 at 22:22
  • Nice, thanks. To be safe, make sure you get a unique GUID for the solution folder project (e.g. from http://www.guidgen.com/) – yoyo Dec 05 '13 at 20:34
  • To future readers of this Question : note that the Project GUID (e.g. Project("{... ) for solution folders has to be different from the one of the actual projects. – CTZStef Feb 26 '14 at 18:48
  • 3
    The first GUID in the example i.e. {2150E333-8FDC-42A3-9474-1A3956D46DE8} is very important because it indicates the project type is a 'Folder'. The second GUID on the same line uniquely identifies the project, which can be any GUID obtained from any GUID generator. – reexmonkey Apr 04 '14 at 18:09
6

Select Solution and press Ctrl+Shift+A. Then create text file. Text file will be placed at new folder "Solution Files", Then delete text file and rename folder. =)

user3848868
  • 61
  • 1
  • 2
4

Alternatively, the Visual Studio Express 2013 Web fully supports this. If you don't want to mess around with the solution file, you can open the solution using the Web version and add the folder from there.

enter image description here

I don't know why the Web version supports it but not the Desktop

Yorro
  • 11,445
  • 4
  • 37
  • 47