The following line of code causes our build to fail. The week needs to be formatted to have a preceding zero for weeks less than 10. We currently are getting "1313" instead of "13013" this is less than "12541".
newVersionNumber3 += CultureInfo.InvariantCulture.Calendar.GetWeekOfYear(now, CalendarWeekRule.FirstDay, (DayOfWeek)Enum.Parse(typeof(DayOfWeek), this.FirstDayOfWeek));
Solution:
http://msdn.microsoft.com/en-us/library/dwhawy9k%28lightweight%29.aspx#DFormatString
Comments: Resolved with changeset 82494: Framework\AssemblyInfo.cs: Pad week of year.
Resolves #11473 (BuildNumberType YearWeekDay does not format week with two digits) raised by jstaelens on 02 Jan 2013
newVersionNumber3 += CultureInfo.InvariantCulture.Calendar.GetWeekOfYear(now, CalendarWeekRule.FirstDay, (DayOfWeek)Enum.Parse(typeof(DayOfWeek), this.FirstDayOfWeek));
Solution:
http://msdn.microsoft.com/en-us/library/dwhawy9k%28lightweight%29.aspx#DFormatString
Comments: Resolved with changeset 82494: Framework\AssemblyInfo.cs: Pad week of year.
Resolves #11473 (BuildNumberType YearWeekDay does not format week with two digits) raised by jstaelens on 02 Jan 2013