如何为解决方案中的项目选择名称?

发布于 2024-09-07 07:47:34 字数 421 浏览 9 评论 0原文

也许这很愚蠢,但是当我试图为我的项目找到合适的名称时,我再次感到困惑。

我有两个项目的解决方案。第一个项目是一个库,将来将被其他库使用,用于为我的应用程序创建插件。第二个项目是一个 exe,它使用第一个项目来创建 GUI 并执行一些操作,例如。加载插件。

在类似的情况下,当一个项目是dll,第二个项目是exe时,如何为每个项目选择名称?

假设我想查看一个名称 GraphDemonstration。 exe 应该是 GraphDemonstrationGUI 和 dll - GraphDemonstration?但 exe 不仅仅是一个 GUI。那么也许 GraphDemonstration 用于 exe,GraphDemonstrationLib 用于 dll?

我过去也遇到过类似的情况。也许有某种命名约定?我什至不知道我的“问题”是否仅与 VS 有关。

Maybe that's silly, but I'm confused again when trying to find appropriate names for my projects.

I have a solution with two projects. First project is a library, which will be used by other libraries in the future, for creating plugins for my app. Second project is a exe, which uses first project to create GUI and do some stuff, eg. load plugins.

In similar situation, when one project is a dll and second is an exe, how do you choose names for each project?

Lets say, that I would like to peek a name GraphDemonstration. The exe should be GraphDemonstrationGUI and dll - GraphDemonstration? But exe is not just a GUI. So maybe GraphDemonstration for exe and GraphDemonstrationLib for dll?

I have had similar situation in the past. Maybe there is some kind of naming convention? I don't even know if my "problem" is related to VS only.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

伊面 2024-09-14 07:47:34

EXE 的 GraphDemonstration 很好,因为它描述了 EXE 的用途。但是,您说该库稍后将被其他项目使用,因此 GraphDemonstrationLibrary 的“GraphDemonstration”部分可能不是最佳选择。也许是 GraphLibrary,或者 GraphHelper,或者可能更具体,具体取决于库中实际包含的内容。例如,如果该库处理实例化 Excel 对象以生成图形,您可以将其称为 ExcelGraphHelper.dll。

GraphDemonstration for your EXE is fine because it describes the purpose of the EXE. However, you said the library will be used by other projects later so the "GraphDemonstration" part of GraphDemonstrationLibrary may not be the best choice. Perhaps GraphLibrary, or GraphHelper, or maybe more specific depending on what is actually included in the library. For example, if the library handles instantiating an Excel object to generate a graph you could call it ExcelGraphHelper.dll.

情绪失控 2024-09-14 07:47:34

如果这是主类 CSomeClass 的库,我将项目命名为 SomeClassLibrary
对于小型但非主要对象的项目。

If this is library of main class CSomeClass I name project SomeClassLibrary.
For projects smillary but non from main object.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文