473,509 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading the actual vb.net project published build #

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
Sep 21 '08 #1
3 1206
My.Application.Info.Version.ToString

"barcrofter" <jd*****@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
Sep 21 '08 #2
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?
Sep 24 '08 #3
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?

Sep 24 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1070
by: Vikram Sorathia | last post by:
hi, I am a novice developer in ECLIPSE. I am interested in developing web services on Eclipse Platform. I am trying to install WebTools Platform from the following site:...
7
3771
by: SteveB | last post by:
Being a C++ developer, I'm not used to a build performing automagically. For instance, App.config automatically being renamed and placed in the bin\debug folder and project.en-US.resx resource files...
2
9398
by: bhreddy | last post by:
Hi All, Can someone help me out how can I resolve the error "0xC0000005: Access violation reading location 0x513112f4"? Steps I followed... 1. I ran the application at DOS prompt 2. After...
2
963
by: segue | last post by:
Hi; I'm not able to get asp pages to process. I get specified module could not be found. I tried running dependency walker against this. Also, if I create a new web project, I don't get a...
1
1224
by: JJ | last post by:
I'm having problems trying to publish an ASP.NET project from VS2005 and was hoping to get some pointers in the right direction. The project works fine from my development system using the...
4
20390
by: Hafner Avi | last post by:
Hi, I am trying to find out what is the difference between Web-Site and Web-Application-Project in Visual Studio 2005 ? People – what do you recommend ?
13
1739
by: Chet C | last post by:
I am trying to make a simple RSS reader using asp.net (VB) and am getting an error when I run the project locally (works fine after being published) Here is my basic code: Sub Page_Load(sender...
0
2545
by: rmgalante | last post by:
I was developing a large web site in VS 2005 as a web site project. I was having problems with the VS 2005 publish tool. It was slow, and provided no feedback. It has other issues as outlined...
8
4342
by: Peter Bradley | last post by:
Hi, I wonder if anyone can help me out? I'm trying to implement an EPP (rfc4934 and rfc4930) client. So far I've managed to connect and authorise using an X509 Certificate. This should...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.