Get the version of a specific assembly.
Imports System
Imports Microsoft.VisualBasic
Imports System.Reflection
Module MainClass
Sub Main( )
Dim filename As String = ".\StringLibrary.dll"
Dim assem As Assembly = Assembly.ReflectionOnlyLoadFrom(filename)
Dim assemName As AssemblyName = assem.GetName()
Dim ver As Version = assemName.Version
Console.WriteLine("{0}, Version {1}", assemName.Name, ver.ToString())
End Sub
End Module
Related examples in the same category