471,315 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

AssemblyVersion 1.2.*.61 doesn't work

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.
Feb 20 '06 #1
3 1676
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
Feb 20 '06 #2
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" wrote:
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

Feb 20 '06 #3
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/lib...te(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
Feb 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

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.