[英]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.