HighTechTalks DotNet Forums  

Version.Build

Dotnet Framework microsoft.public.dotnet.framework


Discuss Version.Build in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Herb
 
Posts: n/a

Default Version.Build - 11-20-2007 , 09:31 AM






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

Reply With Quote
  #2  
Old   
Patrice
 
Posts: n/a

Default Re: Version.Build - 11-20-2007 , 10:05 AM






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 (AT) newsgroups (DOT) nospam> a écrit dans le message de news:
3C1C5988-7E83-41F1-AAC1-22FE3BB209E0...soft (DOT) com...
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



Reply With Quote
  #3  
Old   
Will
 
Posts: n/a

Default Re: Version.Build - 11-28-2007 , 10:53 AM



If My.Application.IsNetworkDeployed Then
Version.Text = My.Application.Deployment.CurrentVersion.X.ToStrin g


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


"Patrice" wrote:

Quote:
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 (AT) newsgroups (DOT) nospam> a écrit dans le message de news:
3C1C5988-7E83-41F1-AAC1-22FE3BB209E0...soft (DOT) 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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.