AssemblyInfo.Version Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the version number of the application.
public:
property Version ^ Version { Version ^ get(); };
public Version Version { get; }
member this.Version : Version
Public ReadOnly Property Version As Version
A Version object containing the version number of the application.
The application does not have sufficient permissions to access the assembly version.
This example uses the My.Application.Info.Version
property to display the version of the application.
MsgBox("Application version: " & My.Application.Info.Version.ToString)
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 Deployment property.
Project type | Available |
---|---|
Windows Forms Application | Yes |
Class Library | Yes |
Console Application | Yes |
Windows Forms Control Library | Yes |
Web Control Library | No |
Windows Service | Yes |
Web Site | No |
Tuote | Versiot |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 5, 6, 7, 8, 9, 10 |
Tuotteen .NET palaute
.NET on avoin lähdekoodi projekti. Anna palautetta valitsemalla linkki: