读书人

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

发布时间: 2012-06-12 14:21:25 作者: rapoo

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

[解决办法]

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

读书人网 >C#

热点推荐