本文介绍了在C#汇编版本中使用前导零是否合适?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为我的点网dll设置汇编版本
I am setting assembly version for my dot net dll
汇编版本的格式如下,
我是像下面这样设置Verison,
I am setting Verison like below,
200.1.1.0;
现在我的问题是我是否需要在次要版本,内部版本号和修订版号前保持零(200.01.01.00)
或不带前导零(200.1.1.0)。
哪种做法正确?是否有可用的Microsoft准则?我没有通过Googling找到任何准则。
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.
推荐答案
版本内部存储为整数,因此即使将0附加到版本号的开头,它将被转换为int并删除。
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.
这篇关于在C#汇编版本中使用前导零是否合适?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!