Displaying Version and Build info in my program.
C#
4
Posts
3
Posters
1
Views
1
Watching
-
Hey all, I'm wondering how I can get the version and build info from AssemblyInfo.cs to display in my program. I'm making an "About Box" and I'd like to be able to display this info on a label in the box. Can anyone help me out?
-
Version ver = new Version(Application.ProductVersion); string s = String.Format("v. {0:#}.{1:#}.{2:#}.{3:#}", ver.Major, ver.Minor, ver.Build, ver.Revision); Check out the Version class in Help for more info.