[nem-en] Nemerle for VisualStudio redist.
Paul Bludov
pbludov at gmail.com
Fri Jan 12 04:13:59 CET 2007
>> The '*' means number of seconds after midnight. It just a random number
>> between 0 and 29, as coded in ncc\hierarchy\CustomAttribute.n, lines
>> 505-542.
>> By the way, it should be the number of seconds after midnight, not just
>> seconds.
>
> So it is a bug I guess...
After some investigations, I've found that there is a bug in the
documentation.
[quote]
This causes revision to be equal to the number of seconds since midnight,
January 1, 2000, local time, divided by 2.
[/quote]
This not makes any sense, since all version numbers must be an unsigned
short integers (0..65536) while
each day is 86400 seconds long. Or 43200 couples of second. So it
definetelly must be the number of
seconds since midnight of the todays local time. As correctly noted here:
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemreflectionassemblyversionattributeclassctortopic.asp
There is another issue with the assembly version attribute. The compiler
does _not_ remove
the original AssemblyVersionAttribute, but also adds a new one. As the
result, each nemerle assembly
has two attributes of the type AssemblyVersionAttribute.
It's a bug definitelly. A lot of programs tries to obtain the assembly
version via call to
Attribute.GetCustomAttribute(someAsm, typeof(AssemblyVersionAttribute)),
wich
throws an exception when more then one match is found.
-Paul.
More information about the devel-en
mailing list