Mega Code Archive

 
Categories / VB.Net / Reflection
 

Get Information from Assembly

Imports System Imports System.Windows.Forms Imports System.Reflection Imports System.Runtime.InteropServices <Assembly: AssemblyTitle("My Title")>  <Assembly: AssemblyDescription("A description.")>  <Assembly: AssemblyCompany("Pretty Good Software")>  <Assembly: AssemblyProduct("A Really Great Product!")>  <Assembly: AssemblyCopyright("Copyright ? 2005")>  <Assembly: AssemblyTrademark("TM")>  <Assembly: CLSCompliant(True)>  <Assembly: ComVisible(False)> 'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid("4db4b206-3cc5-4ea0-9e91-59537aba04a8")>  ' Version information for an assembly consists of the following four values: ' '      Major Version '      Minor Version  '      Build Number '      Revision ' ' You can specify all the values or you can default the Build and Revision Numbers  ' by using the '*' as shown below: ' <Assembly: AssemblyVersion("1.0.*")>  <Assembly: AssemblyVersion("1.2.3.4")>  <Assembly: AssemblyFileVersion("5.6.7.8")>  Public Class MainClass    Shared Sub Main()        Console.WriteLine( Application.ProductName )        Console.WriteLine( Application.CompanyName )        Console.WriteLine( Application.ProductVersion )    End Sub  End Class