Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 736
Rajesh Subramanian Avatar asked Dec 08 '25 22:12

Rajesh Subramanian


2 Answers

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.

like image 109
Jon Barker Avatar answered Dec 11 '25 11:12

Jon Barker


Both the way you can use

(200.01.01.00) or (200.1.1.0)

like image 21
Revan Avatar answered Dec 11 '25 10:12

Revan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!