1.第一种:通过System来获取
1 public static Version GetEdition() 2 { 3 return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; 4 }
2.第二种:通过Application来获取
1 Application.ResourceAssembly.GetName().Version.ToString();