Should the folders in a solution match the namespace?

后端 未结 7 783
予麋鹿
予麋鹿 2020-12-02 06:05

Should the folders in a solution match the namespace?

In one of my teams projects, we have a class library that has many sub-folders in the project.

Project

相关标签:
7条回答
  • 2020-12-02 07:04

    I think the standard, within .NET, is to try to do it when possible, but not to create unnecessarily deep structures just to adhere to it as a hard rule. None of my projects follow the namespace == structure rule 100% of the time, sometimes its just cleaner/better to break out from such rules.

    In Java you don't have a choice. I'd call that a classic case of what works in theory vs what works in practice.

    0 讨论(0)
提交回复
热议问题