BoolBySigma / UpdateAssemblyInfo

SORRY THIS IS NO LONGER MAINTAINED
10 stars 9 forks source link

DayOfYear and leading zerros #36

Open GintasM8 opened 5 years ago

GintasM8 commented 5 years ago

Function $(Day Of Year) misses leading zeros

bengi83 commented 4 years ago

Over a year later and this is still true...

lianck commented 3 years ago

I am looking for this fix too...

pacojones commented 3 years ago

Looking for this as well. The problem is that I go to build options and generate a build version like this: $(VersionMajor).$(VersionMinor).$(date:yy)$(DayOfYear)$(rev:.r)

As for today 25th January first build of 2.2 major and minor this will result in 2.2.21025.1.

But then when I add this UpdateAssemblyInfo and using $(DayOfYear) instead of making usage of the 3 digits of the day of the year it only uses two. So the upper example would result in: 2.2.2125.1, which is different!