I am trying to come up with a best practices on project directory structure.
my latest thought is that there should be no classes in the root directory of a project. All classes must go under one of the following directories
- UI
- BusinessObjects
- BusinessLogic
- DataAccess
i would like to hear other people thought on if there are use cases for putting things at the root level or find classes that wouldn’t fit into
If you’re talking about C# then I would separate your DAL, BLL, GUI to different projects instead of one project. And have one solution. This will force each code file to be inside of one of the projects.
I’ve added an example:
If possible you should give the website and winforms project a name relative to your application.