Visual Studio解决方案和项目的命名约定

编程入门 行业动态 更新时间:2024-10-27 03:31:19
本文介绍了Visual Studio解决方案和项目的命名约定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们正在考虑以这种方式组织BIG项目:

We were thinking about organizing our BIG project this way:

\trunk [CompanyName] [Product1] [Project1] CompanyName.Product1.Project1.csproj [Project2] CompanyName.Product1.Project2.csproj CompanyName.Product1.sln [Product2]

我们试图遵循Microsoft的建议,即名称空间名称遵循文件夹结构,但是采用这种方式是否有任何弊端? 您应用的解决方案和项目的命名约定是什么?

We were trying to follow Microsoft's recommendation that namespace names follow folder structure, but are there any drawbacks for making it this way? What is the naming convention for solutions and projects that you apply?

推荐答案

如果您问我,这看起来不错.尤其要用全名(包括全名空间部分)来命名您的项目.当有许多项目时,特别是在跨不同产品的类似项目中,我发现这很有用.

That looks pretty good if you ask me. Especially naming your projects by their full name including full name space part. I've found this helpful when there are numerous projects, especially if there happens to be similar projects across different products.

如何以及是否按产品和项目划分(我认为项目更像是一个应用程序而不是解决方案项目)很大程度上取决于组织的规模,组成和喜好.

How and whether you split on product and project (where I assume project is more like an application than a solution project) is very much down to the size of your organisation, it's make-up and your preferences.

更多推荐

Visual Studio解决方案和项目的命名约定

本文发布于:2023-05-28 12:27:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/320878.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:解决方案   项目   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!