We have the convention of versioning our builds as [major].[minor].[micro].[revision], e.g. 2.1.2.33546.
Our build-script automatically updates an AssemblyInfo.cs file c
One option might be to just use the [AssemblyFileVersion]
; this still raises a warning, but it'll build, at least:
[assembly: AssemblyFileVersion("1.0.0.80000")]
A bit more Background information:
Why are build numbers limited to 65535?
As this is unlikely to get changed, your options are:
According to MSDN, the components of the AssemblyVersionAttribute version number are limited to UInt16.MaxValue - 1
by the assembly meta data, i.e. you can't store larger numbers in an assembly file. The file version, as Marc Gravell suggests, might be enough for you, depending on who will read your version number.
We decided to use the same convention, and due to the limitations of Windows version numbers we chose to drop the "micro" part of our version numbers in order to preserve the revision number. Our version numbers are now [major].[minor].[revision / 10000].[revision % 10000]
, so the assemblies built from revision 65535 have the version 2.01.6.5535.