473,769 Members | 7,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3690
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*******@inte gratedfm.comwro te in message
news:e7******** ******@TK2MSFTN GP04.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**********@n othinks.comwrot e in message
news:%2******** *******@TK2MSFT NGP04.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*******@inte gratedfm.comwro te in message
news:e7******** ******@TK2MSFTN GP04.phx.gbl...
>I've been using the date (in YMMDD) format for the build number in the
AssemblyVersio n 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*******@inte gratedfm.comwro te in message
news:O9******** ******@TK2MSFTN GP06.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**********@n othinks.comwrot e in message
news:%2******** *******@TK2MSFT NGP04.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*******@inte gratedfm.comwro te in message
news:e7******* *******@TK2MSFT NGP04.phx.gbl.. .
>>I've been using the date (in YMMDD) format for the build number in the
AssemblyVersi on 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******@golde n.netwrote in message
news:%2******** *********@TK2MS FTNGP03.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*******@inte gratedfm.comwro te in message
news:O9******** ******@TK2MSFTN GP06.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**********@n othinks.comwrot e in message
news:%2******* ********@TK2MSF TNGP04.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
MinorRevisi on 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*******@inte gratedfm.comwro te in message
news:e7****** ********@TK2MSF TNGP04.phx.gbl. ..
I've been using the date (in YMMDD) format for the build number in the
AssemblyVers ion 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*******@inte gratedfm.comwro te in message
news:O9******** ******@TK2MSFTN GP06.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**********@n othinks.comwrot e in message
news:%2******** *******@TK2MSFT NGP04.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*******@inte gratedfm.comwro te in message
news:e7******* *******@TK2MSFT NGP04.phx.gbl.. .
>>I've been using the date (in YMMDD) format for the build number in the
AssemblyVersi on 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**********@n othinks.comwrot e in message
news:em******** *****@TK2MSFTNG P05.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*******@inte gratedfm.comwro te in message
news:O9******** ******@TK2MSFTN GP06.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**********@n othinks.comwrot e in message
news:%2******* ********@TK2MSF TNGP04.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
MinorRevisi on 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*******@inte gratedfm.comwro te in message
news:e7****** ********@TK2MSF TNGP04.phx.gbl. ..
I've been using the date (in YMMDD) format for the build number in the
AssemblyVers ion 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
8808
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.
3
12181
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 lot of information, but if you need more (e.g. the code) please write michael@mblarsen.dk. The problem is this error messages (the code is build just fine; no errors):
10
3482
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.
1
2074
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 After migrating to ASP.NET 2.0 this line of code always return 0.0.0.0. How do I retreive the assembly version of ASP.NET application? Thanks
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
4412
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...
5
12098
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 two versions. The assembly is the file, isn't it?
1
2259
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. ...
1
7385
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"?>
4
3180
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 resource. I assume that, unlike C# and VB, C++ doesn't automatically generate a version resource. Is there any way to make this happen? In particular, I don't want to have to manually update the file version in the version resource to keep it in...
0
10197
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...
0
10032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9977
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,...
1
7391
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
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
5432
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3947
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
2810
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.