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

AssemblyVersionAttribute

Hi,

In the AssemblyInfo.cs file I change the AssemblyVersion["1.0.0"];
attribute from the default "1.0.*" blah

I notice that its FORCING 4 digit notation, so if I use "1.0.0" I get
"1.0.0.0" in that property. Are we FORCED to have 4 digits for our
versioning or can this be overrided?

Thanks
Nov 15 '05 #1
5 2040
I don't think you can override this, check out the docs:
http://tinyurl.com/295jl
The version number has four parts, as follows:
<major version>.<minor version>.<build number>.<revision>

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
<di********@discussion.microsoft.com> wrote in message
news:#B*************@TK2MSFTNGP12.phx.gbl...
Hi,

In the AssemblyInfo.cs file I change the AssemblyVersion["1.0.0"];
attribute from the default "1.0.*" blah

I notice that its FORCING 4 digit notation, so if I use "1.0.0" I get
"1.0.0.0" in that property. Are we FORCED to have 4 digits for our
versioning or can this be overrided?

Thanks

Nov 15 '05 #2
n!
> I notice that its FORCING 4 digit notation, so if I use "1.0.0" I get
"1.0.0.0" in that property. Are we FORCED to have 4 digits for our
versioning or can this be overrided?


The version number always has four parts, with the format:

<major version>.<minor version>.<build number>.<revision>

There is a more complete overview in the documentation for
AssemblyVersionAttribute itself (http://tinyurl.com/295jl).

n!
Nov 15 '05 #3
Is this a requirement in the ECMA?
"n!" <nf********@nomailplease.com> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
I notice that its FORCING 4 digit notation, so if I use "1.0.0" I get
"1.0.0.0" in that property. Are we FORCED to have 4 digits for our
versioning or can this be overrided?


The version number always has four parts, with the format:

<major version>.<minor version>.<build number>.<revision>

There is a more complete overview in the documentation for
AssemblyVersionAttribute itself (http://tinyurl.com/295jl).

n!

Nov 15 '05 #4
<di********@discussion.microsoft.com> wrote:
Is this a requirement in the ECMA?


Yes. See section 6.1.2.4 of partition 2 of the spec.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #5
n!
> Is this a requirement in the ECMA?

"CLI Partition IV - Library" notes:

AssemblyVersion:
Specifies the version of the assembly in the form 1.0.x.y, where x is a
build number and y is a revision number.

n!
Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Zdenko | last post by:
Hi all, I have following line in AssemblyInfo.cpp file: ; When I build managed application, FileVersion column in Windows explorer is empty. When I build C# dll, it is displayed correctly.
0
by: Siew Fai | last post by:
hi All, In the documentation ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemReflect ionAssemblyVersionAttributeClassTopic.htm there is a sentence "A version number such as...
4
by: Phil Galey | last post by:
I created an About box and am able to get all the assembly information from the program to show up in the About box except the Version. I created the About box as a separate Windows application,...
3
by: Pascal Cloup | last post by:
Hi, I could not get the AssemblyVersion attribute. I use the following code: public static string GetProductVersion() { Assembly appAssembly = Assembly.GetExecutingAssembly();
2
by: Eddie | last post by:
I tried a few more thing. I found that I can access the AssemblyInfo.cpp like follows.(This is from the VS help system.) Type^ clsType = Form1::typeid; Assembly^ assy = clsType->Assembly; ...
0
by: sovarschizsuzsa | last post by:
Hy everybody! I would like to set the AssemblyVersionAttribute fourth part from a given parameter. My project is compiled with a makefile, so this parameter becomes value through this makefile....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.