Home All Groups Group Topic Archive Search About
Author
20 Nov 2007 2:31 PM
Herb
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

Author
20 Nov 2007 3:05 PM
Patrice
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).

--
Patrice


"Herb" <Junior1957@newsgroups.nospam> a écrit dans le message de news:
3C1C5988-7E83-41F1-AAC1-22FE3BB20***@microsoft.com...
Show quote
> 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
Author
28 Nov 2007 3:53 PM
Will
If My.Application.IsNetworkDeployed Then
     Version.Text = My.Application.Deployment.CurrentVersion.X.ToString


WHERE X is Major, Minor, Build, or Revision
--
-Will


Show quote
"Patrice" wrote:

> 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).
>
> --
> Patrice
>
>
> "Herb" <Junior1957@newsgroups.nospam> a écrit dans le message de news:
> 3C1C5988-7E83-41F1-AAC1-22FE3BB20***@microsoft.com...
> > 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
>
>
>

AddThis Social Bookmark Button