string fullVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
The above code will return your version in string like "1.0.0.0". Using the .Version property, you can retrieve major , minor etc... other version properties as per requirement.
No comments:
Post a Comment