473,396 Members | 1,722 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,396 software developers and data experts.

Assembly version

I've been using the date (in YMMDD) format for the build number in the
AssemblyVersion attribute. However, it appears that numbers 65534 are
invalid!! Bit of a bummer for 2007!!!

Is there a reason for this? 65535 would make sense!?

Is there a work around, patch, etc??

Regards
Jan 24 '07 #1
6 3651
The AssemblyVersion attribute represents the version number of the assembly,
and has nothing to do with the build date. It is a 64-bit number, which is
divided into a Major 32-bit unsigned integer and a Minor 32-bit unsigned
integer. Each of these is sub-divided into 2 16-bit unsigned integers.

Now, if you really wanted to, and I don't recommend this, because this is
not really the appropriate place to do this, but you COULD use the Major
member of the Version for the version number, the MajorRevision number for
the year, the Minor member for the month, and the MinorRevision number for
the day.

There are other Assembly attributes that are more appropriate for storing
date information, such as the Copyright.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

In case of Minimalism, break Philip Glass.

"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:e7**************@TK2MSFTNGP04.phx.gbl...
I've been using the date (in YMMDD) format for the build number in the
AssemblyVersion attribute. However, it appears that numbers 65534 are
invalid!! Bit of a bummer for 2007!!!

Is there a reason for this? 65535 would make sense!?

Is there a work around, patch, etc??

Regards

Jan 24 '07 #2
Thanks for that.

I new it wasn't to do with dates. I was using the build number this way to
mark a particular release build date, something I got from MSDN and the .net
team's method of versioning the framework.

The information you gave does answer my question though. I'll have to find
another method.

Do you know of any best practice for using the version number?

Regards

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
The AssemblyVersion attribute represents the version number of the
assembly, and has nothing to do with the build date. It is a 64-bit
number, which is divided into a Major 32-bit unsigned integer and a Minor
32-bit unsigned integer. Each of these is sub-divided into 2 16-bit
unsigned integers.

Now, if you really wanted to, and I don't recommend this, because this is
not really the appropriate place to do this, but you COULD use the Major
member of the Version for the version number, the MajorRevision number for
the year, the Minor member for the month, and the MinorRevision number for
the day.

There are other Assembly attributes that are more appropriate for storing
date information, such as the Copyright.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

In case of Minimalism, break Philip Glass.

"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:e7**************@TK2MSFTNGP04.phx.gbl...
>I've been using the date (in YMMDD) format for the build number in the
AssemblyVersion attribute. However, it appears that numbers 65534 are
invalid!! Bit of a bummer for 2007!!!

Is there a reason for this? 65535 would make sense!?

Is there a work around, patch, etc??

Regards


Jan 24 '07 #3
Just to add to the Version.

I would recommend not using the Date as a Version Number.

Through my experience, when a Customer sees a version number such as
"20041231" makes them think they have an old version and they start calling
to see if there are any new versions or perhaps even go look for another
prog.

If a customer sees v1.04 they are "at the most recent version" :)

Miro
"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
Thanks for that.

I new it wasn't to do with dates. I was using the build number this way
to mark a particular release build date, something I got from MSDN and the
.net team's method of versioning the framework.

The information you gave does answer my question though. I'll have to
find another method.

Do you know of any best practice for using the version number?

Regards

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>The AssemblyVersion attribute represents the version number of the
assembly, and has nothing to do with the build date. It is a 64-bit
number, which is divided into a Major 32-bit unsigned integer and a Minor
32-bit unsigned integer. Each of these is sub-divided into 2 16-bit
unsigned integers.

Now, if you really wanted to, and I don't recommend this, because this is
not really the appropriate place to do this, but you COULD use the Major
member of the Version for the version number, the MajorRevision number
for the year, the Minor member for the month, and the MinorRevision
number for the day.

There are other Assembly attributes that are more appropriate for storing
date information, such as the Copyright.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

In case of Minimalism, break Philip Glass.

