MSBuild XmlLogger (Bug #254)


Added by Christoph Wüthrich about 4 years ago. Updated about 4 years ago.


Status:Closed Start date:01/18/2013
Priority:Normal Due date:
Assignee:Ruben Willems % Done:

0%

Category:Build Process Spent time: -
Target version:1.8.4
Affected version:1.8.3

Description

SetAttribute() doesn't work for TimeStamp since .Net 3.5.
use: double seconds = ((TimeSpan)obj).*Total*Seconds;


History

Updated by Ruben Willems about 4 years ago

just to be sure : you want the ToString format of the timestamp to be
00:00:00

and not 00:00:00.000

http://msdn.microsoft.com/en-us/library/1ecy8h51%28v=vs.80%29.aspx

look at the different versions of the .Net framework
in 2.0 it is 00:00:00
in 3.0 it is 00:00:00
in 3.5 it is 00:00:00.000
in 4.0 it is 00:00:00
in 4.5 it is 00:00:00

  • Status changed from New to Feedback

Updated by Christoph Wüthrich about 4 years ago

No, there's an difference between the Seconds property.

.Net 3.0: Gets the number of whole seconds represented by the current TimeSpan structure.
.Net 3.5: Gets the seconds component of the time interval represented by the current TimeSpan structure.

You have to replace "double seconds = ((TimeSpan)obj).Seconds;" with "double seconds = ((TimeSpan)obj).TotalSeconds;".

With the current version, there are build outputs like this one:
<target name="Build" startTime="02/07/2013 11:05:02" elapsedTime="00:00:57" elapsedSeconds="1377" success="true">

elapsedTime is "00:00:57" instead of "00:22:57"

Updated by Ruben Willems about 4 years ago

  • Category set to Build Process
  • Status changed from Feedback to In Progress
  • Target version set to 1.8.4
  • Assignee set to Ruben Willems

Updated by Ruben Willems about 4 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF