To get the current version of an Application or Assembly you have to use GetExecutingAssembly() method which is member of System.Reflection.Assembly.
Example:-
using System.Reflection;
lblCurrentVer.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
Example:-
using System.Reflection;
lblCurrentVer.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
No comments:
Post a Comment