"Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '1.6.70102.1' is invalid "
What now? I know that nobody was here and changed code during the New Years Eve, and certainly not the day after, if you know what i mean.
It proves to be a flaw (nicer way of saying bug) in the assembly version handling of MSBuild, or actually the versioning of assemblies in Windows:
The version numbers consists of four parts MAJOR.MINOR.BUILD.REVISION. These are all WORDS (16-bit) and not DWORD (32-bit). That means that it can hold numbers up to ca 65000.
A very common practice is to have the BUILD-part of the number set to a date. And since dates are converted like so:
But they all suffers from the flaw that you need to distribute any solution to all the computers that ever build the solution (i.e. the developers).
My solution is to just increment the build-number and not base it on dates. This is not to good either but works for now
Published byon Last updated