.NET: Large revision numbers in AssemblyVersionAttribute

前端 未结 4 1312
遥遥无期
遥遥无期 2021-01-30 17:12

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

4条回答
  •  遥遥无期
    2021-01-30 17:28

    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.

提交回复
热议问题