簡體   English   中英

從程序集文件獲取程序集描述

[英]Getting Assembly Description from assembly file

如何獲得我在緊湊型框架Windows Mobile 6中的assemblyinfo.cs文件中添加的程序集描述。

我從獲得我的構建版本

Assembly.GetExecutingAssembly().GetName().Version.Revision.ToString()

現在如何獲取程序集描述?

嘗試這個

     var descriptionAttribute = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false).OfType<AssemblyDescriptionAttribute>().FirstOrDefault();
var description = descriptionAttribute .Description;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM