本文介绍了“AssemblyTitle”在.NET Framework属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是实际使用中的 AssemblyTitle 属性? MSDN说,它指定一个描述程序集和程序集的标题是一个好记的名称可以包含空格。

What is the practical use of the AssemblyTitle attribute? MSDN says that it specifies a description for an assembly and that the assembly title is a friendly name which can include spaces.

Visual Studio中要求的项目以及默认的命名空间的属性窗口中的程序集名称。有一个的AssemblyName 属性,但它描述了一个组件的独特身份满时(即,文化等)。我看不出 AssemblyTitle 不同于 AssemblyProduct

Visual Studio asks for the assembly name in the properties window of the project along with the default namespace. There is an AssemblyName attribute but it describes an assembly's unique identity in full (i.e., culture, etc.). I don't see how AssemblyTitle differs from AssemblyProduct.

我用IL反汇编看微软如何使用 AssemblyTitle 。我发现,在 mscorlib.dll中 AssemblyTitle AssemblyProduct AssemblyDefaultAlias​​ 都设置为mscorlib.dll中

I used the IL Disassembler to see how Microsoft uses AssemblyTitle. I discovered that in mscorlib.dll, AssemblyTitle, AssemblyProduct and AssemblyDefaultAlias are all set to "mscorlib.dll".

在最后,我真正想看到的是用实际的例子 AssemblyTitle

In conclusion, what I really would like to see are practical examples of the use of AssemblyTitle.

推荐答案

您的产品可以包含多个组件。

Your Product can comprise of several assemblies.

所有程序集都会有一个单一的产品名称和个别组件都会有自己的标题。

All of the assemblies will have a single product name and individual assemblies will have their own titles.

AssemblyProduct =myProduct的

AssemblyProduct = "MyProduct"

AssemblyTitle =MyProduct.Utilities

AssemblyTitle = "MyProduct.Utilities"

和再组装

AssemblyTitle =MyProduct.Security

AssemblyTitle = "MyProduct.Security"

组装标题也被用在浏览器文件属性等文件>性状>详情设置页

the assembly title is also used in the explorer file properties etc. File > Properties > Details tab

File Description = AssemblyTitle
Product name = AssemblyProduct

这篇关于“AssemblyTitle”在.NET Framework属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 20:31