获取程序的版本号,还有其他方法吗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();} 