Is it appropriate to use leading zero in C# assembly version?

一个人想着一个人 提交于 2019-12-11 02:27:36

问题


I am setting assembly version for my dot net dll

Assmebly version has below format,

"major version.minor version.build number.revision"

I am setting Verison like below,

200.1.1.0; 

Now my question is do I need to keep a leading zero in minor version,build number and revision number (200.01.01.00) Or without leading zero (200.1.1.0). Which is right practice? Is there any Microsoft guideline available ? I didn't find any guidelines by Googling.


回答1:


The versions are stored internally as integers, so even if you append 0 to the start of the version number, it will be converted to an int and removed.




回答2:


Both the way you can use

(200.01.01.00) or (200.1.1.0)



来源:https://stackoverflow.com/questions/21701632/is-it-appropriate-to-use-leading-zero-in-c-sharp-assembly-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!