[Project organization] some advices

/*By Dylan SUN */

I’ve been worked recently on the project structure refactoring. A good project structure could give you a good visibility and a clear understanding even you are brandly new in a project, and make your further development much easy.

Some practices could be applied to increase the project maintainability and facilitate the development in the team if there are multiple projects and multiple solutions.

I would like to introduce some advice based on my own experience.

  1. Manage common package (using Nuget)
    It’s very practical when you have multiple solutions in your team. You can manage to use the same version of tools or packages in the whole application to ensure the consistence.

  2. Separate projects with sub-folders physically and create identical virtual folders.
    For example, you can organize your solution with the following sub folders.

2.1 ExternalReferences: all your references from other solutions.
2.2 Libraries: your projects shared to all layers
2.3 PresentationLayer: this could be ASP.NET projects, WPF projects,Window Forms projects.
2.4 ServiceLayer: it contains different services to provide different functionalites to presentation layer.
2.5 BusinessLayer: it includes business logics.
2.6 DataAccessLayer: a centric layer to manager all the data access in your projects
2.7 UnitTests: include your unit tests
2.8 IntegrationTests: as integration tests could be complicated and take long time. It’s preferred to have a dedicated project for it.

The project organization really depends on the product you are developing. A good project organization can make your development much easier. So before development a project, take a little time to well conceive its organization.

I hope you find this article helpful! Thanks.

你可能感兴趣的:([Project organization] some advices)