AssemblyVersion 1.2.*.61 doesn't work

G

Guest

I see from my searches that this has be discussed before.

However I can find no satisfactory answer or any reference to this problem
being a bug.

From the MSDN documentation for this attribute:-

A version number such as [assembly:AssemblyVersion("1.2.*.6")] specifies 1
as the major version, 2 as the minor version, accepts the default build
number, and specifies 6 as the revision number.

However when I build an assembly with this assembly version I get the error:-

The version specified is invalid.

I like the daily build based build number and want to use it. I don't like
the crazy milliseconds since midnight revision number and want to control the
revision number myself.

Am I doing something wrong or is the documentation wrong? If the
documentation is wrong how useful do MS think this automatic system is in the
real world?

Thanks In advanced,

Anthony.
 
G

Guest

AnthonyWJones napisał(a):
[...]

A version number such as [assembly:AssemblyVersion("1.2.*.6")] specifies 1
as the major version, 2 as the minor version, accepts the default build
number, and specifies 6 as the revision number.

However when I build an assembly with this assembly version I get the error:-

The version specified is invalid.

[...]

Am I doing something wrong or is the documentation wrong? [...]

My local MSDN sais "If you specify an asterisk for the build number, you
cannot specify a revision number).", so you cannot specify version in
x.y.*.z format.
I think there is an error in MSDN that is in the web.

Regards,
Åukasz
 
G

Guest

Yes I've seen this posted elsewhere in my searches.

Could you point out where exactly in your version of the documentation.

I also should've have stated that I'm using VS2003. My local documentation
contains the same statement as the web version. Is my documentation
different from yours or am I looking in the wrong place?

Either way does anyone else think this is either a bug or that the MS
developers having a bad day when they came up with this?

Cheers,

Anthony.

Åukasz said:
AnthonyWJones napisał(a):
[...]

A version number such as [assembly:AssemblyVersion("1.2.*.6")] specifies 1
as the major version, 2 as the minor version, accepts the default build
number, and specifies 6 as the revision number.

However when I build an assembly with this assembly version I get the error:-

The version specified is invalid.

[...]

Am I doing something wrong or is the documentation wrong? [...]

My local MSDN sais "If you specify an asterisk for the build number, you
cannot specify a revision number).", so you cannot specify version in
x.y.*.z format.
I think there is an error in MSDN that is in the web.

Regards,
Åukasz
 
G

Guest

AnthonyWJones napisał(a):
Could you point out where exactly in your version of the documentation.

It's in index at "AssemblyVersionAttribute class | about
AssemblyVersionAttribute class" (URL:
ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref10/html/T_System_Reflection_AssemblyVersionAttribute.htm).
I also should've have stated that I'm using VS2003. My local documentation
contains the same statement as the web version. Is my documentation
different from yours or am I looking in the wrong place?

Well, I have VS2005... and the web version is the same as my local one:
http://msdn2.microsoft.com/en-us/li...flection.assemblyversionattribute(VS.80).aspx


Either way does anyone else think this is either a bug or that the MS
developers having a bad day when they came up with this?

It's a bug :)

Regards,
Åukasz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top