Version.Build

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why do My.Application.Info.Version.Build &
My.Application.Info.Version.Revision always return zeros? I ahve numbers in
the Publish tab of the windows application, but I can't seem to report them
on my spalsh screen.

Thanks
 
The binary file and the published version have both their own version. The
numbers you see in the publish tab are something like (from the top of my
head) My.Application.Info.Deployment.Version. You may want also to test
IsNetworkDeployed before as Deployment is not available if the application
is not deployed by using ClickOnce (such as when working from the IDE).
 
If My.Application.IsNetworkDeployed Then
Version.Text = My.Application.Deployment.CurrentVersion.X.ToString


WHERE X is Major, Minor, Build, or Revision
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top