Retrieving Assembly Information

My.Application maps the same-named tab within My Project. Because of this, it provides the ability of investigating in-code assemblies’ information. This can be accomplished via the My.Application.Info property (of type Microsoft.VisualBasic.ApplicationServices.AssemblyInfo) that retrieves information about the current assembly, such as the name, version, company name, copyright, and so on. The following code shows how you can accomplish this:

'Assembly informationConsole.WriteLine("Assembly name: {0}",                  My.Application.Info.AssemblyName)Console.WriteLine("Assembly version: {0}",                  My.Application.Info.Version)Console.WriteLine("Company name: {0}",                  My.Application.Info.CompanyName) ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.