Get the version of the executing assembly (that is, this assembly).
Imports System
Imports System.Reflection
Imports Microsoft.VisualBasic
Module MainClass1
Sub Main()
Dim assem As Assembly = Assembly.GetEntryAssembly()
Dim assemName As AssemblyName = assem.GetName()
Dim ver As Version = assemName.Version
Console.WriteLine("Application {0}, Version {1}", assemName.Name, ver.ToString())
End Sub
End Module
Related examples in the same category