469,613 Members | 1,927 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,613 developers. It's quick & easy.

Increase build number in ASP.NET application

How can I make a build number that increases for each build automatically in
a ASP.NET project, as I used to have in VB 6.0 ?
Regards,
SAHP
Nov 18 '05 #1
8 2630
This is the default action. At the bottom of your AssemblyInfo.vb file,
there is an entry for the complete version number of the assembly (and
comments describing that section) that looks like this by default:

' Version information for an assembly consists of the following four values:
'
' Major Version
' Minor Version
' Build Number
' Revision
'
' You can specify all the values or you can default the Build and Revision
Numbers
' by using the '*' as shown below:
<Assembly: AssemblyVersion("1.0.*")>
"S. HP" <sa**@netcoders.dk> wrote in message
news:eD**************@TK2MSFTNGP09.phx.gbl...
How can I make a build number that increases for each build automatically
in a ASP.NET project, as I used to have in VB 6.0 ?
Regards,
SAHP

Nov 18 '05 #2
I believe I've seen somewhere that, for VB.NET, * increments the build
number only if you reloaded the IDE.
If you do several compilations during the same IDE session, it will stay
intact...

Using the compiler from the command line could likely solve the problem.
Hopefully it will be fixed in a next release...

Patrice

--

"S. HP" <sa**@netcoders.dk> a écrit dans le message de
news:eD**************@TK2MSFTNGP09.phx.gbl...
How can I make a build number that increases for each build automatically in a ASP.NET project, as I used to have in VB 6.0 ?
Regards,
SAHP

Nov 18 '05 #3
It doesn't have to do with the IDE. It has to do with what changes were
made between builds.
"Patrice" <no****@nowhere.com> wrote in message
news:e8****************@TK2MSFTNGP15.phx.gbl...
I believe I've seen somewhere that, for VB.NET, * increments the build
number only if you reloaded the IDE.
If you do several compilations during the same IDE session, it will stay
intact...

Using the compiler from the command line could likely solve the problem.
Hopefully it will be fixed in a next release...

Patrice

--

"S. HP" <sa**@netcoders.dk> a écrit dans le message de
news:eD**************@TK2MSFTNGP09.phx.gbl...
How can I make a build number that increases for each build automatically

in
a ASP.NET project, as I used to have in VB 6.0 ?
Regards,
SAHP


Nov 18 '05 #4
Ok, it changes if it would break something public then ?
If I remember the behavior was said to be different in the C# (that would
change for each build ?) and the VB.NET compiler.

Also I'm almost sure I gave this a try when I came accross this and that
effectively the build number was changed when reloading the IDE wihtout
making any change after several changes that didn't affect the build
number...

Not that a terrible issue but is the behavior documented somewhere ? (IMO I
saw this on MSDN but was unable to get it back).

Patrice

--

"Scott M." <s-***@nospam.nospam> a écrit dans le message de
news:O%****************@TK2MSFTNGP09.phx.gbl...
It doesn't have to do with the IDE. It has to do with what changes were
made between builds.
"Patrice" <no****@nowhere.com> wrote in message
news:e8****************@TK2MSFTNGP15.phx.gbl...
I believe I've seen somewhere that, for VB.NET, * increments the build
number only if you reloaded the IDE.
If you do several compilations during the same IDE session, it will stay
intact...

Using the compiler from the command line could likely solve the problem.
Hopefully it will be fixed in a next release...

Patrice

--

"S. HP" <sa**@netcoders.dk> a écrit dans le message de
news:eD**************@TK2MSFTNGP09.phx.gbl...
How can I make a build number that increases for each build
automatically in
a ASP.NET project, as I used to have in VB 6.0 ?
Regards,
SAHP



Nov 18 '05 #5
http://msdn.microsoft.com/library/de...managevers.asp
"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Ok, it changes if it would break something public then ?
If I remember the behavior was said to be different in the C# (that would
change for each build ?) and the VB.NET compiler.

Also I'm almost sure I gave this a try when I came accross this and that
effectively the build number was changed when reloading the IDE wihtout
making any change after several changes that didn't affect the build
number...

Not that a terrible issue but is the behavior documented somewhere ? (IMO
I
saw this on MSDN but was unable to get it back).

Patrice

--

"Scott M." <s-***@nospam.nospam> a écrit dans le message de
news:O%****************@TK2MSFTNGP09.phx.gbl...
It doesn't have to do with the IDE. It has to do with what changes were
made between builds.
"Patrice" <no****@nowhere.com> wrote in message
news:e8****************@TK2MSFTNGP15.phx.gbl...
>I believe I've seen somewhere that, for VB.NET, * increments the build
> number only if you reloaded the IDE.
> If you do several compilations during the same IDE session, it will
> stay
> intact...
>
> Using the compiler from the command line could likely solve the
> problem.
> Hopefully it will be fixed in a next release...
>
> Patrice
>
> --
>
> "S. HP" <sa**@netcoders.dk> a écrit dans le message de
> news:eD**************@TK2MSFTNGP09.phx.gbl...
>> How can I make a build number that increases for each build automatically > in
>> a ASP.NET project, as I used to have in VB 6.0 ?
>>
>>
>> Regards,
>> SAHP
>>
>>
>
>



Nov 18 '05 #6
When I rebuild my project, the build number does NOT increase...

Nomatter what I do, in my VB.NET (ASP.NET) application, I cannot make the
build number increase ...

Am I doing something wrong ???
Regards,
SAHP

"Scott M." <s-***@nospam.nospam> wrote in message
news:O%****************@TK2MSFTNGP09.phx.gbl...
It doesn't have to do with the IDE. It has to do with what changes were
made between builds.

Nov 18 '05 #7
http://msdn.microsoft.com/library/de...managevers.asp
"S. HP" <sa**@netcoders.dk> wrote in message
news:uP**************@TK2MSFTNGP11.phx.gbl...
When I rebuild my project, the build number does NOT increase...

Nomatter what I do, in my VB.NET (ASP.NET) application, I cannot make the
build number increase ...

Am I doing something wrong ???
Regards,
SAHP

"Scott M." <s-***@nospam.nospam> wrote in message
news:O%****************@TK2MSFTNGP09.phx.gbl...
It doesn't have to do with the IDE. It has to do with what changes were
made between builds.


Nov 18 '05 #8
I already read the article you sent me a link to, and it still doesnt
increase my builder numbers for every build.

So now I have switched over to manually editing the version numbers instead
of the * sign, whenever I need the build number to increase ...

Sadly, but now it at least works :-)
Regards,
SAHP

"Scott M." <s-***@nospam.nospam> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
http://msdn.microsoft.com/library/de...managevers.asp

Nov 18 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by velthuijsen | last post: by
2 posts views Thread by Do Park via SQLMonster.com | last post: by
2 posts views Thread by a.p.mews | last post: by
3 posts views Thread by David Battams | last post: by
4 posts views Thread by Pietro | last post: by
1 post views Thread by Zack Sessions | last post: by
4 posts views Thread by =?Utf-8?B?c2FtZWVy?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.