473,320 Members | 1,946 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,320 software developers and data experts.

How can I set the version numbers for my application?

Hi Gang,
I would like to be able to control the versioning of my application can
somebody tell me where I can set that?
Thanks in Advance,
Christian Blackburn
Nov 20 '05 #1
6 12858
"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> schrieb
I would like to be able to control the versioning of my application
can somebody tell me where I can set that?


Have a look in the file assemblyinfo.vb and the docs for the
AssemblyVersionAttribute class.
--
Armin

Nov 20 '05 #2
Hi Armin,
Thank you very much for the info. I went with: <Assembly:
AssemblyVersion("1.0.6.*")> for v1.06. Do you know how to access
individual parts of the version number from code at runtime. I realize I
can parse the periods in the string, but there should be a way to access
app.major, minor, revision, etc..
Thanks,
Christian Blackburn

"Armin Zingler" <az*******@freenet.de> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl...
"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> schrieb
I would like to be able to control the versioning of my application
can somebody tell me where I can set that?


Have a look in the file assemblyinfo.vb and the docs for the
AssemblyVersionAttribute class.
--
Armin

Nov 20 '05 #3
"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> schrieb
Thank you very much for the info. I went with: <Assembly:
AssemblyVersion("1.0.6.*")> for v1.06. Do you know how to access
individual parts of the version number from code at runtime. I
realize I can parse the periods in the string, but there should be a
way to access app.major, minor, revision, etc..


Seems like you are coming from VB6 (when mentioning about app.major, ...):

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB/vbcon/html/vxconchangestoappobject
invisualbasicnet.htm

(see hints in signature)
Imports System.Diagnostics
'...
Dim FVI As FileVersionInfo
FVI = FileVersionInfo.GetVersionInfo( _
System.Reflection.Assembly.GetExecutingAssembly.Lo cation _
)

MsgBox(FVI.FileMajorPart)
MsgBox(FVI.FileMinorPart)
MsgBox(FVI.FileBuildPart)
MsgBox(FVI.FilePrivatePart)

MsgBox(FVI.FileVersion)
--
Armin

- Links might be split into two lines. Concatenate them using notepad.
- Links might require to add a ".nnnn" after the "2003FEB", e.g.
"2003FEB.1033" for localized versions.
- Links starting with "ms-help" are URLs for the document explorer (<F1>).
Paste them in the URL textbox and press enter. Using internal help (menu
tools -> options -> environment -> help), display the "Web" toolbar that
contains the textbox.

Nov 20 '05 #4
Hello,

"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> schrieb:
I would like to be able to control the versioning of my application can
somebody tell me where I can set that?


Basic information on versioning

http://msdn.microsoft.com/library/en...managevers.asp
http://msdn.microsoft.com/library/en...l/tdlg_ch5.asp
http://msdn.microsoft.com/library/en...components.asp

Parts of the version number:

Main version
'Product' version
Sub version
Sub version, for example Service Pack
Build
During development, auto-increment
Revision
Hotfix or Quick Fix Engineering (QFE)

When using auto incrementation of numbers, the build number contains the
number of days since January, 2000; the revision contains the number of
seconds since midnight divided by 2.

The version number can be changed in the file "AssemblyInfo.vb".

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #5
Hello,

"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> schrieb:
Thank you very much for the info. I went with: <Assembly:
AssemblyVersion("1.0.6.*")> for v1.06. Do you know how to access
individual parts of the version number from code at runtime. I realize I
can parse the periods in the string, but there should be a way to access
app.major, minor, revision, etc..


'System.Reflection.Assembly.GetExecutingAssembly() .GetName().Version.Major'
etc.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6
Hello Herfriend and Armin,
Thank you both very much for the info. I used your tips to make it display
"1.16" or .Major & .Minor & .Build :).
Cheers,
Christian
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:ei**************@TK2MSFTNGP11.phx.gbl...
Hello,

"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> schrieb:
I would like to be able to control the versioning of my application can
somebody tell me where I can set that?
Basic information on versioning

http://msdn.microsoft.com/library/en...managevers.asp
http://msdn.microsoft.com/library/en...l/tdlg_ch5.asp

http://msdn.microsoft.com/library/en...components.asp
Parts of the version number:

Main version
'Product' version
Sub version
Sub version, for example Service Pack
Build
During development, auto-increment
Revision
Hotfix or Quick Fix Engineering (QFE)

When using auto incrementation of numbers, the build number contains the
number of days since January, 2000; the revision contains the number of
seconds since midnight divided by 2.

The version number can be changed in the file "AssemblyInfo.vb".

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #7

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

Similar topics

0
by: Willem | last post by:
Based on MK's TSI_SOON (http://www.trigeminal.com/)I've created a nifty little procedure that - whenever you compact you db you get an incremental backup copy. Given that you have a table with...
0
by: Jul | last post by:
Hi, We are trying to optimize version numbering. Our application has System and components for System, I need to find info for Best practices of Version management for Application. 1. What is...
3
by: Shadow Lynx | last post by:
At the bottom of the default Error page that appears when Unhandled Exceptions occur, what exactly is the difference between the "Microsoft ..Net Framework Version" and the "ASP.NET Version"? I...
5
by: Eric | last post by:
After attempting to build a solution, I receive the error message; "One or more dependent assemblies have version conflicts" "Do you want to fix these conflicts by adding binding redirect records...
1
by: theWizard1 | last post by:
Using Asp.NET 2.0. I published my web application to the server using the publish to website feature of asp.net 2.0. In VS.Net 2005 IDE, on solution explorer, at top level just below solution, I...
7
by: Sky | last post by:
I have been looking for a more powerful version of GetType(string) that will find the Type no matter what, and will work even if only supplied "{TypeName}", not the full "{TypeName},{AssemblyName}"...
5
by: Lyners | last post by:
I have a VB.NET application that is deployed to an end user. I would like to display on screen the application version of the application so that I know the end user id using the latest version of...
4
by: Miro | last post by:
Sorry for all the posts today. Just not been a good day. I cant seem to figure out version numbering. I click on the MyProject and set up the Major, Minor, MajorRevision, MinorRevision as ...
14
by: Phil | last post by:
I have been using this code to display the version number, and this has worked well, but I am now changing from using the ClickOnce publishing to a proper setup project, and this no longer works. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.