How to make build autoincrement version or build number 
Author Message
 How to make build autoincrement version or build number

Every time I build my solution, I would like it to autoincrement the build
number.  I used to do something similar in VB6, but can't figure out how to
increment the build (or private part) in VB.NET. Suggestions?


Tue, 26 Oct 2004 11:42:51 GMT  
 How to make build autoincrement version or build number
It's in the Assembly.vb file.  Any asterisk in the version number will be
automatically incremented.

--

Jim
Jimco Add-ins
http://www.jimcoaddins.com
==============================================
New FrontPage Add-ins Available:
Close All (with Save and Close All included)
ContextExport (Adds Export menu to context menus.)

New Visual Studio.NET Add-in:
Close All add-in for VS.NET now available!
==============================================


Quote:
> Every time I build my solution, I would like it to autoincrement the build
> number.  I used to do something similar in VB6, but can't figure out how
to
> increment the build (or private part) in VB.NET. Suggestions?



Tue, 26 Oct 2004 12:10:05 GMT  
 How to make build autoincrement version or build number
Unfortunately, this is incorrect.

I just compiled an app with AssemblyVersion("1.0.0.0") and the end result
was just that - 1.0.0.0.

I then changed it to '1.0.0.*' and re-compiled. The version was
'1.0.0.15535' i.e. based on the time and thus meaningless.

Jeff Law
PPCInstall Developer
http://www.ppcinstall.com


Quote:
> It's in the Assembly.vb file.  Any asterisk in the version number will be
> automatically incremented.

> --

> Jim
> Jimco Add-ins
> http://www.jimcoaddins.com
> ==============================================
> New FrontPage Add-ins Available:
> Close All (with Save and Close All included)
> ContextExport (Adds Export menu to context menus.)

> New Visual Studio.NET Add-in:
> Close All add-in for VS.NET now available!
> ==============================================



> > Every time I build my solution, I would like it to autoincrement the
build
> > number.  I used to do something similar in VB6, but can't figure out how
> to
> > increment the build (or private part) in VB.NET. Suggestions?



Fri, 29 Oct 2004 03:41:46 GMT  
 How to make build autoincrement version or build number
By default, the value in Assembly.vb is 1.0.*.  This will autoincrement the
build just as the original post asked.

If you think that the build number generated in your test (1.0.0.15535) is
meaningless, I would have to question whether or not you understand the
purpose behind build numbers.

--

Jim
Jimco Add-ins
http://www.jimcoaddins.com
==============================================
New FrontPage Add-ins Available:
Close All (with Save and Close All included)
ContextExport (Adds Export menu to context menus.)

New Visual Studio.NET Add-in:
Close All add-in for VS.NET now available!
==============================================


Quote:
> Unfortunately, this is incorrect.

> I just compiled an app with AssemblyVersion("1.0.0.0") and the end result
> was just that - 1.0.0.0.

> I then changed it to '1.0.0.*' and re-compiled. The version was
> '1.0.0.15535' i.e. based on the time and thus meaningless.

> Jeff Law
> PPCInstall Developer
> http://www.ppcinstall.com



> > It's in the Assembly.vb file.  Any asterisk in the version number will
be
> > automatically incremented.

> > --

> > Jim
> > Jimco Add-ins
> > http://www.jimcoaddins.com
> > ==============================================
> > New FrontPage Add-ins Available:
> > Close All (with Save and Close All included)
> > ContextExport (Adds Export menu to context menus.)

> > New Visual Studio.NET Add-in:
> > Close All add-in for VS.NET now available!
> > ==============================================



> > > Every time I build my solution, I would like it to autoincrement the
> build
> > > number.  I used to do something similar in VB6, but can't figure out
how
> > to
> > > increment the build (or private part) in VB.NET. Suggestions?



Fri, 29 Oct 2004 04:03:21 GMT  
 How to make build autoincrement version or build number
Jim,

I've been using Build Numbers for many of my 30 years of programming!

It seems somewhat illogical, however, that there is no means to actually
increment i.e. add one to the specified value at each compilation.

If you place a '*' in the 3rd position i.e. '1.0.*', you will get
another time-related value put in there by the compiler. My example,
using '1.0.*' 'incremented' from '0' to '863'. If thats what you mean by
incrementing, I have to wonder about your math! :)

Jeff Law
DataMasta Limited
New Zealand

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Fri, 29 Oct 2004 04:15:31 GMT  
 How to make build autoincrement version or build number
You can increment by many values other than 1!  In most software shops,
build numbers are not incremented by 1.  They are, in fact, computed using
an algorithm taking the time and date into account.

--

Jim
Jimco Add-ins
http://www.jimcoaddins.com
==============================================
New FrontPage Add-ins Available:
Close All (with Save and Close All included)
ContextExport (Adds Export menu to context menus.)

New Visual Studio.NET Add-in:
Close All add-in for VS.NET now available!
==============================================


Quote:
> Jim,

> I've been using Build Numbers for many of my 30 years of programming!

> It seems somewhat illogical, however, that there is no means to actually
> increment i.e. add one to the specified value at each compilation.

> If you place a '*' in the 3rd position i.e. '1.0.*', you will get
> another time-related value put in there by the compiler. My example,
> using '1.0.*' 'incremented' from '0' to '863'. If thats what you mean by
> incrementing, I have to wonder about your math! :)

> Jeff Law
> DataMasta Limited
> New Zealand

> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Fri, 29 Oct 2004 07:18:06 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Version and Build number

2. Version/Build numbering scheme

3. Windows Build and Version Numbers

4. ANN: Automate Your Software Builds with Visual Build 2.0

5. What is the difference between build solution and build application

6. building event handlers in a dynamic mainmenu built from an external class

7. Automate Your Software Builds with Visual Build 2.0

8. Building a variable by building a String??

9. How to Build an Array from check boxes, to build product list

10. ANN: Automate your software builds with Visual Build and VSMake

11. Automate Your Software Builds with Visual Build 2.0

12. ANN: Automate your software builds with Visual Build and VSMake

 

 
Powered by phpBB® Forum Software