Version Property

AssemblyInfo.Version Property

Gets the version number of the application.

Namespace:  Microsoft.VisualBasic.ApplicationServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public Version Version { get; }

Property Value

Type: System.Version
A Version object containing the version number of the application.

For more detailed information, see the Visual Basic topic My.Application.Info.Version Property.

The My.Application.Info.Version property gets a Version object containing the version number of the application. You can use the Major, Minor, Build, and Revision properties of the Version object to access specific version information about the application.

ClickOnce-deployed applications should use the CurrentVersion property of the My.Application.Deployment Property.

This example uses the My.Application.Info.Version property to display the version of the application.

MsgBox("Application version: " & My.Application.Info.Version.ToString)

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

© 2016 Microsoft