By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,254 Members | 2,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,254 IT Pros & Developers. It's quick & easy.

Incrementing Assembly Version?

P: n/a
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.*")>
Nov 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
You aren't doing anything wrong,

1.0.X.Y

x is the number of days since Feb 1 2000, and y the number of seconds since
midnight / 2

There is a command tool that might help you:
http://code.mattgriffith.net/UpdateVersion/
You might also want to check out:
http://groups.google.com/groups?hl=e...p02%26rnum%3D2

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"mekim" <me***@discussions.microsoft.com> wrote in message
news:B9**********************************@microsof t.com...
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.*")>

Nov 18 '05 #2

P: n/a
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.*")>
"Karl Seguin" wrote:
You aren't doing anything wrong,

1.0.X.Y

x is the number of days since Feb 1 2000, and y the number of seconds since
midnight / 2

There is a command tool that might help you:
http://code.mattgriffith.net/UpdateVersion/
You might also want to check out:
http://groups.google.com/groups?hl=e...p02%26rnum%3D2

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"mekim" <me***@discussions.microsoft.com> wrote in message
news:B9**********************************@microsof t.com...
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.*")>


Nov 18 '05 #3

P: n/a
<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/...ersioning.aspx
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"mekim" <me***@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
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.*")>
"Karl Seguin" wrote:
You aren't doing anything wrong,

1.0.X.Y

x is the number of days since Feb 1 2000, and y the number of seconds since midnight / 2

There is a command tool that might help you:
http://code.mattgriffith.net/UpdateVersion/
You might also want to check out:
http://groups.google.com/groups?hl=e...p02%26rnum%3D2
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"mekim" <me***@discussions.microsoft.com> wrote in message
news:B9**********************************@microsof t.com...
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.*")>


Nov 18 '05 #4

P: n/a
hmmm...k...

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

I would like to keep track of the build #

Regards
mekim

"Saravana" wrote:
<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/...ersioning.aspx
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"mekim" <me***@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
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.*")>
"Karl Seguin" wrote:
You aren't doing anything wrong,

1.0.X.Y

x is the number of days since Feb 1 2000, and y the number of seconds since midnight / 2

There is a command tool that might help you:
http://code.mattgriffith.net/UpdateVersion/
You might also want to check out:
http://groups.google.com/groups?hl=e...p02%26rnum%3D2
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"mekim" <me***@discussions.microsoft.com> wrote in message
news:B9**********************************@microsof t.com...
> 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.*")>


Nov 18 '05 #5

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

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"mekim" <me***@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
hmmm...k...

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

I would like to keep track of the build #

Regards
mekim

"Saravana" wrote:
<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/...ersioning.aspx
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"mekim" <me***@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
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.*")>
"Karl Seguin" wrote:

> You aren't doing anything wrong,
>
> 1.0.X.Y
>
> x is the number of days since Feb 1 2000, and y the number of seconds
since
> midnight / 2
>
> There is a command tool that might help you:
> http://code.mattgriffith.net/UpdateVersion/
>
>
> You might also want to check out:
>

http://groups.google.com/groups?hl=e...p02%26rnum%3D2 >
> Karl
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "mekim" <me***@discussions.microsoft.com> wrote in message
> news:B9**********************************@microsof t.com...
> > 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.*")>
>
>
>


Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.