Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

Closed Issue: BuildNumberType YearWeekDay does not format week with two digits [11473]

$
0
0
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

Viewing all articles
Browse latest Browse all 1211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>