473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

VB.NET 2005 Version Number in Application

I posted in another group but thought this was the better place to post,
since it had to do with the vb language

I have been making changes to my Windows Application and in the
Project/Properties the Publish Version shows the following:

Major: 1
Minor: 0
Build: 0
Revision: 45

I would like to show this information in the "About Screen" and I have:
My.Application.Info.Version
but this shows
Build: 0
Major: 1
MajorRevision: 0
Minor: 0
MinorRevision: 0
Revision: 0

(this was taken at a break point and displayed in the Immediate Window)

How can I display in my application the information regarding the correct
Major, Minor, Build, and Revision?

Thanks in advance


Jan 31 '07 #1
2 6883
In article <ex**************@TK2MSFTNGP05.phx.gbl>,
zi******@doyoureallythinkthisisreal.com says...
I posted in another group but thought this was the better place to post,
since it had to do with the vb language

I have been making changes to my Windows Application and in the
Project/Properties the Publish Version shows the following:

Major: 1
Minor: 0
Build: 0
Revision: 45

I would like to show this information in the "About Screen" and I have:
My.Application.Info.Version
but this shows
Build: 0
Major: 1
MajorRevision: 0
Minor: 0
MinorRevision: 0
Revision: 0
The "Publishing" tab is only if you're doing ClickOnce deployment. The
My.Application.Info.Version displays the assembly version which can be
found on the "Application" tab when you click on "Assembly
Information..."

--
Patrick Steele
http://weblogs.asp.net/psteele
Feb 2 '07 #2
On Feb 1, 7:59 pm, Patrick Steele <patr...@mvps.orgwrote:
In article <exrtp1YRHHA.4...@TK2MSFTNGP05.phx.gbl>,
zimba...@doyoureallythinkthisisreal.com says...


I posted in another group but thought this was the better place to post,
since it had to do with the vb language
I have been making changes to my Windows Application and in the
Project/Properties the Publish Version shows the following:
Major: 1
Minor: 0
Build: 0
Revision: 45
I would like to show this information in the "About Screen" and I have:
My.Application.Info.Version
but this shows
Build: 0
Major: 1
MajorRevision: 0
Minor: 0
MinorRevision: 0
Revision: 0

The "Publishing" tab is only if you're doing ClickOnce deployment. The
My.Application.Info.Version displays the assembly version which can be
found on the "Application" tab when you click on "Assembly
Information..."

--
Patrick Steelehttp://weblogs.asp.net/psteele- Hide quoted text -

- Show quoted text -

Patrick - thanks for the clarification. As a VS.NET2005 newbie, I was
not aware (I wonder how many people are) that there is a distinction
between "ClickOnce Revisions" and what I can only call "Standard
Revisions".

For those of us who LIKE the auto-incrementing of Revisions, and DO
use the ClickOnce deployment, can you recommend how to get the auto-
incremented ("ClickOnce") revision to display in our SplashScreen and
About forms?

The only examples of code exist in the Splashscreen class itself, and
(apparently) assume that one is NOT using the ClickOnce feature,
because all the sample code utilizes the
My.Application.Info.Version.Revision references - which apparently are
NOT the same as what appears in the Publish Tab of the My Project item
in my solution. Any references/resources you can suggest for
understanding this better would be most welcome.

Lastly, can you offer any best practices if one wants to somehow
synchronize (or otherwise reconcile) these 2 distincts "revisions"? It
drives me crazy to realize that VS.NET2005 is somehow tracking 2
different KINDS of "revisions" - only because I chose one deployment
strategy over another.

TIA,
- Mark

Mar 11 '07 #3

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

Similar topics

4
by: Jeff | last post by:
Hi, The following is a representative comment from the ACT! User Forum regarding their newest version, 2005. "I didn't say the product was fast enough... I suspect most of those issues are...
6
by: sathyashrayan | last post by:
Following are the selected thread from the date:30-jan-2005 to 31-jan-2005. I did not use any name because of the subject is important. You can get the original thread by typing the subject...
16
by: Kent | last post by:
We have created several Assemblies that we add to the GAC on our web servers. In an ASP.NET app in VS2003, Adding a reference to strong named GAC'd Assembly meant that the web app would use...
2
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web...
5
by: vul | last post by:
In VB6 there is Auto Increment check box in Project Properties, which allow you have a new version every time you compile the project. Is there any easy way to have this feature in VB 2005? Some...
4
by: Poldie | last post by:
I'm using Visual Studio 2005 SP1 on a Win2K SP4 system. VS is set up to use "web development settings ". I use VB. If I create a new web application project, then close the project and exit VS...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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
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...

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.