Apr 2, 2012

How to get current version of Application or Assembly in .Net C#?

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();

No comments: