In WinForms I have an AssemblVersion
[assembly: AssemblyVersion("01.01.01.002")]
However when the splash screen comes up it completely ignores the zeros showing:
1.1.1.2
as the version which is very inconvenient since later I will actually want to have an assembly version
[assembly: AssemblyVersion("01.01.01.200")]
Is there a way to avoid this or do I Have to add some number at the beginning of last part of the version like so:
[assembly: AssemblyVersion("01.01.01.102")]
The
AssemblyVersionattribute stores it's information as aVersionobject. The components of theVersionstruct are integers, and are treated as such. So1.2.3.4 == 1.02.003.004but1.2.3.4 != 1.2.3.400You can use the
AssemblyInformationalVersionAttributeto provide aditional, arbitrarily formatted information about your product, as it's information is stored as astring, rather than aVersion. So you can do:Or whatever you like