我如何获取AssemblyInfo.cs文件内定义的版本信息 Assembly.GetCustomAttributes 方法 (Type, Boolean) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.Reflection.AssemblyProductAttribute productAttribute = (System.Reflection.AssemblyProductAttribute) Assembly.GetCallingAssembly().GetCustomAttributes( typeof(System.Reflection.AssemblyProductAttribute), true)[0]; source = productAttribute.Product;/**随便COPY的一段,未予调试**/ Application.ProductVersion就是.你可以从Application.ProductVersion先产生一个Version对象,然后使用Major,Minor等属性.比如.Version version = new Version(Application.ProductVersion); version.Major; version.Minor;其他的,参考MSDN中的帮助. invoke,是什么意思?十万火急! 用[ ]括起来的代码是什么意思? c#问题~~~~~~~~怎么样把TextBox (文本框变透明) C#嵌入式开发 50RMB,求真正做过VS2005+SQL SERVER 2000打包发布的老师,帮做一个ASP.NET项目的打包!! 100分求一个女孩用的个人主页(只要静态页面就行,dreamweaver) 一个aspx文件(用c#编的)总是通不过,求大家帮忙,谢谢 我是一个初中生谁告诉我程序员对学历要求高吗 初中学历OK? 入门请教 如何动创建、态删除控件? 有谁知道如何转换电子邮件中的字符为正常的字符串? SQL问题
(System.Reflection.AssemblyProductAttribute)
Assembly.GetCallingAssembly().GetCustomAttributes(
typeof(System.Reflection.AssemblyProductAttribute), true)[0];
source = productAttribute.Product;
/**随便COPY的一段,未予调试**/
你可以从Application.ProductVersion先产生一个Version对象,然后使用Major,Minor等属性.比如.Version version = new Version(Application.ProductVersion); version.Major;
version.Minor;
其他的,参考MSDN中的帮助.