473,714 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Incrementing Assembly Version?

Hello....I am trying to System.Reflecti on.Assembly.Get ExecutingAssemb ly
().GetName
().Version.ToSt ring () ;
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 3603
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***@discussi ons.microsoft.c om> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
Hello....I am trying to System.Reflecti on.Assembly.Get ExecutingAssemb ly
().GetName
().Version.ToSt ring () ;
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...interest ing 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***@discussi ons.microsoft.c om> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
Hello....I am trying to System.Reflecti on.Assembly.Get ExecutingAssemb ly
().GetName
().Version.ToSt ring () ;
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***@discussi ons.microsoft.c om> wrote in message
news:BB******** *************** ***********@mic rosoft.com...
hmmm...interest ing 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***@discussi ons.microsoft.c om> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
Hello....I am trying to System.Reflecti on.Assembly.Get ExecutingAssemb ly ().GetName
().Version.ToSt ring () ;
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***@discussi ons.microsoft.c om> wrote in message
news:BB******** *************** ***********@mic rosoft.com...
hmmm...interest ing 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***@discussi ons.microsoft.c om> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
> Hello....I am trying to System.Reflecti on.Assembly.Get ExecutingAssemb ly > ().GetName
> ().Version.ToSt ring () ;
>
>
> 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***@discussi ons.microsoft.c om> wrote in message
news:A6******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:BB******** *************** ***********@mic rosoft.com...
hmmm...interest ing 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***@discussi ons.microsoft.c om> wrote in message
> news:B9******** *************** ***********@mic rosoft.com...
> > Hello....I am trying to

System.Reflecti on.Assembly.Get ExecutingAssemb ly
> > ().GetName
> > ().Version.ToSt ring () ;
> >
> >
> > 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
8802
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 configuration every time there is an update to a shared assembly.
10
3465
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 somewhere that each folder under the "web site" is compiled in separate assembly. I however, did not find that the "web site" creation in vs.net 2005 created any AssemblyInfo.cs file.
3
1712
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 part number: 3.0.1907.20745 What am I doing wrong, here? I read that the build (1907) and private part (20745) numbers should be set based on the days past a certain date, and seconds since midnight, respectively.
7
10962
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 this screen below. Please help, thanks in advance... Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify...
3
4409
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 really understand how this could be an issue. The assemblies that the system is complaining about are ones that we build here and we're not changing version numbers on anything. The errors come and go with no apparent rhyme or reason. We do not...
1
2255
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 I have pasted the part I'm interested in below. My company doesn't use versioning or the gac and I'd like to. We're on vs.net 2005 & .net 2., is this still true or has it changed since then? thanks That article is not entirely accurate. ...
7
1926
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 understand how to use HTML_Table to add a table to a page, and that portion of my project is coming along nicely. The problem is at this point, that I can't figure out how to increment the row that gets written to. Row 0 just keeps getting...
1
7382
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 message like "That assembly does not allow partially trusted callers" This is my web.config file Please help me on this issue? <?xml version="1.0"?>
6
2597
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 version number does not match to the DLL that it was linked against. How can I recompile my DLL without incrementing the version number? I don't see where this "version number" is stored in the project. The version number, under the "Assembly...
0
8810
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8712
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9316
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9078
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9026
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4729
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3160
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.