c sharp gets assembly version file version
- 2020-05-05 11:50:09
- OfStack
Get the assembly version
Program code
Get the
version of the file Program code
Program code
label version .Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
Get the
version of the file Program code
using System.Diagnostics;
FileVersionInfo myFileVersion = FileVersionInfo.GetVersionInfo (System.Windows.Forms.Application.ExecutablePath);
label version .Text = myFileVersion.FileVersion;