该AssemblyTitle
属性的实际用途是什么?MSDN说,它为程序集指定了描述,并且程序集标题是一个友好名称,其中可以包含空格。
Visual Studio在项目的属性窗口中询问程序集名称以及默认名称空间。有一个AssemblyName
属性,但它完整描述了装配件的唯一标识(即,文化等)。我看不出AssemblyTitle
与的差异AssemblyProduct
。
我使用IL Disassembler来查看Microsoft的用法AssemblyTitle
。我发现,在mscorlib.dll中,AssemblyTitle
,AssemblyProduct
和AssemblyDefaultAlias
都被设置为"mscorlib.dll"
。
总之,我真正想看到的是使用的实际示例AssemblyTitle
。
您的产品可以包含多个程序集。
所有程序集将具有单个产品名称,单个程序集将具有自己的标题。
AssemblyProduct = "MyProduct"
AssemblyTitle = "MyProduct.Utilities"
和另一个集会
AssemblyTitle = "MyProduct.Security"
该组件标题也是在资源管理器的文件属性等使用File > Properties > Details
标签
File Description = AssemblyTitle
Product name = AssemblyProduct
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句