This project is read-only.

Stupid Question: How do I include these numbers in a version string?

May 15, 2012 at 3:47 PM

Is it this??

 

            var ver = Assembly.GetExecutingAssembly().GetName().Version;

            Text = string.Format("Logon {0}.{1}.{2}", ver.Major, ver.Minor, ver.Revision);

 

Doesn't look right.

May 15, 2012 at 6:45 PM

For others, stupid question is answered:

 

            var nam = Assembly.GetExecutingAssembly().GetName();

            Text = nam.Name + " " + nam.Version.ToString();