Incrementing Assembly Version?

G

Guest

Hello....I am trying to System.Reflection.Assembly.GetExecutingAssembly
().GetName
().Version.ToString () ;


to display the version of the app...but it remains static and therefore does
not increment...it's

AssemblyInfo.vb looks like this

<Assembly: AssemblyVersion("1.0.*")>
 
G

Guest

hmmm...interesting algorithim :)

It doesn't seem to increment on each build which is my understanding that
it's suppose to do

' 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

Saravana

<assembly: AssemblyVersion("1.0.*")>

The result of this is a build number set to the number of days since a
random, designated start date and the revision based on the number of
seconds since midnight. For a Microsoft Visual Basic® .NET project with an
AssemblyVersion set to "1.0.*", the assembly version is only updated the
first time the project is rebuilt within the Visual Studio .NET integrated
development environment (IDE). The version number remains constant for
subsequent rebuilds within the same instance of Visual Studio .NET. This
does not represent a problem because the assembly version is for information
only in assemblies that do not have a strong name. For strong named
assemblies, you should avoid the use of wild characters in the
AssemblyVersion attribute, as explained in the following section. For C#
projects with an AssemblyVersion set to "1.0.*", the assembly version is
updated every time the project is rebuilt.

For more details about versioning, check out this link
http://www.microsoft.com/india/msdn/articles/Versioning.aspx
 
G

Guest

hmmm...k...

question...any suggestions on some sort of "build version number"?

I would like to keep track of the build #

Regards
mekim
 
S

Saravana

Instead of using automatic versioning. You should go for manual version, so
that you can change the version number after each build manually.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top