"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:e7**************@TK2MSFTNGP04.phx.gbl...
>>I've been using the date (in YMMDD) format for the build number in the
AssemblyVersion attribute. However, it appears that numbers 65534 are
invalid!! Bit of a bummer for 2007!!!

Is there a reason for this? 65535 would make sense!?

Is there a work around, patch, etc??

Regards



Jan 24 '07 #4
Thanks Miro,

A good point. Guess I'll just use sourcesafe's build numbers after all.

Regards

"Miro" <mi******@golden.netwrote in message
news:%2*****************@TK2MSFTNGP03.phx.gbl...
Just to add to the Version.

I would recommend not using the Date as a Version Number.

Through my experience, when a Customer sees a version number such as
"20041231" makes them think they have an old version and they start
calling to see if there are any new versions or perhaps even go look for
another prog.

If a customer sees v1.04 they are "at the most recent version" :)

Miro
"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
>Thanks for that.

I new it wasn't to do with dates. I was using the build number this way
to mark a particular release build date, something I got from MSDN and
the .net team's method of versioning the framework.

The information you gave does answer my question though. I'll have to
find another method.

Do you know of any best practice for using the version number?

Regards

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>>The AssemblyVersion attribute represents the version number of the
assembly, and has nothing to do with the build date. It is a 64-bit
number, which is divided into a Major 32-bit unsigned integer and a
Minor 32-bit unsigned integer. Each of these is sub-divided into 2
16-bit unsigned integers.

Now, if you really wanted to, and I don't recommend this, because this
is not really the appropriate place to do this, but you COULD use the
Major member of the Version for the version number, the MajorRevision
number for the year, the Minor member for the month, and the
MinorRevision number for the day.

There are other Assembly attributes that are more appropriate for
storing date information, such as the Copyright.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

In case of Minimalism, break Philip Glass.

"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:e7**************@TK2MSFTNGP04.phx.gbl...
I've been using the date (in YMMDD) format for the build number in the
AssemblyVersion attribute. However, it appears that numbers 65534
are invalid!! Bit of a bummer for 2007!!!

Is there a reason for this? 65535 would make sense!?

Is there a work around, patch, etc??

Regards



Jan 25 '07 #5
Hi Gavin,

This is about the best I can do, as far as a reference is concerned:

http://msdn2.microsoft.com/en-us/lib...2z(VS.71).aspx

I might add that you can look at a couple of things to see how Microsoft
thinks about versioning. A Major version is the release of a product, so
that when a product is first released, it is version 1 and so on. The Minor
version is basically an intermittent release of a product, such as Microsoft
..Net Platform version 1.1, which came out after the first version, but prior
to the .Net 2.0 platform. It usually represents some minor additions and
corrections that are added while another version is in the works.

The Build and Revision are used internally by the vendor, for keeping track
of the various builds that are created for testing, and the revisions of
each build that are created in-between. You can often see different build
numbers in beta software. Because I work for a small company, I generally
don't use the Revision number, as we aren't likely to more than a couple of
hundred builds before releasing.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

The shortest distance between 2 points is a curve.

"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
Thanks for that.

I new it wasn't to do with dates. I was using the build number this way
to mark a particular release build date, something I got from MSDN and the
.net team's method of versioning the framework.

The information you gave does answer my question though. I'll have to
find another method.

Do you know of any best practice for using the version number?

Regards

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>The AssemblyVersion attribute represents the version number of the
assembly, and has nothing to do with the build date. It is a 64-bit
number, which is divided into a Major 32-bit unsigned integer and a Minor
32-bit unsigned integer. Each of these is sub-divided into 2 16-bit
unsigned integers.

Now, if you really wanted to, and I don't recommend this, because this is
not really the appropriate place to do this, but you COULD use the Major
member of the Version for the version number, the MajorRevision number
for the year, the Minor member for the month, and the MinorRevision
number for the day.

