Archivi tag: codice

[VB.NET] – How to get version at runtime

How to get our sw version at runtime

Private Function GetVersion() As String
Dim versione As String = String.Empty
Dim gi As FileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location)
versione = gi.FileMajorPart & "." & gi.FileMinorPart & "." & gi.FileBuildPart & "." & gi.FilePrivatePart
Return versione
End Function