项目布局(在磁盘上)在Visual Studio磁盘、布局、项目、Studio

2023-09-03 15:31:16 作者:默陌

什么是管理一个Visual Studio项目在磁盘上的物理布局的最好方法是什么?我得到的地步,我有几个文件夹,但我真的不能继续分类现在我的方式。例如,我有几个自定义控件,但有时这些控件都与应用程序设置,所以做他们进入控件文件夹或应用程序设置文件夹?我有一个驻留在主源文件夹中,这样它变得有点吓人寻找合适的源文件很多羽翼丰满的形式。

What's the best way to manage the physical layout of a Visual Studio project on disk? I'm getting to the point where I have several folders but I can't really continue categorizing the way I am now. For example, I have several custom controls, but sometimes those controls have to do with application settings, so do they go into the Controls folder or Application Settings folder? I have many full-fledged forms that reside in the main source folder so that it's getting a bit daunting looking for the right source file.

有什么秘笈任何人都可以提供关于他们如何安排自己的中型项目到文件夹层次结构,使他们不要去疯狂试图找到一些项目?

Are there any tips anyone can offer on how they organize their medium-sized projects into folder hierarchies so they don't go insane trying to locate something in the project?

推荐答案

我通常是基于我的名字空间组织我的文件夹。例如,归类命名空间Company.Project.DataAccess将被存储在公司/项目/ DataAccess目录。

I typically organize my folders based on my namespaces. For example, classed in the namespace "Company.Project.DataAccess" would be stored in company/project/dataAccess directory.

我承认,这仍是轻微的疼痛,管理打开的文件。然而, ReSharper的的去输入功能已经消除了所有我的搜索的解决方案资源管理器。

I admit that this is still slightly painful to manage opening files. However, Resharper's "Go to type" feature has eliminated all of my searching in Solution Explorer.