Increase build number in ASP.NET application

  • Thread starter Thread starter S. HP
  • Start date Start date
S

S. HP

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
 
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.*")>
 
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
 
It doesn't have to do with the IDE. It has to do with what changes were
made between builds.
 
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

--
 
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
 
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
 
Back
Top