You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// use the built-in Version classVersionversion=Version("1.2.3");Console.WriteLine($"{version.Major}.{version.Minor}.{version.Build}");
// get the version of this applicationVersionversion=System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;Console.WriteLine($"{version.Major}.{version.Minor}.{version.Build}");
// get the version of something elseVersionver=typeof(Form1).Assembly.GetName().Version;lblVersion.Text=ver.ToString();