I found the following post from an Andrej Tozon in 2006: (full context:
http://social.msdn.microsoft.com/for...4-b623db6ba87b)
The version you're currently displaying is not the published version, but an
application (assembly) version. Those version numbers aren't the same and
are not synchronized. To use the published version, use
My.Application.Deployment.CurrentVersion:
If My.Application.IsNetworkDeployed Then
lblLabel.Text = My.Application.Deployment.CurrentVersion.ToString( )
End If
Note the if statement above: the Deployment.CurrentVersion is only available
when the application is deployed with ClickOnce, which means it won't be
available when deployed otherwise or run within Visual Studio, when
debugging (accessing it will throw an exception).
"barcrofter" <jd*****@gmail.comwrote in message
news:e9**********************************@r15g2000 prh.googlegroups.com...
On Sep 21, 2:44 pm, "Gillard" <gillard_georges@@@@@@@@@hotmail.com>
wrote:
My.Application.Info.Version.ToString
"barcrofter" <jd.p...@gmail.comwrote in message
news:3a**********************************@p10g2000 prf.googlegroups.com...
This seems like a silly question -- How can I read the actual publish
version build data??.
When I use:
With My.Application.Info
Version.Text = "Version: " _
+ Format(.Version.Major + .Version.Minor / 10
+ .Version.Build / 100, "0.00")
End With
All I get is Version: 1.0 even though the actual publish is
1.1.150??? Minor and build are both 0
ok My.Application.Info.Version.ToString reads 1.0.0.0 which is the
problem.
is this a feature of the express edition?