Project structure recommendation for an opensource asp.net mvc project

后端 未结 3 481
温柔的废话
温柔的废话 2021-01-13 15:00

What do you think of the project structure for an opensource CMS application built on asp.net mvc application? The project nickname is \"Gol\".

The basic requiremen

3条回答
  •  北海茫月
    2021-01-13 15:30

    I usually structure my MVC projects with the following projects:

     web
        web.Controller
        model
        Business Logic
        Data Access
        Services
        Any Libraries for sessions, caching etc.
    

    You have quite a well structured project although there are a few things I think you can do to improve it.

    Create a test project for each layer that you have so that you can isolate the tests. If you change your presentation layer you can dump any tests associated with them and move your bussiness logic easily. I would also create another project for integration tests for each layer I have. This is so that you can exclude them for quicker continuous integration compiles.

    I would also not have the UI code in Goi.Core.UI. Your UI code is probably for presentation malipulation and should live in Goi.web

    Good luck with your project

提交回复
热议问题