gpt4 book ai didi

c# - 程序集命名约定

转载 作者:太空狗 更新时间:2023-10-29 22:04:04 24 4
gpt4 key购买 nike

假设您有一个命名空间,它对贵公司的多个项目都有用,格式为“MyCompany.Core”,您是否有一个程序集以完全相同的方式命名或仅命名为“Core”。为什么或为什么不?

最佳答案

使用标准的 .NET 命名约定,程序集名称为 covered here .我会为您保存(简短)阅读:

Do choose names for your assembly DLLs that suggest large chunks of functionality such as System.Data. Assembly and DLL names do not have to correspond to namespace names but it is reasonable to follow the namespace name when naming assemblies.

Consider naming DLLs according to the following pattern:
<Company>.<Component>.dll
Where <Component> contains one or more dot-separated clauses.

For example, Contoso.WebControls.dll.

关于c# - 程序集命名约定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2188639/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com