Assembly.GetExecutingAssembly gets the assembly that contains the code that is currently executing.
Imports System.Reflection Class Example Shared Sub Main() Dim SampleAssembly As [Assembly] Dim Integer1 As New Int32() Dim Type1 As Type Type1 = Integer1.GetType() SampleAssembly = [Assembly].GetAssembly(Integer1.GetType()) Console.WriteLine(("GetExecutingAssembly=" + [Assembly].GetExecutingAssembly().FullName)) End Sub End Class