问题描述
我们使用AssemblyDescription属性添加注释,我们的组件(如固定/分支信息)。
We were using the AssemblyDescription attribute to add notes to our assemblies (e.g. fix/branch info).
案文可见XP文件属性/注释。然而,在Windows 7中这个领域一直隐藏。
The text was visible on XP in the file Properties/Comments. However in Windows 7 this field has been hidden.
有没有一种方法,以显示在资源管理器或本领域的任何其他工具?
Is there a way to show this field in explorer or any other tool?
MS是否随时随地解释为什么这个领域进行了删除,我们应该用什么呢? (AssemblyTitle?)
Does MS explain anywhere why this field was removed and what we should use instead? (AssemblyTitle?)
推荐答案
在我的测试组件我有这个在我的AssemblyInfo.cs定义
In my test assembly I have this defined in my AssemblyInfo.cs
[assembly: AssemblyDescription("this is a description")]
我可以使用这些线来检索生成的程序集的文字:
I can use either of these lines to retrieve that text from the resultant assembly:
通过PowerShell的
via PowerShell
(dir $path).VersionInfo.Comments
通过C#
System.Diagnostics.FileVersionInfo.GetVersionInfo(path).Comments
这篇关于是什么在Windows 7 happend到AssemblyDescription?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!