Version.Major
using System; using System.Reflection; [assembly:AssemblyVersionAttribute("1.2.3.4")] [assembly:AssemblyTitleAttribute("Example")] class MainClass { public static void Main() { Version v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; Console.WriteLine(v.ToString()); Console.WriteLine(v.Major + "." + v.Minor + "." + v.Build + "." + v.Revision); } }