Visual-studio – the best practices for directory structures in the Visual Studio project

visual-studio

I have this:

SolutionName: Foo.sln

Assembly:
Foo.Bar

Namespaces are:

Foo.Bar.Views
Foo.Bar.Model
Foo.Bar.BusinessObjects
Foo.Bar.Services

Should the directory structure be like this?

__Foo/Foo.Bar/Foo.Bar.View__ or __Foo/Bar/View__

Best Solution

If you keep the Visual Studio option of "Automatic Namespaces" you would need to have Foo/Bar/Views. Since this is the default behavior of Visual Studio people will be most used to this. Plus it keeps your folder names/paths from getting excessively long.