473,412 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Incrementing Assembly Version?

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
5 3575
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
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
<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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
3
by: Michael Kellogg | last post by:
In my project's "AssemblyInfo.vb" file, I have set the following for versioning: <Assembly: AssemblyVersion("3.0.*")> Yet every time I rebuild, I get the exact same build number and private...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
1
by: Coaster | last post by:
orig ref here http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ff29cc370678911d/c0db5b7e3da283b9?lnk=st&q=gac+assembly+new+version&rnum=7#c0db5b7e3da283b9...
7
by: jwhitby3 | last post by:
Hi all, I am trying to develop what amounts to a data entry page for the company I work for, (mostly to make my job easier). I think that I am beginning to grasp php, but I am at a loss now. I...
1
by: nish85 | last post by:
Hi, i have uploaded my sit to web server goddady.com i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a...
6
by: John | last post by:
I have written a VB.NET DLL that is called by a third party program. If I make any changes in the DLL and then try to replace my DLL file the third party program will abort, saying that the DLL...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.