views:

147

answers:

2

I prefer for the solution file to be in the same folder as the project files in Visual Studio. I know this is accomplished by unchecking the "Create directory for solution" checkbox. However, VS 2008 defaults to having the box checked.

I am interested in other people's opinions on whether the solution file should live in the same directory.

+11  A: 

When a solution contain more than one project, I like a solution file in a parent directory and the project files in its child directories.

When a solution contains many projects (my current solution has 36 projects/assemblies), then I'll have:

  • Grandparent: solution
  • Child directories: "solution folders" which are logical collections of projects
  • Grandchildren: the projects themselves
ChrisW
Yes, in the root folder you have only the solution file and a folder for each project.
James L
A: 

I prefer it something like this:

MyProject
  src
    Domain
    Application
    Infrastructure
    UI
  solutions
    MyProject
    Infrastructure
    Domain

Solutions folder contains solution folders. All projects are referenced from src folder.

Arnis L.
I'm curious, what is the advantage of your approach?
Treb
Reusability .
Arnis L.