如何为解决方案中的项目选择名称?
也许这很愚蠢,但是当我试图为我的项目找到合适的名称时,我再次感到困惑。
我有两个项目的解决方案。第一个项目是一个库,将来将被其他库使用,用于为我的应用程序创建插件。第二个项目是一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
如果这是主类
CSomeClass
的库,我将项目命名为SomeClassLibrary
。对于小型但非主要对象的项目。
If this is library of main class
CSomeClass
I name projectSomeClassLibrary
.For projects smillary but non from main object.