首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

获取程序的版本号,还有其他方法吗解决思路

2012-06-12 
获取程序的版本号,还有其他方法吗object[] attributes Assembly.GetExecutingAssembly().GetCustomAttri

获取程序的版本号,还有其他方法吗
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
除了这样的还有其他方法吗

[解决办法]

C# code
public static string Version() {     return Assembly.GetExecutingAssembly().GetName().Version.ToString();} 

热点排行