There are other Assembly attributes that are more appropriate for storing
date information, such as the Copyright.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

In case of Minimalism, break Philip Glass.

"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:e7**************@TK2MSFTNGP04.phx.gbl...
>>I've been using the date (in YMMDD) format for the build number in the
AssemblyVersion attribute. However, it appears that numbers 65534 are
invalid!! Bit of a bummer for 2007!!!

Is there a reason for this? 65535 would make sense!?

Is there a work around, patch, etc??

Regards



Jan 25 '07 #6
Cheers for that.

It does help as I'm basically looking to suggest a new versioning system
into the company I work for.

We'll probably use the project files checkin number from sourcesafe as the
build number and use revision to keep track of the 'toing-and-froing'
between test and development!!

Regards

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:em*************@TK2MSFTNGP05.phx.gbl...
Hi Gavin,

This is about the best I can do, as far as a reference is concerned:

http://msdn2.microsoft.com/en-us/lib...2z(VS.71).aspx

I might add that you can look at a couple of things to see how Microsoft
thinks about versioning. A Major version is the release of a product, so
that when a product is first released, it is version 1 and so on. The
Minor version is basically an intermittent release of a product, such as
Microsoft .Net Platform version 1.1, which came out after the first
version, but prior to the .Net 2.0 platform. It usually represents some
minor additions and corrections that are added while another version is in
the works.

The Build and Revision are used internally by the vendor, for keeping
track of the various builds that are created for testing, and the
revisions of each build that are created in-between. You can often see
different build numbers in beta software. Because I work for a small
company, I generally don't use the Revision number, as we aren't likely to
more than a couple of hundred builds before releasing.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

The shortest distance between 2 points is a curve.

"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
>Thanks for that.

I new it wasn't to do with dates. I was using the build number this way
to mark a particular release build date, something I got from MSDN and
the .net team's method of versioning the framework.

The information you gave does answer my question though. I'll have to
find another method.

Do you know of any best practice for using the version number?

Regards

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>>The AssemblyVersion attribute represents the version number of the
assembly, and has nothing to do with the build date. It is a 64-bit
number, which is divided into a Major 32-bit unsigned integer and a
Minor 32-bit unsigned integer. Each of these is sub-divided into 2
16-bit unsigned integers.

Now, if you really wanted to, and I don't recommend this, because this
is not really the appropriate place to do this, but you COULD use the
Major member of the Version for the version number, the MajorRevision
number for the year, the Minor member for the month, and the
MinorRevision number for the day.

There are other Assembly attributes that are more appropriate for
storing date information, such as the Copyright.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

In case of Minimalism, break Philip Glass.

"Gavin Sullivan" <gs*******@integratedfm.comwrote in message
news:e7**************@TK2MSFTNGP04.phx.gbl...
I've been using the date (in YMMDD) format for the build number in the
AssemblyVersion attribute. However, it appears that numbers 65534
are invalid!! Bit of a bummer for 2007!!!

Is there a reason for this? 65535 would make sense!?

Is there a work around, patch, etc??

Regards



Jan 25 '07 #7

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...
3
by: Michael Bøcker-Larsen | last post by:
Hi I'v been stuck on this problem for ages now. I have found that I'm not the only one with this problem, by looking through the different newsgroups. Hope you can help me! I know there is a...
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...
1
by: Andrew | last post by:
In ASP.NET 1.1 I used to retreive the version of my code-behind assembly using following syntax: Assembly.GetExecutingAssembly().GetName().Version The version was defined in AssemblyInfo.cs using...
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...
5
by: Laurence | last post by:
In VS.2005 using VB.NET There are two versions on every project, The Assembly Version and the File Version. Why are there two different versions? As far as I can tell, there is not need for...
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...
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...
4
by: Bob Altman | last post by:
Hi all, I have a C++/CLI project (VS 2005) that produces a DLL that exports C bindings. Internally, this DLL contains routines compiled with /clr. I notice that my DLL doesn't have a version...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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.